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, 23.06.2019 01:10
Are special combinations of keys that tell a computer to perform a command. keypads multi-keys combinations shortcuts
Answers: 1
question
Computers and Technology, 23.06.2019 06:00
How can a user delete a drawing object
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Choose the answers that best complete each sentence. on average,are more expensive than other kinds of postsecondary schools. the cost of room and board includes. to save money, some students attend auniversity in their home state.
Answers: 2
question
Computers and Technology, 24.06.2019 13:00
Which best describes the condition under which the unicode output is the same as plain text ?
Answers: 1
You know the right answer?
Write a program that creates an array of 5 patientaccount objects.

main program: (35%)...
Questions
question
Physics, 15.04.2021 07:30
question
Mathematics, 15.04.2021 07:30
question
Mathematics, 15.04.2021 07:30
Questions on the website: 13722360