Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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...

image text in transcribedimage text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions

Question

Who Coined and used the ward non aligned first?

Answered: 1 week ago

Question

Formation of forward bloc by subha bose was .....?

Answered: 1 week ago

Question

The S.I. unit of change is........?

Answered: 1 week ago

Question

At the generating station power is..........?

Answered: 1 week ago