Write a program to help A Happy Place gym to compute the cost of gym classes...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program to help" A Happy Place" gym to compute the cost of gym classes for its customers. The gym offers 2 classes: "Hot yoga" and "Fitness geeks". The cost of each class is $30. If a customer chooses to take both classes, they get a 10% discount. Your program should work like this: Example 1: Would you like to take Hot Yoga class (enter 1 for yes)? 1 Would you like to take Fitness geeks class (enter 1 for yes)? 1 Your total is $54 Example 2: Would you like to take Hot Yoga class (enter 1 for yes)? 0 Would you like to take Fitness geeks class (enter 1 for yes)? 1 Your total is $30 Write a program to help" A Happy Place" gym to compute the cost of gym classes for its customers. The gym offers 2 classes: "Hot yoga" and "Fitness geeks". The cost of each class is $30. If a customer chooses to take both classes, they get a 10% discount. Your program should work like this: Example 1: Would you like to take Hot Yoga class (enter 1 for yes)? 1 Would you like to take Fitness geeks class (enter 1 for yes)? 1 Your total is $54 Example 2: Would you like to take Hot Yoga class (enter 1 for yes)? 0 Would you like to take Fitness geeks class (enter 1 for yes)? 1 Your total is $30
Expert Answer:
Answer rating: 100% (QA)
hotyoga input Would you like to take Hot Yoga class enter 1 for yes fitness geeks input Would you li... View the full answer
Related Book For
Managerial accounting
ISBN: 978-0471467854
1st edition
Authors: ramji balakrishnan, k. s i varamakrishnan, Geoffrey b. sprin
Posted Date:
Students also viewed these programming questions
-
Chile controls over half of world lithium reserves (8 Million tons). Its department of natural resources is trying to figure out how to best allocate production between two periods, the present and...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Bock Repair Parts Sales operates a used automotive sales lot. Management requires an application that will compute automotive sales information for the sale of a used vehicle. You are to develop an...
-
Taylors 2022 health insurance premiums of $7,800 are paid by her employer. During 2022, Taylor requires surgery on her vocal chords. The cost of the surgery is $10,000 and Taylors insurance covers...
-
Prob. 9.147 and 9.151 for the component described in the problem indicated, determine (a) The principal moments of inertia at the origin, (b) The principal axes of inertia at the origin. Sketch the...
-
Write the general form of the capacitor voltage for the electrical network shown in Figure P4.4. R = 10 k2 vit) = u(t) R2 = 10 k2 C = 10 F L= 200 H FIGURE P4.4
-
Use technology and the data in RestaurantTips to construct a graph of the relationship between Server and Credit for the situation in Exercise 2.38. Data From Exercise 2.38: Credit Card by Server The...
-
Calculating Real Rates of Return If Treasury bills are currently paying 8 percent and the inflation rate is 45 percent, what is the approximate real rate of interest the exact real rate?
-
The Cole Corporation has provided the following account balances: Account Amount Cash $20,000 Short-term Investments 5,000 Accounts Receivable 6,000 Supplies 7,000 Long-term Notes Receivable 3,000...
-
This exercise concerns TM M 1 , whose description and state diagram appear in Example 3.9. In each of the parts, give the sequence of configurations that M1 enters when started on the indicated input...
-
A 400 N wagon is at rest on a carpeted floor. If the coefficients of friction are 0.6 static and 0.4 kinetic, what will happen if you push horizontally with 245 N? b) What will be the acceleration of...
-
Evaluate using the improper integral definition. 00 S 3 1 (x-2) dx
-
What is the first step in planning a retrosynthesis of the amine shown below. 1st retrosynthesis step?
-
Would you expect the electron density from nitrogen's lone pair to be closer to the nitrogen in NF3, or in NH3?
-
Let the following data be given: Delta (variation of the price of the option in relation to the price of the underlying) = 0.6; price of the underlying = 100; Value of a call on an underlying...
-
Comment on black swan events by responding to the following questions: What were the causes of these dramatic currency depreciations? What impact could black swan events (and the subsequent...
-
PLEASE WRITE A 1500-2000 WORD ESSAY ABOUT " FINANCIAL MODELING & VALUATION ANALYST (FMVA) CERTIFICATION" 1-Introduction 2-Body Paragraph 3-General details such as (conditions to fulfil with...
-
2.) Find the Laplace transform of f(t) 7e-St cos 2t +9 sinh2 2t. Use Laplace Table. %3D
-
What is an organization? What is the key difference between decision making in organizations and decision making by individuals?
-
What is the relevant range?
-
Consider the following two settings: Setting 1: Firm A operates a set of branch offices. Branch offices usually can fulfill customers needs themselves. However, occasionally, they lack a specialist...
-
If you know the electric field \(\vec{E}\) at some location, how can you determine the magnitude and direction of the electric force exerted by that field on an object carrying a charge \(q\) and...
-
(a) If the particle in Figure 23.6 carries a negative charge \(q (b) Does the electric field created by the particle point toward or away from the particle? (c) If \(q\) and \(q_{2}\) are negative,...
-
(a) If the charge on particle 2 in Exercise 23.1 is doubled so that \(q_{2}=2 q_{1}\), what happens to the direction of the electric field at points \(P_{1}\) through \(P_{4}\) ? (b) If the charge on...
Study smarter with the SolutionInn App