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

Assignment Help JAVA Programming
Reference no: EM13940604

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

Service Price($) Time(Minutes)

Cut 8.00 15
Shampoo 4.00 10
Manicure 18.00 30
Style 48.00 55
Permanent 18.00 35
Trim 6.00 5

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 three data fields and three get methods that return each one of the data field's values.

Write an application named SalonReport that contains an array to hold six Service Objects and fill it with data from the table above. Include methods to sort the array in ascending order by price of service, time it takes to perform the service, and in alphabetical order by service description.

Prompt the user for the preferred sorting method, and offer three choices: sort by description, price or time. Depending on the user's input, display the results.

Reference no: EM13940604

Questions Cloud

Determine a suitable diameter for the rivets : Figure shows a riveted lap joint. Determine a suitable diameter for the rivets if the ultimate shear strength of the rivet material is 325 MPa and a factor of safety of 6 is to apply.
Fully controllable, partially controllable : Which of the following costs are likely to be fully controllable, partially controllable, or not controllable by the chief of the production department?
Supply chain management in luxury fashion companies : 1. What is the role of operations and supply chain management in luxury fashion companies? 2. Do the consolidated supply chain strategies apply to the Italian luxury industry?
Factual scenario for three business crimes : Create and briefly describe a hypothetical factual scenario for any three business crimes (other than computer crimes).
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. Jane Fields, the owner, has contracted to have you write a program that allows reports to be output, sorted by each type of service offered. Table below shows the vari..
Should federal government control over state law enforcement : Is federalism the answer, or should the federal government have control over the state law enforcement operations? Consider the Arizona lawsuit against the federal government regarding the law enforcement activities surrounding people in this coun..
Considering production for a special order : The Ellis Machine Tool Company is considering production for a special order for 10,000pieces at $0.65 apiece, which is below the regular price. The current operating level, which is below full capacity of 70,000 pieces, shows the operating result..
Prepare an income statement for the year : Prepare journal entries for the transactions above. Use good form for the journal entries. Prepare a trial balance at December 31 based on the journal entries above. Prepare an income statement for the year
Derive the class extendedroman from the class roman : For part 'a' the source code for class Roman is attached to this assignment. You do not have to include the method decimalToRoman as you modify this class. Also, class Roman is not used in your test program.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd