Question: Write a program to help A Happy Place gym to compute the cost of gym classes for its customers. The gym offers 2 classes:

Write a program to help" A Happy Place" gym to compute the

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

Step by Step Solution

3.38 Rating (151 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

hotyoga input Would you like to take Hot Yoga class enter 1 for yes fitness geeks input Would you li... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!