Your friend Michael has recently started a “Movers and Cleaners” business
Ask Expert

Be Prepared For The Toughest Questions

Practice Problems

Your friend Michael has recently started a “Movers and Cleaners” business

Scenario:

Your friend Michael has recently started a “Movers and Cleaners” business. His business assists people in moving to a new flat by packing and moving their household items and cleaning the old and new flat for moving. He has employed three people and needs you to assist him in generating correct pay slips for his employees automatically. He is aware that you have been studying Java and wants to seek your skill on this particular project.

Michael has asked you to program a Paycheck Calculator for his company.

Write a program that calculates and prints the fortnightly pay slip for an employee. The net pay is calculated after taking the following deductions:

FNPF: 8.5%

PAYE: 6.5%

Fiji Care Tax: 2.85%

Medical Insurance: $6.50

The program will need the following values for each employee from the user: employee first and last names, hours worked and the pay rate. Design your program to get these inputs from the user. Store these input into variables and use these variables when you call the methods. Your program should then perform calculation according to the deduction details given above. The output to be displayed on the Console. You should design your own output format to neatly display the pay in a pay slip format

A sample input/output console for employee Michael Buadromo may look like this:


You must demonstrate this program using Object Orientated Programming. Michael has also provided you with an incomplete class UML diagram:


(…) indicates that there are some more members which you will need to include.

Technical Requirements:

a. Consider applying the following methods in this Assignment 1:

i. Public string getNames () - optional (created in main Method)

ii. Public int getHoursWorked () - optional (created in main method)

iii. Public double getPayRate () - optional (created in main method)

iv. Public double calcFortnightlyIncome (parameters) } - Part (iv) to (vii) must be

v. Public double calcDeduction (parameters) } - created/saved in a separate java class file

vi. Public double calcNetPay (parameters) }

vii. Public void displayPaySlip (parameters) }

b. Apart from the above methods, your class should also include constructor methods, accessor and mutator methods, instance methods, instance variables, constant variables etc. (if applicable).

c. Write the main method and create 3 instances of the object and calculate FortnightlyPay, Deductions and Net Pay for each Employee.

d. Test your program using realistic and dummy employee working hours as well as different pay rates and provide the Pay Slip as the output.

Assignment Requirements

1. Create a complete UML Class Diagram to express ALL the attributes and methods of the PaycheckCalculator class.

2. Based on the UML Class Diagram, create a program in Java using Netbeans IDE. You will not need to check for data entry errors or do any data validation. Assume the user will always enter correct values.

3. The program must be well documented with proper comments where needed for readability.

Hint
Computer"getName() produces a String that contains the name of the entity (class, interface, array class, primitive type, or void) that this Class object represents. The File class includes the getName() function. The Name of the supplied file object is returned by this function.The name of the supplied file object is returned by the function as a string object. If there is no name in the abstract...

Know the process

Students succeed in their courses by connecting and communicating with
an expert until they receive help on their questions

1
img

Submit Question

Post project within your desired price and deadline.

2
img

Tutor Is Assigned

A quality expert with the ability to solve your project will be assigned.

3
img

Receive Help

Check order history for updates. An email as a notification will be sent.

img
Unable to find what you’re looking for?

Consult our trusted tutors.

Developed by Versioning Solutions.