Starting from:

$30

CSIT121-Lab 2 Solved

Task 1: Implement and test the Alarm management system  
Implement the following Alarm management system based on the UML class diagram (MVC pattern). During the implementation, you will learn how to use the MVC pattern in your future system design.

   

Write code following the below instructions.

1.     Write code for the Alarm Class. Do not use System.out or System.in in this class excepted for debugging.  

2.     Write code for the AlarmView Class. Use System.out, System.in,Scanner class to create an UI to communicate with a user.

3.     Using Alarm Class and AlarmView Class to write code for the AlarmManagement class. Do not use System.out or System.in in this class excepted for debugging.  

4.     Write the main method in the TestCode class to test the program. You shall write code to create the objects of all classes, and call all methods with the created objects.

 

Task 2: Implement and test the Time management system  
Implement the following Time management system based on the UML class diagram. You will learn how to use the inheritance.

 

   

Write code following the below instructions.

1.               Write code for the Time Class  

2.               Write code for the subclass Alarm Class. Please be reminded that you will need to write the overload constructor.  

4.               Write code for the subclass Timer Class. Don’t need to implement start(), stop(), reset() method.  

5.               Write the main method in the TestCode class to test all function of the Alarm class and Timer Class.

More products