Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Have to create a java fx application for object oriented programming. Also have to do a UML diagram. The application much be like a like

image text in transcribed

image text in transcribed

image text in transcribed

Have to create a java fx application for object oriented programming. Also have to do a UML diagram. The application much be like a like to sign up for an appointment etc ..

Project 25% This project continues from Assignment 1. You will implement a GUI, Exception class and use files to store the objects. You are required to create a "Medical Office Management" application (MOM) which - using inheritance - will create and manipulate both employee and patient objects. When your program is run it must display a main menu of options to the user as described below: ' N ' -New -For this option the program must immediately prompt the user to enter ' e ' or ' p ' to indicate whether they want to create a new patient or employee record. If the user selects ' e ' they must then be prompted for the person's first name, last name, date of birth, employee number, phone number and annual salary. If they select ' p ' then they must be prompted for the patient's first name, last name, date of birth and phone contact, patient number. This information is then used to create the appropriate object which is stored in an file that stores objects. If the user enters a command other than ' e ' or ' p ', the program must display an appropriate error message and continue to prompt for valid data. 'S' - Select a patient account - The program must prompt for a patient's number and retrieve this object from the array. The user must then be prompted for transactions to be performed on the account as follows: ' Q ' - query - The program must print the patient's id number full name, date of birth and balance. ' B ' - bill - The program must request a transaction amount and add this value to the patient's current balance. ' P ' - payment - The program must request a transaction amount and subtract this value from the patient's current balance. Exception class that ensures a minimum of 10% of the balance is paid XX - exit - The program must return to the main menu. ' P ' - payments - The program must pay salaries to all employees and auto-deduct 10% of the outstanding balance on all patients account. ' X ' - exit - The program must display an appropriate parting message and quit when the application. The Person class must use the following class variables: i. count initialized to 0 which stores how many person objects have been created. ii. company initialized to a company of your choice. The Date class: as described in the class diagram Override your tostring to print the date as month/day/year e.g. 10/20/2020 Employee and Patient that extends a Person's class. The Employee class i. A class variable which stores the number of employees noEmp ii. Instance variables: empID, first name, last name, date of birth (Date), phone number and annual salary(double). The Patient class i. A class variable which stores the number of patients noPat ii. Instance variables patID, first name, last name, phone number, date of birth (Date) and balance, which is used to keep track of any outstanding monies due by the patient

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

Database Theory Icdt 99 7th International Conference Jerusalem Israel January 10 12 1999 Proceedings Lncs 1540

Authors: Catriel Beeri ,Peter Buneman

1st Edition

3540654526, 978-3540654520

More Books

Students also viewed these Databases questions

Question

a. Describe the encounter. What made it intercultural?

Answered: 1 week ago