QUESTION
Question
write an application that calculates and display the weekly salary for an employee.the main() methods 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 1.5 times the pay rate;return the result to the main() method to be displayed.
ANSWERS:
Step 1
logic:-
calculate overtime only when overtime hour is