Commit Graph

38 Commits

Author SHA1 Message Date
729a2d7b92
lab-03:
- Define custom exception class that extends IlleglArg and add a 'value' property
	- Throw different Ex for the 2 problems
	- Print the exception class in output for information
2020-10-15 07:08:50 +03:00
27234cf989
lab-03:
Throw an exception for values over 16 since it will cause an integer overflow.
	The Exception message is used in main the same is for -ve values.
2020-10-15 06:44:51 +03:00
e6b7cdc211
lab-03:
Catch thrown exception in main and cont. the program.
2020-10-15 06:40:23 +03:00
3413b10185
lab-03:
Throw illegalArg Exception when a negative value is passed to factorial().
2020-10-15 06:35:10 +03:00
ad85cbea6c
lab-03:
Basic operation of Factorial Q
2020-10-15 06:26:53 +03:00
425b1109a4
project files 2020-10-15 06:07:42 +03:00
9c9695f6f1
lab-03:
- Correctly handle in catch body with input buffer defined outside the try body to accessed by catch body
	and print the skipped word.
2020-10-02 17:05:28 +03:00
e39fd93c81
lab-03:
- try body contains the loop. To study the effect of catching exceptions, the loop will terminate
	at the first presance of a letter. For example, '10 time 4', will only yield a sum of 10.
2020-10-02 16:49:48 +03:00
d1f38a542b
lab-03:
- Add try/catch preventing NumberFormatEx during runtime. No handling yet.
2020-10-02 16:28:26 +03:00
810480828a
lab-03:
- Parse ints class.
	- Still no Ex handling
2020-10-02 16:24:58 +03:00
4b8ebcf60c
lab-03:
- Count letters class. Class to test and handle exceptions.
2020-09-29 19:51:05 +03:00
HeshamTB
430e05d3d0
Create README.md 2020-09-26 17:10:49 +03:00
dbd2a55efb
ignore pdf and testing project 2020-09-26 06:23:43 +03:00
ad76b6be55
lab-02:
- Added remaining classes.
	- Added abstract class shape.
	- _Area Interface.
	- Lab test program.
2020-09-26 06:16:00 +03:00
187f2cd313
lab-02:
- Added abstract class _Shape.
	- Inherit _Rectangle from _Shape.
	- Parse width/height and use setters in constructors.
2020-09-26 03:55:36 +03:00
6019f0fc41
Improvfed constructors using this keyword. Filter input through setters. 2020-09-25 21:33:10 +03:00
7390d3d9f8
Use 'super' constructors and parse negative circle radius. 2020-09-23 13:36:57 +03:00
4a8354a474
lab-02:
- Project files
	- _Rectangle class
2020-09-09 23:07:10 +03:00
f4fa262bd9
update:
- ignore meta-inf
	- Change c style args array in main. (recommended by IDE)
	- build with java 1.8.x
2020-09-09 22:47:44 +03:00
f64343c59c
lab01:
- Added javadoc for all classes
	- update gitignore
2020-09-05 22:48:38 +03:00
8e8c36d091
Lab01: Test program 2020-08-31 16:09:12 +03:00
7a332d5f6a
Match assignment output 2020-08-31 16:08:18 +03:00
732124669c
Added Cylinder class
Changed toString methods to work inhirit correctly.
2020-08-31 14:45:34 +03:00
c1a575da75
Added Rectangle class 2020-08-31 13:46:04 +03:00
8fab7964e9
Added Circle class 2020-08-31 12:49:44 +03:00
5c80a195ea
Changed toString() 2020-08-31 12:49:10 +03:00
247ec08bb7
Point class 2020-08-31 12:05:32 +03:00
0ac8436afa
Fraction:
- Fixed StackOverFlow ex
	- Fraction test
	- output
2020-08-30 18:14:49 +03:00
526717242a
Fraction:
Fixed exception from missing float flag.
2020-08-30 17:33:26 +03:00
bce5d75ba8
Fraction:
- Added subtract and divide methods
2020-08-30 17:24:40 +03:00
34e2031f4c
Fraction:
- isReducible boolean
	- Updated constructor
	- Improved reduce()
	- add() done
2020-08-30 17:05:07 +03:00
5e256c44f8
Fraction:
- Added more javadoc
2020-08-30 15:30:56 +03:00
381f5105c6
Fraction:
- Added multiply, print decimal.
2020-08-30 15:25:08 +03:00
225aa67765
Fraction:
- toString(), returns string as a/b
2020-08-30 14:30:06 +03:00
d2b0d3c453
Fraction:
- Added place holders
	- Constructors
	- GCD, reduce and equal methods
2020-08-30 14:09:45 +03:00
c2cd906820
output of TestMyGame 2020-08-30 11:58:07 +03:00
729acce78c
Lab 0:
- problem 2: TestMyGame
2020-08-30 11:39:58 +03:00
b47513a6f3
ShowMyInfo program 2020-08-30 11:16:41 +03:00