Determines the cost of a new membership

Assignment Help Basic Computer Science
Reference no: EM131308379

The cost to become a member of a fitness center is as follows:

  • The senior citizens discount is 30%
  • If the membership is bought and paid for 12 or more months, the discount is 15%
  • If more than five personal training sessions are bought and paid for, the discount on each session is 20%.

Write a menu-driven program that determines the cost of a new membership. Your program must contain a function that displays the general information about the fitness center and its charges, a function to get all of the necessary information to determine the membership cost, and a function to determine the membership cost. Use appropriate parameters to pass information in and out of a function. (Do not use any global variables.)

Reference no: EM131308379

Questions Cloud

Assuming that no earnings restatements were issued : On its 12/31/13 balance sheet, Acton, Inc. showed $510 million of retained earnings, and $700 million was shown in the prior year. Assuming that no earnings restatements were issued, is it possible that Acton paid dividends in 2013? Explain.
What is the amount of net working capital : Zantel Inc. has current assets of $4,700, net fixed assets of $24,300, short-term debt of $1,000, total current liabilities (including short-term debt) of $4,100, and long-term debt of $14,000. What is the value of Zantel’s total equity on balance sh..
Explain the current state of web application security : Briefly explain the current state of Web application security to the Board of Directors. Describe the major potential security risks associated with maintaining the organization's Web presence, protecting its assets, and promoting e-Commerce. Asse..
What is the maximum growth rate the firm : Upton Computers makes bulk purchases of small computers, stocks them in conveniently located warehouses, ships them to its chain of retail stores, and has a staff to advise customers and help them set up their new computers. That is, what is the maxi..
Determines the cost of a new membership : Write a menu-driven program that determines the cost of a new membership. Your program must contain a function that displays the general information about the fitness center and its charges, a function to get all of the necessary information to de..
What is the value today of social? securitys promise : Assume that Social Security promises you $36000 per year starting when you retire 45 years from today? (the first $36000 will get paid 45 years from? now). If your discount rate is 6%, compounded? annually, and you plan to live for 17 years after ret..
Capital budgeting is the whole process of analyzing projects : Capital budgeting is the whole process of analyzing projects and deciding whether they should be included in the capital budget. What factors can lead to an increasing marginal cost of capital? How might this affect capital budgeting?
The implied reduced financing cost of the receivables : Suppose that last year a firm had a DSO of 35 days and annual revenues equal to 10,000,000$. The treasury department has made it a goal to reduce the DSO to 30 days, while holding constant revenues. If this reduction is realized, then calculate the f..
Discuss about 3d printing : It is part of my group paper talking about 3D Printing. I am responsible for 2 pages of the paper relate to the ethical problems raised by the use of 3D Printing in Medical area.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Shown that moore law not only apply to semiconductor density

It has been shown that Moore's law not only applies to semiconductor density, but it also predicts the increase in (reasonable) simulation sizes, and the reduction in computational simulation run-times.

  Program using a loop that multiplies two non-negative number

Write code to implement the expression: A= (B + C) * (D - E) on 3-, 2-, 1- and 0-address machines. In accordance with programming language practice, computing the expression should not change the values of its operands.

  Displays the names sorted in alphabetical order

Write a program that asks the user to enter three names, and then displays the names sorted in alphabetical order. Assume that none of the names are the same. For example, if the user entered "Charlie," "Leslie," and "Andy," the program would disp..

  Describe how forward recovery works

Describe the two different problems that forward recovery and backward recovery are designed to handle. Do mirrored databases address one of these two problems or yet a third one? Explain.

  Database design vince''s viny

Based on your selected scenario from Hands-On Database, complete the "To Do" activities described at the end of Chapter 4 of the textbook. Your response should be submitted as a Word document.

  What is meant by transaction rollback

Which recovery techniques do not require any rollback?

  Function that returns a stringrepresenting its intargument

Write an input function that reads such strings as fast as you can think of. You can choose the interface to that function to optimize for speed rather than for convenience. Compare the result to your implementation's >> for strings.

  Prince would pass a beggar in the streets

There is a legend that claims that everyday a Prince would pass a  beggar in the streets. One day the Prince offered to give the beggar  a million dollars that day, or a penny that day and double it every day  for a month. The beggar accepted the ..

  Estimate the portion of the surface of the sphere

Estimate the portion of the surface of the sphere that can be covered by solar cells. The solar irradiation can be assumed to be 1420 W/m2 of surface perpendicular to the rays of the sun.

  Efficient use of the computing hardware

We have stressed the need for an operating system to make efficient use of the computing hardware. When is it appropriate for the operating system to for sake this principle and "waste"resources? Why is such a system not really wasteful.

  Examine the proposed business ethical problem

Examine the proposed business ethical problem

  What is the difference between production and test systems

What is the difference between production and test systems?

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