Create a class for services offered by a hair-styling salon


The Curl Up and Dye Salon offers a variety of salon services for its customers. Susan, the owner of the salon, has contracted you to write a program that allows reports to be output, sorted by each type of service offered. The table below shows the various services, service prices and service times:

2266_Create a class for services offered by a hair-styling salon.png

Create a class for services offered by a hair-styling salon. Data fields include a String to hold the service description (for example: "Cut", "Shampoo" or "Manicure"), a double to hold the price, and an integer to hold the average number of minutes it takes to perform the service. The class name is Service. Include a constructor that requires arguments for all the three data fields and three get methods that each return one of the data field's value.

Write an application named SalonReport that contains an array to hold six Service objects and fill it with the data from the table above. Include methods to sort the array in ascending order by rice of service, time it takes to perform the service, and in alphabetical order by service description. Prompt the user for the preferred soring method, and offer three choices: sort by description, price, or time. Depending on the user's input, display the results.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Create a class for services offered by a hair-styling salon
Reference No:- TGS0589530

Expected delivery within 24 Hours