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, 31.01.2019 16:10
What do character formats do for your document's message? a.set the tone b.provide organization c.provide clarity d.set how texts align with documents
Answers: 2
question
Computers and Technology, 29.01.2019 17:22
Experimental data that is expressed using numbers is said to be
Answers: 1
question
Computers and Technology, 27.01.2019 21:07
3. when you right-click a linked spreadsheet object, what commands do you choose to activate the excel features? a. linked worksheet object > edit b. edit data > edit data c. linked spreadsheet > edit d. object > edit data
Answers: 2
question
Computers and Technology, 26.01.2019 07:20
How are stop motion special effects in animated films created
Answers: 1
You know the right answer?
Write a program that creates an array of 5 patientaccount objects.

main program: (35%)...
Questions
question
Mathematics, 02.06.2020 15:56
Questions on the website: 6483837