Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

need help doing this code! please help and zoom in if needed! 5.4. La 29. vermbership Fees E zyBooks catalog 5.4 Lab 29: Membership Fees

need help doing this code! please help and zoom in if needed!

image text in transcribed

image text in transcribed

5.4. La 29. vermbership Fees E zyBooks catalog 5.4 Lab 29: Membership Fees A health club currently charges $250.50 per year for membership. It has announced that it will increase its membership fee by 2% each year. Assume the user has been asked to enter the number of additional years they plan to keep their membership. Your program should read in that value and then output the membership fee for each year, beginning with the current year and ending with the last year of their membership Generate the output in a table as shown below. Use a do-while loop to display the year and the membership fee for that year, beginning with the current year. Use integer variables and start at year=0 for the current year. Hint 1. Create a double variable charges and initialize it with the first year membership fee Inside the loop, update charges by 2%. Hint 2 Use setzrecision (2), fixed and setw() options. Hint 3: There are 13 dashes in the table. When your program's input is as shown in Figure 1, your program should produce the output as shown in Figure 2. Figure 1: (input) 7 Year Charges 1 2. OYU BW 250.50 255.51 260.62 265.83 271.15 276.57 282.10 287.75 7 255-5559-50 0/10 LAB ACTIVITY 5.41: Lab 29: Membership Fees main.cpp Load default template 1 // Your Name 2 / CS 1336.exe 3/ Lab 29 4 5 int main() 6 using namespace std; 7 int main() 8 9 17 Gefine variables 12 I read in the value that represents the number of years that the customer wants to keep membership V output table header 1/ use a do while loop to output the rows in the table do 17 { 19 } while 28 21 11 output dashes at the end of the table 22 23 24 return : 25 )

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_2

Step: 3

blur-text-image_3

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

Readings In Database Systems

Authors: Michael Stonebraker

2nd Edition

0934613656, 9780934613651

More Books

Students also viewed these Databases questions

Question

4. Mercators senior directors recommendations.

Answered: 1 week ago

Question

Analyse the process of new product of development.

Answered: 1 week ago

Question

Define Trade Mark.

Answered: 1 week ago

Question

Question Can any type of stock or securities be used in an ESOP?

Answered: 1 week ago

Question

Question Can a self-employed person adopt a money purchase plan?

Answered: 1 week ago