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

Assignment Help Computer Engineering
Reference no: EM1335153

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 each return 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.
Save the files as Service.java and SalonReport.java

Reference no: EM1335153

Questions Cloud

Explaion business plan idea : Explaion Business Plan Idea and Why there is a need for your product or service in the marketplace
Functions of the law and legal system : Basic theoretical analysis of what the law does and what the regulatory role of a legal system is.
Explain how does the timing of lay-off and hiring decisions : Explain how does the timing of lay-off and hiring decisions made by firms explain the misleading characteristic of this indicator.
Explain the information-gathering techniques : Explain the information-gathering techniques and design methods you would propose to use for the project and find the key factors that will help ensure the information required for the project is gathered successfully
Make a class for services offered by a hair-styling salon : make 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..
Discounted profitability index of the project : Using Excel or pencil and paper, what is the discounted profitability index of the project?
Explain ip4 chocolate bar : Explain IP4 Chocolate Bar and Overview of integrated marketing communications
Evaluate the strengths and weaknesses of practice : Provide a brief summary of the five best practices, find an organization using each best practice, and evaluate the strengths and weaknesses of each best practice.
Task of combating international crime : How does Interpol accomplishes its task of combating international crime and catch transient fugitives?

Reviews

Write a Review

 

Computer Engineering Questions & Answers

  Standard apis supported by the jaxp

Explain two standard APIs supported by JAXP (Java API for XML processing) and provide a comparison between two mechanisms.

  Give declaration and definition of a structure

Write down a program to display the initial values held by the structure (you must use a structure) on the screen.give declaration and definition of a structure.

  Compute the minimum salary for all employees

compute the maximum salary for exempt employees and the maximum salary for non-exempt employees.

  Find that exist two elements in s whose sum is exactly x

Since the Computer Science department at Brown believes in doing every- thing through a well defined algorithm, you have to supply these poor guys an algorithm for doing the task, and one that is asymptotically efficient! So, here goes your exact ..

  Program that help an elementary school learn multiplication

Computers are playing an increasing role in education. Write a program that will help an elementary school learn multiplication. make Use of a Random object to produce two positive one-digit integers.

  Moidifying the depth first search

Describe how to alter the depth-first search so that every vertex v is allocated an integer label cc[v] between 1 and k.

  How to write a report on object-oriented systems

How to write a report on Object-Oriented Systems?

  Esmitating the output of the given code

State the output of following statements? cout

  Modify a module named getnumber

Design a module named getNumber that uses a reference parameter variable to accept an Integer argument. The module should prompt the user to enter a number and then store the input in the reference parameter variable.

  Make a stack area at 1000h

Push 10h bytes, located at data memory addresses 60000h to 6000fh, on the stack using indirect addressing. Then pop stack to memory addresses 62000h to 6200fh using indirect addressing. Load unique data into the 10h bytes in order to test the prog..

  Impact on the quality of software available for used

Will commercial software manufacturers be justified in raising their prices to make up for revenue lost to open source competitors? Do you think that strategy will be effective.

  Find how to perform system calls in each operating system

Write a C++ or Java program that reads from one file and writes to another find how to perform system calls in each operating system.

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