Create a class that holds the service description and price

Assignment Help JAVA Programming
Reference no: EM13974191

Create a class that holds the service description

The following table shows the various services offered by a hair salon, including its prices and times required:

Service Description Price ($) Time (Minutes)

Cut 8.00 15

Shampoo 4.00 10

Manicure 18.00 30

Style 48.00 55

Trim 6.00 5

Create a class that holds the service description, price, and number of minutes it takes to perform the 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. Save the class as Service.

Create a second class called SalonReport which has three attributes:

• A single-dimensional array that can hold five Service objects. Fill the array with the data from the table above.

• Number of employees

• A two dimensional array that will hold the number of each type of service each employee in the salon has conducted.

SalonReport should have the following methods:

• A constructor which takes the number of employees as a parameter

• InsertService(int serviceNo, int employeeNo, int total) - the insert service method will take in the number of times a service was conducted for a particular service and employee. You can assume the numbers passed in for the service and employee are valid indexes for the 2D array.

• calculateServiceTotalByEmployee(int serviceNo, int employeeNo) - returns the total amount earned for a particular employee and particular service. Like the last method, you can assume the numbers passed in are the index of the service and employee.

• calculateServiceTotal(int serviceNo) - returns the total amount earned for a particular service for all employees. (Assume serviceNo is a valid index to the array).

• calculateSalontTotal() - returns the total amount earned for all services for all employees.

Reference no: EM13974191

Questions Cloud

Why do you think sears wants to reinstall commissions : Do you think that the new safeguard that separates diagnosing problems from selling services will prevent a recurrence of past problems? Explain.
The final solution has a density of 1.00 g/ml : You wish to prepare 500.0 mL of a 550.0 ppm w/v fluoride (MW = 18.9984 g/mol) solution. How many grams of beryllium fluoride (BeF2, MW = 47.01 g/mol) are needed to prepare this solution? Assume the final solution has a density of 1.00 g/mL.
Calcium nitrate solution to 5 drops of distilled water : You add 5 drops of 0.20 M Calcium Nitrate solution to 5 drops of distilled water. Calculate the concentration of the diluted solution. I was using V1M1=V2M2 , it keeps saying my answer is wrong
What is the relationship between discounting and compounding : Calculate the amount of money that Sharon needs to set aside from her bonus this year to cover the down payment on a new car, assuming she can earn 6 percent on her savings. What if she could earn 6 percent on her savings?
Create a class that holds the service description and price : Create a class that holds the service description, price, and number of minutes it takes to perform the service. Include a constructor that requires arguments for all three data fields.
Elements are known for having predictable charge : Which types of Elements are known for having predictable charge?
4 cro5 + 12 h+ : 4 CrO5 + 12 H+ ---->    7   ? (a gas) + 6 H2O + 4 Cr3+
How baca use of symbols and metaphors : In the poem Baca writes eloquently about the perfect nature of the imperfect soul. In a 300 word (minimum) response describe how Baca's use of symbols and metaphors (and other poetic techniques) convey the idea that each of us needs to accept ours..
Summary of pro points of view, and possible cons view : summary writing according to DEBATE POINT: TeamD Midterm Debate.doc, to prove China can rise peacefully (using related references), double space, 5 pages MLA formatting style

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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