Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

OBJECT ORIENTED PROGRAMMING FUNDAMENTALS (java) Part 1: Develop an object-oriented console program in Java language (40 marks) Background: You are requested by a customer to

OBJECT ORIENTED PROGRAMMING FUNDAMENTALS (java)

Part 1: Develop an object-oriented console program in Java language (40 marks) Background: You are requested by a customer to build a system myTrack to record the vaccination status and check-in activities during the COVID-19 pandemic. The system has the similar functionalities as the mySejahtera application as shown in Figures 1, 2, 3, and 4.

image text in transcribed

The myTrack system has the following requirements: The system should be able to store and display the user profile details as shown in Figure 1. There are two types of users: normal user and pregnant women. The system should be able to record additional information for pregnant women, such as the months of pregnancy, and last check-up date. Each user can view their risk report, digital vaccination certificate, and check-in history as per below: The system should be able to display the risk status report that contains the information of the risk status, current location risk, high risk dependent, and a QR code as shown in Figure 2. The system should be able to display the digital certificate consists of the users doses information as shown in Figure 3. The system should be able to display a history list of the places that the user visited before, with each of the check-in record contains the name of the place and the visited date. Please complete the following questions: a) Identify and design the classes that fulfil the above requirements by drawing the UML class relationship diagram with required data members. You should design your classes for optimum maintainability and reusability with the best practices of object-oriented techniques you have learnt. Use inheritance whenever appropriate. b) Create the classes that you have designed in part 1(a) in Java language. Complete the classes with constructors, methods, setters and getters. c) Create a driver class (main application) to demonstrate the followings: a. Create one normal user and one pregnant user by using an ArrayList as storage and print their profile (refer Figure 1). b. Print the risk report for one of the users (refer Figure 2). c. Print the digital certificate with the doses of vaccination information for one of the users (refer Figure 3). d. Print the history list with at least two visited places for one of the users (refer Figure 4). Note: No GUIs are required. The QR code can be represented by a String

Profile COVID-19 Vaccination Digital Certificate Mohammad Shah Low Risk No Symptom MS MYSJID 60123731889 IC/Passport No 900912101839 Dose 1: Date 05 April 2021 Manufacturer: CoronaVac Suspension for Injection SARS-CoV-2 Vaccine (Vero Cell), Inactivated Facility: Klinik Mediviron Seksyen 13 Shah Alam Batch: C33214802 State Selangor Click refresh your profile Refresh Dose 2: Figure 1: User Profile Date: 29 April 2021 Manufacturer: "CoronaVac Suspension for Injection SARS-CoV-2 Vaccine (Vero Cell), Inactivated 2 doses/vial Facility: Klinik Mediviron Seksyen 13 Shah Alam Batch: 2021E430K As of 22 Aug 2021, 8:24 PM Figure 3: Vaccination Certificate Status Riske COVID-10 COVID: 19 Risk Status Risiko Rendah/Low Risk History Your check-in history will be removed if you logoutor reinstall the application Check-out details will be displayed here. If you have not checked out, you can click on a past check-in to check out accordingly Check-in at DELICIOUS FOOD RESTAURANT SDN BHD Sep 7, 2021 5:58:54 PM Check-in at IFRUITS MARKET (M) SDN BHD - No 54, Jalan USJ 9/5P, 47620... Sep 2021 5:54:19 PM High Dependent: No This is the OR code for your My Store proble show this to authorities when requested Check out at SPEEDY POST (MALAYSIA) SDN BHD - 041_46.JLN... Sep 7, 2021 5:54:15 PM Check-in at J&T EXPRESS (MALAYSIA) SDN BHD - 041_46,JLN USJ9/5P,UE... Sep 7.2021553:22 PM Figure 2: Risk Report Figure 4: Check-in History

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Principles of Accounting

Authors: Needles, Powers, crosson

11th Edition

1439037744, 978-1133626985, 978-1439037744

More Books

Students also viewed these Accounting questions