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 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
hotyoga input Would you like to take Hot Yoga class enter 1 for yes fitness geeks input Would you li... View full answer
Get step-by-step solutions from verified subject matter experts
