Question: JavaAn acting coach charges new clients for acting instruction services based on duration of sessions in hours. The coach charges an hourly rate of $
JavaAn acting coach charges new clients for acting instruction services based on duration of sessions in hours. The coach charges an hourly rate of $ per hour for Child Acting
Sessions and $ per hour for Adult Acting Sessions. Write a program that determines a bill for booking an acting coach session. The program must:
Ask the user to enter the type of session child or adult service to determine the hourly rate of the session.
If an invalid session type is entered, the rate for an adult acting session will be applied.
Ask the user to enter the number of minutes of the duration of the session. This acting coach requires users to book a minimum of minutes for a session. The maximum
time that can be booked for a session is minutes.
If an invalid number of minutes is entered, a standard session length of minutes will be booked automatically.
The program must calculate the duration of the session in hours. This acting coach charges hour for every minutes of duration of a session.
This acting coach is also offering a special promotional discount when users enter the following discount code: ACTTCA. Ask the user to enter the discount code.
If an invalid discount code is entered, no discount will be applied.
The program must calculate the charge for the acting coach session. The amount due is the product of the total hours of the session and the hourly rate for a session
depending on the type of acting session. Apply the discount code as necessary to the charge.
The program must display the type of session, the duration of the session in hours, the hourly rate for the session, the subtotal session charge before discount the
discounted amount if applicable and the final amount due for the session.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
