Program to help gymnasium help desk associate

Assignment Help Programming Languages
Reference no: EM1361694

Write a program that helps a gymnasium help desk associate to answer questions about membership cost. The rates are as follows:

Adult rate is $40.00 per month
Child rate is $20.00 per month
Senior citizen rate is $30.00 per month

You are to write a program that has a loop inside another loop. The outer loop will repeat when the user responds with a 'yes' when asked if there are more member queries. Inside a loop, the program should first ask how many people are to be included on a single membership subscription.

When the user responds with a positive integer, your program should first initialize a monthly subscription to 0.00 and then enter a counting loop that loops from 1 to number-of-members. Inside the inner loop, your program should:

first diplay a menu of the three rates numbered 1, 2, and 3
diplay a prompt saying "what is the rate for member #" loop-count (here loop count is a variable)
Read an integer from the keyboard into the choice variable
Validate that the number is between 1 and 3
When the choice is correct, add the monthly rate corresponding to the choice to the monthly subscritpion

After existing the inner loop, the program should display a message that has the cost of monthly subscription. The program should then ask again if there is another member query and read a response.

Reference no: EM1361694

Questions Cloud

Justice and fairness in mattel : How do the three virtues of honesty, justice, and fairness apply to the Mattel toy company case and describe how the three virtues have been used to guide the actions, behaviors, and policies of Mattel.
Which vehicle has a greater change in kinetic energy : Since the vehicles stick together after the collision and take the direction of the large truck (greater momentum), I guessed that the small car would have a greater change in kinetic energy.
Telemedicine trend in relationship to home healthcare : Describe how the following external factors will effect telehealth/telemedicine's trend in relationship to home healthcare:
Public administration philosphy : Prepare a initial philosophy of public administration. Specifically, how would you approach at least the following criteria within the policymaking process?
Program to help gymnasium help desk associate : Write a program that helps a gymnasium help desk associate to answer questions about membership cost. The rates are as follows.
Management styles and scope creep : Regular functional managers are moving from their classic authoritarian style to a facilitative, participatory style because it is more effective.
Reducing the incidence of hepatitis a : A group of citizens in a community of identifiable need is concerned about a recurring incidence of persons with Hepatitis A.
Determine generally accepted accounting principles : Determine generally accepted accounting principles and who currently develops and issues GAAP explain the purpose of generally accepted accounting principles.
What is the radius of the turn : A person in an elevator is holding a 25 kg block by a cord rated to withstand a tension of 335 N. Starting from rest, the elevator begins to move upwards at a constant acceleration and the cord holding the block breaks. What was the least accelera..

Reviews

Write a Review

Programming Languages Questions & Answers

  Procedure to draw shape of choice

Write a program with a suitable procedure to draw shape of your choice. Your program must then call the procedure 10 times to draw the shape.

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Technical project: sample website project

Technical Project: Sample Website Project , This assignment consists of three (3) sections: a narrative, a storyboard, and a business Website. You must submit all three (3) sections for the completion of this assignment.

  Create a project in xcode

Create a new project in XCode using the Mac OS X/Command Line Tool template

  Program to compute pearson correlation coefficient

Write down a program to compute Pearson correlation coefficient by using parallel loop templates from Intel Threading Building Blocks library (TBB).

  Method takes string and integer as parameters

Write a method called multiConcat which takes a String and an integer as parameters. Return String made up of the string parameter concatenated with itself count times.

  Program read weight of package of breakfast cereal in ounces

Write a program which will read the weight of package of a breakfast cereal in ounces and output weight in metric tons as well as number of boxes

  Create program to calculate amount of paint needed

Create a program to calculate the amount of paint needed to cover one side of a house with a sloped roof . Assume tha this house has a rectangular shape with a rectangular window .

  Html/css

"Validating Your Work" Please respond to the following:  Describe attribute minimization. Explain what would happen if you tried to validate a page containing instances of attribute minimization. Propose a solution to this problem.

  Sql statements coded as transaction

Write a set of 3 SQL statements coded as transaction to reflect following change: United Parcel Service has been purchased by federal Express Corporation.

  Write a program using two-d array to store a user name

Write a program using a 2-D array to store a user name and password (both strings) that will ask the user for his/her user name and then test to see if they are a valid user.

  Writing application to accept loan amount-interest rate

Write down the application to accept a loan amount, annual interest rate, and loan period (in number of years) and displays a table with five columns.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd