Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 $55.25 per hour for Child Acting
Sessions and $88.35 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 50 minutes for a session. The maximum
time that can be booked for a session is 180 minutes.
If an invalid number of minutes is entered, a standard session length of 55 minutes will be booked automatically.
The program must calculate the duration of the session in hours. This acting coach charges 1 hour for every 50 minutes of duration of a session.
This acting coach is also offering a special 15% promotional discount when users enter the following discount code: ACT151TCA. 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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

What Is A Database And How Do I Use It

Authors: Matt Anniss

1st Edition

1622750799, 978-1622750795

More Books

Students also viewed these Databases questions

Question

Know what customers expect from the firm when they complain.

Answered: 1 week ago

Question

Understand why customers complain.

Answered: 1 week ago