Em Andamento

Java - Sort Strings

Write a program that will allow reports to be output sorted by each type of service offered. 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 minutes it takes to perform the service. The class name is HairSalon. Include a constructor that requires arguments for all three data fields and three get methods that each return one of the data field's values.

Write a program named SortSalon that contains an array to hold six HairSalon objects and fill it with data. Include a method to sort the array in ascending order by price of service. Call the method and display the results. Add a second method to the SortSalon program that sorts the HairSalon objects in alphabetical order by service description. Call the method and display the results. Finally, add a prompt to the SortSalon program giving the user three choices: sort by description, price, or time. Depending on user's input, call one of the three sort methods and display the results.

Below is the data for the program:

Services Prices Time

Cut $8.00 15

Shampoo $4.00 10

Manicure $18.00 30

Style $48.00 50

Permanent $18.00 55

Trim $6.00 5

## Deliverables

1. Program must be written in very simple language so a real beginner can understand and able to explain the codes.

2. Program must be written in Java language and work on Java JRE 1.4 or above.

3. Program must be well commented and documented.

4. Program must work on a Windows platform.




## Platform



Ver mais: string source code java, sort sort sort, sort sort, sort array in ascending order in c, sort array c, jre 4.2, strings, shampoo, java java java, java code example, order java, java simple array, java simple example, explain java code, class hair, java code description, create class named package, program beginner, java simple class, string integer, java add data, code example java, input output strings java, add data java, java input field

Acerca do Empregador:
( 1 comentário ) United States

ID do Projeto: #3017894

Premiar a:


See private message.

$1 USD em 1 dia
(83 Avaliações)

3 freelancers are bidding on average $3 for this job


See private message.

$4.25 USD em 1 dia
(55 Comentários)

See private message.

$3.4 USD em 1 dia
(6 Comentários)