Java Medical Office Management DiscussionGUI NEEDED VERY IMPORTANTYou 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 a 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‘X’ – 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/2020Date
+ Date (month: int, day:int, year:int)
+getDay() : int
+getMonth() : int
+getYear() : int
+setDay(day:int) : void
Employee and Patient that extends a Person’s class.The Employee classi. A class variable which stores the number of employees noEmpii. Instance variables: empID, first name, last name, date of birth (Date), phone number and annual salary(double).The Patient classi. A class variable which stores the number of patients noPatii. 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.GUI look and feelFile StorageSwitching between Menu ItemsMenu Item: NewMenu Item: SelectMenu Item: PaymentsMenu Item: Displaying outputSearch MethodException ClassesDocumentationThe overall accuracy of the programExpert Answer
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.Read more
Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.Read more
Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.Read more
Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.Read more
By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.Read more