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