[Solved] CSI121 Lab2-Class, object and Design Pattern

$25

File Name: CSI121_Lab2-Class,_object_and_Design_Pattern.zip
File Size: 414.48 KB

SKU: [Solved] CSI121 Lab2-Class, object and Design Pattern Category: Tag:
5/5 - (1 vote)

Objectives

  • Class, object and Design Pattern: MVC
  • Use of Inheritance

Tasks (All tasks will be marked. Five marks in total.)

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 out or System.in in this class excepted for debugging.
  2. Write code for the AlarmView Class. Use 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 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.
  3. Write code for the subclass Timer Class. Dont need to implement start(), stop(), reset() method.
  4. Write the main method in the TestCode class to test all function of the Alarm class and Timer Class.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] CSI121 Lab2-Class, object and Design Pattern
$25