subject

Write a program that creates an array of 5 patientaccount objects.

main program: (35%)

the program should ask the user to select an account number from 0 – 5 or -1 to exit the program.

after selecting an account number, the user should be presented with the following menu options:

enter 1 to select the type of surgery performed
choices are liposuction, nose reshaping, eyelid surgery and tummy tuck
enter 2 calculate and display the patient account balance
enter 3 display the patient summary report
enter 99 to exit to the main menu to select another account number
when creating each patientaccount object, make sure that each object is initialized in both the default and overloaded constructor functions with the following guidelines:

use the static data member to initialize the patientid. patient id must be initialized with multiples of 100 starting with 100. (5%)
the starting balance of each patientaccount object should be created from a random number generator function returning values between 100.00 and 2000.00. (5%)
use: enum surgerytype {liposuction, nose_reshaping, eyelid_surgery, tummy_tuck}; (5%)
the cost of surgery types is as follows:
liposuction = $2,500.00
nose reshaping = $6,000.00
eyelid surgery = $2,450.00
tummy tuck = $12,900.00

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 21:30
Elements such as fonts colors visual structure graphics and the interface of a web page should complement each other to ensure blank
Answers: 3
question
Computers and Technology, 23.06.2019 15:00
In the blank libreoffice writer document, to start the process of entering a date field into a letter, click on the insert menu. edit menu. file menu. fields menu.
Answers: 3
question
Computers and Technology, 24.06.2019 12:00
Match the function to its purpose. fast worth 50pts.
Answers: 1
question
Computers and Technology, 25.06.2019 13:00
True or false the internet is a local communication network that allows only certain computers to connect and exchange information.
Answers: 2
You know the right answer?
Write a program that creates an array of 5 patientaccount objects.

main program: (35%)...
Questions
question
Mathematics, 15.12.2020 22:10
question
History, 15.12.2020 22:10
question
English, 15.12.2020 22:10
Questions on the website: 13722363