Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write in JAVA CODE Program Description A vocal coach charges new clients for voice instruction services based on duration of sessions in hours. The coach

Write in JAVA CODE Program Description
A vocal coach charges new clients for voice instruction services based on duration of sessions in hours. The coach charges an hourly rate of $76.00 per hour for Individual Sessions and $123.00 per hour for Group Sessions. Write a program that determines a bill for a vocal coaching session. The program must:
Ask the user to enter the type of session (individual or group) service to determine the hourly rate of the session.
If an invalid session type is entered, the rate for an individual session will be applied
Ask the user to enter the number of minutes of the duration of the session. This vocal coach requires users to book a minimum of 45 minutes for a session. The maximum time that can be booked for a session is 200 minutes.
If an invalid number of minutes is entered, a standard session length of 50 minutes will be booked automatically.
The program must calculate the duration of the session in hours. This vocal coach charges 1 hour for every 45 minutes of duration of a session.
This vocal coach is also offering a special 10% spring break discount when users enter the following discount code: S1NGNSPR!NG10%. 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 voice instruction 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 vocal 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. Write in Java code
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

Step: 3

blur-text-image

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

Database Design Application And Administration

Authors: Michael Mannino, Michael V. Mannino

2nd Edition

0072880678, 9780072880670

More Books

Students also viewed these Databases questions