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

  Splash page designed for an app called super foods

Splash page designed for an app called Super Foods. Attached is the skeleton app

  Create java application containing array that stores 2 value

Create a JApplet with a JButton labeled "Who's number one?". When the user clicks the button, display your favorite sports team. Save the file as JNumberOne.java.

  Write a java gui program that has eight tabs

I need to write a java gui program that has 8 tabs, General, Options, Customers, Contractors, Pools, Hot Tubs, Temp Calc, and Length Calc. Each pane needs an Exit button that will close only that pane.

  Prepare executable programs a translate program and a

prepare executable programs. a translate program and a dictionary program. the programs will be written in any

  Setting up the form page

Download and save the attached comment CGI mailer script form-mail2.pl to your server's cgi-bin directory, and change the permissions on the script to make it executable (not writable).

  Button to increase or decrease the number of the balls

Simulates a bouncing ball. Extend to allow mulitple balls. You can use the +I or -I button to increase or decrease the number of the balls and use teh Suspend and Resume buttoms to freeze the balls or resume bouncing. For each ball, assign a random c..

  What is a java package and how is it used

What is a Java package and how is it used? What are synchronized methods and synchronized statements?

  Start developing java code to ask questions

You are ready to start developing Java code to ask questions on customer information and the sub that customers want to order. You are only concerned with the functionality to request and provide feedback on what the customer entered

  Case study - greenhouse humidity control

The control system that will respond to sensor information to turn on/off a misting device, turn on/off a watering system and open/close ventilation windows.

  Build a thread system

Identify all Nachos classes that you will modify and where you plan to do you modifications - Identify all classes that you plan to implement and give the API for each class,

  Implement simple java program to input syllabus grades

To implement simple Java program to input (hypothetical) syllabus grades, computing and displaying both normal Mean and Harmonic Mean.

  Design a class named magazinesubscription

Design a class named MagazineSubscription that has fields for a subscriber's name, the magazine name, and number of months remaining in the subscription.

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