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

Assignment Help Computer Engineering
Reference no: EM1329528

The Curl Up and Dye Salon offers a variety of salon services for its customers. Jane Fields, the owner, has contracted to have you write a program that allows reports to be output, sorted by each type of service offered. Table below shows the various services, service prices, and service times.

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 return each 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.

Reference no: EM1329528

Questions Cloud

Write a recursive process called productarray : Write a recursive method called productArray that takes an array of integers, a start index and an end index and returns the product of elements of the array.
Role model of multicultural leadership characteristics : Select a current global business leader who is an excellent role model of essential global and multicultural leadership characteristics.
Identify two organizations that have successfully merged : Identify two organizations that have successfully merged
The size of the worker force in a community : The size of the worker force in a community these folks are gainfully employed What is the unemployment rate.
Design a class for services offered by a hair-styling salon : The Curl Up and Dye Salon offers a variety of salon services for its customers. Jane Fields, owner, has contracted to have you write a program that allows reports to be output, sorted by each kind of service offered. Table below shows the various ..
A discrete random variable : A discrete random variable is
Explain pr function in e-business : Explain PR function in e-business and how does the PR function in an e-business organization differ from a brick-and-mortar organization
Give some examples of expenditures required : Give some examples of expenditures required on the part of small business firms to protect the environment.
Organizational managers creating healthy organizational : Describe the roles and responsibilities that organizational managers and leaders play in creating and maintaining a healthy organizational culture.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Definition of method dashedline

Write down the definition of the method dashedLine , with one parameter, an int. If parameter is negative or zero, method does nothing.

  Regulating the content of internet

Specify to what extent there should be regulation of the content on the Internet, if at all? State the factors and principles the federal government must take into account when considering the indecency regulation issues.

  Determined through default conventions

An advantage of dynamic scoping is that access to nonlocal variables is considerably faster than accesses to nonlocals when static scoping is used.

  Concept of inheritance and object hierarchy

Study the concept of inheritance and object hierarchy in the object-oriented programming.

  Security management model

Write down the sites which will discuss the ongoing responsibilities of security manager, can be adapted for use within the security management model?

  Write a program based on encryption scheme

Write a program based on encryption scheme.

  Express the role of each table

Propose the design of a database. Explain the role of each table in your proposed database and the relationships between the tables.

  Describing the structure

Suppose that a new type known as POINT has been described-- it is a structure consisting of the two fields, x and y, both of type double. Suppose two variables p1 and p2 of kind POINT have been declared.

  What to recommend as a method of change

Contemporary organizations should be supportive of widening the span of control, flattening structure, and forming collaborative and flexible teams.

  Develop a plan on how to support a business

Develop a plan on how to support a business need with software, this software will have data points that we need to map.

  Program of five to ten lines in assembly language

Program of five to ten lines in assembly language

  Describe the development of network architectures

explain the development of network architectures and its subsequent consolidation over past 20 years. Include topologies and the TCP/IP, Internetwork Packet Exchange/Sequence Packet Exchange (IPX/SPX), Network Basic Input Output System (NetBIOS), ..

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