Answer:
#include<stdio.h> 
 
int main() 
{ 
float rate_of_pay,regular_hours,overtime_hours,grosspay,netpay,tax; 
 
printf("Enter the Hourly rate of pay : "); 
scanf("%f",&rate_of_pay); 
printf("Enter the number of Regular hours : "); 
scanf("%f",®ular_hours); 
printf("Enter the number of Overtime hours : "); 
scanf("%f",&overtime_hours); 
grosspay=(regular_hours*rate_of_pay)+(1.5*overtime_hours*rate_of_pay); 
netpay=grosspay-(grosspay*0.2); 
printf("Employee's Gross pay = %f\\",grosspay); 
printf("Tax = %f\\",0.2*grosspay); 
printf("Employee's Net pay = %f\\",netpay); 
return 0; 
} 
 
Note: The variables are declared as float, to support partial hours like 0.5,6.5 etc.
Step-by-step explanation: