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 class postfixevaluator to evaluate postfix expression

Write a class PostFixEvaluator that evaluates postfix expression such as 6 2 + 5 * 8 4 / -. Program must read a postfix expression consisting of digits and operators into a StringBuffer.

  Explaining box properties available in css

Browse the Web and choose a site that could benefit from box properties available in CSS. Make a screen capture of the page and indicate how you would change border and spacing properties.

  Hubspot: inbound marketing and web 2.0

Hubspot: Inbound Marketing and Web 2.0

  Write a script to declares and sets variable

Write a script that declares and sets a variable thats equal to the total outstanding balance due. If that balance due is greater than $10,000.00.

  Write a perl program

Write perl program which will run on my system and will start another perl program on another linux system. The main program should wait for linux perl program to complete its work and send the result to my main perl program.

  Define four user-defined exceptions

You will need to define four user-defined exceptions; one for unknown movies, one for unknown member, one for unknown payment method.

  Create a function that takes a one dimentional array

Create a function that takes a one dimentional array us a argument the function should return only these members from the array which are divisible by 4.

  Creating personnel promotion application program

The following application program will be modified to accommodate the change to the database table. The personnel promotion application program.

  Explaining data-driven multicast routing paradigm

The data-driven multicast routing paradigm works best on local networks that have low delay and excess capacity, while the demand driven paradigm works best in a wide are environment.

  Create xml document to mark up the nutrition facts

Create XML document to mark up the nutrition facts for a package of Grandma White's cookies. A package of cookies has a serving size of 1 package and the following nutritional value.

  Executive committee for alleviating it complexity

You are a consultant brought in by the executive committee to make recommendations for alleviating the "IT complexity" concerns of the executives at the company.

  Program to calculate and displays number of miles per hour

Design a program to calculate and displays the number of miles per hour over the speed limit that a speeding driver was doing

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