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

  Lambert''s vacation rentals

Write an application for Lambert's Vacation Rentals. Use separate ButtonGroups to allow a client to select one of three locations, the number of bedrooms

  Inheritancedemo

Create a New Project named InheritanceDemo . 2. Create a new class called Person and cut and paste the Person.java file from Blackboard into the class. Create a new class called Student and cut and paste the Student.java file from Blackboard into the..

  Your letterinventory class must use an array

Your LetterInventory class must use an array of Counter objects. Note that there is no nextChar method in the Scanner class. You must use the next() method and then use a loop through the characters of the token that is returned. Ignore any character..

  Sets a loop to find 10 random generated

Write a java code that 1) uploads a file 2) sets a loop to find 10 random generated words from the file and then search those words by a. IndexSequential Method b. indexBinary Method. then, report how much time both methods took.

  Write java programming to show number of credits for course

Write the java programming to solve following problem. We are given a student's marks in Calculus 1, CS1, and Physics 1 (each mark being between 0 and 100) also number of credits for each course.

  Web application that allows user to specify six lottery nums

Write a web application that allows a user to specify six lottery numbers. Generate your own combination on the server, and then print out both combinations together with a count of matches.

  Determine the type of moped

Write a driver class called MopedRental. This class should perform the following: asks the user to enter the size of the moped, the day of the week and the number of hours rented, creates the Moped object, based on the size, and displays the input..

  Java program for line item application

This exercise explains you the process of testing and enhancing Line Item application. Open LineItemApp, Validator, Product, LineItem, and ProductDB classes that are in the c:java1.6ch06LineItem directory and review this code.

  Develop a gui based java program

Designing and developing a College Registration program

  Write java application to input three integers from user

Write Java application that inputs three integers from user and displays sum, average, product, smallest, and largest of the numbers.

  A jsp expression can contain any java expression

A JSP expression can contain any Java expression that evaluates to a

  Program that allows a user to input coordinates

In Java make a program that allows a user to input coordinates as to make a Hexagon via an array, and my professor has set the standards of: Write a class Polygon which draws a hexagon for a set of numbers given by the user.

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