[SOLVED] SOLVED:application that calculates and displays the weekly salary for an employee

19.99 $

Programming resource
Digital learning resource
Category:
Practical programming resource
Suitable for guided study and reference
Tutor guidance available when needed

Description

5/5 - (4 votes)

Write an application that calculates and displays the weekly salary for an employee. The main() method prompts the user for an hourly pay rate, regular hours, and overtime hours. Create a separate method to calculate overtime pay, which is regular hours times the pay rate plus overtime hours times 1.5 times the pay rate; return the result to the main() method to be displayed. Save the program as Salary.java.Write a Java class that contains variables that hold your
hourly rate of pay and the number of hours that you worked. Display your gross
pay, your withholding tax, which is 15% of your gross pay, and your net pay
(gross pay – withholding). Save the class as Salary.java. Show substantial
comments.

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.