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

Assignment Help JAVA Programming
Reference no: EM13250812

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.

Reference no: EM13250812

Questions Cloud

What is the moment of inertia of the disk : A disk with mass m = 8.5 kg and radius R = 0.35 m begins at rest and accelerates uniformly for t = 18.8 s, to a final angular speed of ? = 28 rad/s. What is the moment of inertia of the disk?
Calculate the magnitude of electric field : An electron moves with speed 700 m/s. Entered uniform E and B field on straight path. E points down and into page. E B and v are perpendicular
Explain sulfur dioxide with excess oxygen gas : According to the following reaction, how many moles of sulfur trioxide will be formed upon the complete reaction of 0.429 moles sulfur dioxide with excess oxygen gas
Create a bit-array of 10 elements with appropriate values : Write a loop to count the number of 1's in the array. If there is an even number of 1's in the array then the OddParity variable will be set. Create a bit-array of 10 elements with appropriate values, and create variables for Sum and OddParity.
Create a class for services offered by a hair-styling salon : Create a class for services offered by a hair-styling salon. Data fields include a String to hold the service description and write an application named Salon Report that contains an array to hold six Service objects and fill it with the data
Reaction in a dance performance : How do dancers use line, form, and repetition to produce a reaction in a dance performance? Which of these elements do you think is most meaningful to a dance?
Find a minimal two-level nand realization for each function : find a minimal two-level NAND realization for each of the following switching functions. a) f(A,B,C) = sum m(0,2,3,7) b) f(A,B,C,D) = sum m(0,2,8,10,14,15) c) f(A,B,C,D,E) = sum m(4,5,6,7,25,27,29,31)
Explain how many moles of phosphorus triiodide : How many MOLES of phosphorus triiodide are present in 7.73E+22 molecules of this compound
Calculate the 5 lowest possible energies of an electron : Calculate the 5 lowest possible energies of an electron in a hydrogen atom in units of electron volts. Identify all possible electron energies between the lowest energy and 2eV.

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