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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 10:10, joanasprinkman2262
3. bob is arguing that if you use output feedback (ofb) mode twice in a row to encrypt a long message, m, using the same key each time, it will be more secure. explain why bob is wrong, no matter what encryption algorithm he is using for block encryption (15 points).
Answers: 3
image
Computers and Technology, 23.06.2019 02:50, bfell92
There’s only one game mode that stars with the letter ‘e’ in cs: go. which of the options below is it?
Answers: 1
image
Computers and Technology, 24.06.2019 01:30, tanya44737
Hazel has just finished adding pictures to her holiday newsletter. she decides to crop an image. what is cropping an image?
Answers: 1
image
Computers and Technology, 24.06.2019 02:30, sha273
Which option completes the explanation for conflict of interest in an organization
Answers: 1
You know the right answer?
Write a program that creates an array of 5 patientaccount objects.

main program: (35%)...

Questions in other subjects: