1. I am a beginner please help me code these 2 codings

Mar 12 2020 5:23 AM
1. Write a program named Payroll that prompts the user for a name, ID number, hourly pay rate and number of hours worked. Display all of the input data to the console window as well as the following calculated values: • Gross pay – defined as hourly pay rate times hours worked • Tax – defined as 14% of the gross pay • Gross pay minus Tax
 
2. Modify the program of question 1 to allow the company to calculate and pay overtime. To do this: - if the number of hours worked is greater than 40 hours then the hours that are above 40 are calculated as one and a half times the rate of pay and 40 hours are used for the normal rate of pay. Display all of the input variables as well as: • No of hours • No of overtime hours • Normal pay for the 40 hours • Overtime pay for the hrs greater than 40 hours • Gross Pay – Normal pay + overtime • Tax • Net Pay – pay minus tax
 

Answers (1)