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

  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,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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