Answered You can hire a professional tutor to get the answer.

QUESTION

Assignment 3-A Attach two files, the Analysis of the Problem (using Word or a text editor) and your program (.cpp file).

Assignment 3-A

Attach two files, the Analysis of the Problem (using Word or a text editor) and your program (.cpp file). Do not cut and paste your code into the message section of the assignment area or your program will not be graded and you will receive a zero for the assignment.

If program does not compile you will automatically lose -10.

PROBLEM: Rhoda's Strikeforce Gym. (20 pts)  

Include a program that will show the membership fees for Rhoda's Strikeforce Gym. The Gym charges $1,200 per year, base fee but charges a percentage rate increase each year based on your membership rating:

Gold Members 1% fee Silver Members 2% fee Bronze Members 4% fee

You will display the following menu:

   Welcome to Ronda's Strikeforce Gym!! x---------------------------------------------------x             Membership Fee Calculator 1. Gold 2. Silver 3. Bronze 4. Quit

Please enter a your membership level (1-3 Enter 4 to Quit) > 

Validate the input for the menu items listed, if 1 through 3 are entered, you will write a program that uses a loop to output the members rates for the next 10 years. The output should be formatted in a table format as shown in the sample output with the corresponding year and member ship fee.

The program should continue to loop until the user is ready to quit. (Hint: After you have your program running, completely enclose your program in a do/while loop that only exits if the user chooses to quit).

If a 4 is enter (Quit) output a message thanking the user for using Rhonda's Fee Calculator (see sample output).

Input Validation: The program must check to see if the user enters a valid menu item (a number 1 through 4). If the user does not enter a valid value, display an error message and ask the user to enter the value again until a valid value is entered.

 COP2000 HOMEWORK ASSIGNMENT 3-A 2

SAMPLE OUTPUT:

 COP2000 HOMEWORK ASSIGNMENT 3-A 3

PARTIAL PSEUDO-CODE: A) Declare necessary variables for user input and calculations B) Display menu C) Read in the input from the user D) Validate user input (must input 1 through 4), loop if value is invalid E) If values1 - 3 were entered perform calculations else if 4 was entered exit program with thank you message.    E.1) Perform calculation for specified membership for 10 years and output.            (This will require a loop.) CONSTRAINTS:  The program must be written as one main program (NO Functions). (Automatic -10 if not one main function)  You must use: int main()  You can only use the following libraries <iostream> and <iomanip>  No Arrays or Vectors  The program must use real numbers. (2 pts)  The program must use local variables. (2 pts)  Input Validation: All menu input must be validated (Please see specification in description above) (4 pts)  The program must use loops. (4 pts)  Output must be formatted properly and correct. (3 pts)  Program Must display the output in fixed point notation, rounded to two decimal places of precision  Include a comment at the beginning of the program stating the purpose of the program, your name, the date, and your class (1pt is for code organization and use of whitespace). (3 pts)  Algorithm or Pseudo Code (as an outline): At the beginning or end or your program write the algorithm or pseudo code as a multi-line comment. (2 pts)

WRITE THE PROGRAM:  Write the program according to your Algorithm or Pseudo Code for the Problem above.

CHECK THE PROGRAM:  Does the program use real numbers?  Is the program displaying the output in fixed point notation, rounded to two decimal places of precision?  Is the program formatted correctly?  Have you checked your output? Are you getting the correct output?  SUBMISSION INSTRUCTIONS: Submit your .cpp file as one attachment using the assignment drop box tool listed under the Content Link in the Homework Folder (not the email system) in Blackboard. Use the "Attachments" button in the assignment area to submit your assignment.   

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question