Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Follow the requirements below to write a program that will calculate the cost of flute lessons based on different types of memberships: Write a method

Follow the requirements below to write a program that will calculate the cost of flute lessons based on different types of memberships:
Write a method that presents the user with the choices to enter their membership type. The method must ask the user to enter a selection of one of three
types of membership (Fundamental or Premier). Input Validation: The program must only accept one of the valid types of memberships. If the user's
input is not valid, the method must force the user to re-enter until a valid value is entered. This method must not accept any arguments. The method must
return a validated membership type. See the Sample Run Videos.
Write a method that accepts one argument: the membership type. The method must return the base cost of the membership. The base cost of the
membership can be determined by using the following table below:
Write a method that accepts one argument: the membership type. The method must return the maximum free flute lessons that are included in the
membership. The maximum free flute sessions included in each membership can be determined using the information below:
Write a method that accepts one argument: the membership type. The method must return the hourly rate for flute lessons for each membership. The
hourly rate for flute lessons in each membership can be determined using the information below:
Write a method that gets the input of the number of hours a user desires to book for a flute lesson. When called, the method must accept the following
arguments: the membership type, the remaining free sessions in the membership, and the hourly rate for the membership. The method has to
prompt the user for the number of hours desired to book for a lesson and validate the input of the hours so that between 1 and 3.5 hours must be entered
for a lesson. The method must return the validated number of hours entered. See the Sample Run Videos.
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 Query Formulation And Administration Using Oracle And PostgreSQL

Authors: Michael Mannino

8th Edition

1948426951, 978-1948426954

More Books

Students also viewed these Databases questions