Question: hi. pls help me solve the question. need it asap... while (choice != 4); netum 8; Figure Q] ANSWERS i mark 12 1mark 2 marks

hi. pls help me solve the question. need it asap...

hi. pls help me solve the question. need it asap... while (choice!= 4); netum 8; Figure Q] ANSWERS i mark 12 1mark 2

while (choice != 4); netum 8; Figure Q] ANSWERS i mark 12 1mark 2 marks 12The C+4 program shown In Figure Q3 uses a do-while loop to calculate Health Club membership fee based on the menu choice entered. Determine the expected output when the following inputs are entered. Write your answers in the ANSWERS box provided. Finclude ciostream Finclude cionanipp using nonespace std; int main () const double ADULT RATE = 120.0, CHILD RATE - GO.0, SENIOR_RATE - 100.0; int choice, months; double charges; do { // Display the menu and get the user's choice cout of "In Health Club Membership Menuinin"; cout > choice; LINE 22 0/ // Process the user's choice if (choice != 4) cout cc "For how many months? "; cin >> months; // Compute charges based on user input switch (choice) case 1: charges . months " ADULT_RATE; break; case 2: charges . months * CHILD_RATE; break; CASE 3: charges . months . SENIOR_RATE; // Display the monthly charges cout cc fixed cc showpoint

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!