/MCS111

OOP Assignments

Primary LanguageJava

First Assignment Part One Outputs:

_01_FahrenheitToCelsius

_01_FahrenheitToCelsiusOutput.png

_02_DigitSum

_02_DigitSum.png

03_TestRectangle

_03_TestRectangle.png

04_TestFan

_04_TestFan.png

05_Calendar

_05_Calendar.png

06_TestTime

_06_TestTime.png

First Assignment Part Two Outputs:

Q1

TestProgram.png

Q2

TestBankAccounts.png

Q3

TestDiscountSystem.png

Q4

TestGeometricObjects.png

Second Assignment Outputs

Q1

Compile time exception source

CompileTimeExceptionSource.png

Compile time exception output

CompileTimeExceptionOutput.png

Compile time exception explanation

The JIT throws an exception because the radius property is private. This means that radius can be directly accessed only by the Circle class.

Q2

TestRectangle.png

Q3

TestEmployee.png

Q4

TestInvoiceItem.png

Q5

TestAccount.png