Question: Task 2 Write the menu program, called PatientRecordSystemMenu, to provide options in the following menu: = = = = = = = = = =

Task 2
Write the menu program, called PatientRecordSystemMenu, to provide options in the following
menu:
=====================
Patient Record System
=====================
1. Add a measurement observation type
2. Add a category observation type
3. Add a patient
4. Add a measurement observation
5. Add a category observation
6. Display details of an observation type
7. Display a patient record by the patient id
8. Save data
9. Load data
D. Display all data for inspection
X. Exit
Please enter an option (1-9 or D or X):
The menu program must use the PatientRecordSystem class developed for Task 1.
For each option, the program should ask for the required inputs, each with a separate prompt.
For option 6,7 and D, it is acceptable just to use the toString methods of the classes involved
(which should have been implemented in Part 1 of the assignment).
See Appendix 2 for a short sample run.
The menu program for this task is only required to satisfy the data correctness conditions. It is not
required to be robust, i.e. it can crash when certain exceptions occur.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!