Computers and Technology
Computers and Technology, 02.12.2019 20:31, Laken2082

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

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 18:40, penelopymorales24
Mariah was working on a multimedia presentation that included both video and audio files. the file was huge, and she wanted to send it to her coworker in another office. she needed to reduce the size of the file so that it could be transmitted faster. the utility she used to do this was
Answers: 2
image
Computers and Technology, 23.06.2019 14:00, LuvIsRage2
Technician a says that with self-adjusting clutch systems, the release bearing constantly rotates. technician b says that the ball bearing portion of the release bearing should be lubricated with high-temperature grease during routine maintenance. which technician is correct?
Answers: 2
image
Computers and Technology, 23.06.2019 15:30, jasssp
Write a program in plp assembly that counts up by one starting from zero (or one) inside a loop and writes this value to the leds every time the value is increased. the memory address of the leds is 0xf0200000. the table below shows the meaning and an example usage of the instructions covered in the video, plp instructions for project 1. instruction example usage meaning load immediate li $t0, 8 register $t0 is set to the value, 8. store word sw $t2, 0($t1) the value in register $t1 is used as the memory address. the value in register $t2 is copied into this memory address. add addiu $t4, $t3, 29 register $t4 is assigned the sum of 29 and the value in register $t3. jump j your_label_name the program jumps to the line following the label, "your_label_name: ". label your label name: defines a label called "your_label_name: " that can be jumped to
Answers: 2
image
Computers and Technology, 23.06.2019 20:30, lucywood2024
What is the biggest difference between section breaks and regular page breaks
Answers: 1
Do you know the correct answer?
Write a program that creates an array of 5 patientaccount objects.

main program: (35%)...

Questions in other subjects:

Konu
Geography, 03.10.2019 07:30
Konu
Mathematics, 03.10.2019 07:30
Konu
Mathematics, 03.10.2019 07:30