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

  Have to implement a search algorithm

Suppose you have to implement a search algorithm in a high programming language such as Java or C++. You are given a linked list that is not sorted and it's rather small, in the order of a few dozen elements.

  Write a test program that obtains from the user

Write a test program that obtains from the user the items to store in two sets A and B, and displays the union A u B, the inter- section A n B, and the dierence A \ B. The data type of the items is your choice. ( you can only store objects.)

  Write a class and client class that stores hotels ratings

Write a class and client class that stores hotels ratings over the years. The number of stars represents hotel ratings. Use a two dimensional integer array to represent the years and hotels

  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.

  Array named peopletypes that can store a maximum

Define a 1-D array named peopleTypes that can store a maximum of 50 integer values that will be entered at the keyboard. Enter a series of 1's, 2's, 3's and 4's into the array, where a 1 represents an infant, a 2 represents a child, a 3 represents..

  Qr codes are a popular way

QR codes are a popular way to encode data for easy reading by computerized cameras. True QR codes contain error correction, format specifiers, version information, and a size variable layout that makes them harder to decode and process

  How large a value can be stored in an integer variable

Most programming languages have a built-in integer data type. Normally this representation has a fixed size, thus placing a limit on how large a value can be stored in an integer variable

  Write a java program that uses a search tree of strings

Write a Java program that uses a search tree of strings to sort text lines in alphabetic order. You may choose how you de?ne alphabetic order as long as there is some sense in the de?nition. You may also choose what kind of tree you use.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Write the bubble sort

The village of Marengo conducted a census and collected records that have household data, including the number of occupants in each household.

  What position along the chord does minimum pressure occur

At what position along the chord does the minimum pressure occur? What is special about the point where C p is a maximum?

  Product maintenance with a database

Use a class named ProductDB that's in the music.data package to add, update, and delete the products in the Product Maintenance application.

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