Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

PLEASE READ: I Want the answer with for or while loop !!in C Language !Or I want

ID: 3633084 • Letter: P

Question

PLEASE READ: I Want the answer with for or while loop !!in C Language !Or I want rate you

Write a program to process weekly employee time cards for all employees of an
organization. Each employee will have three data items: an identification number, the hourly wage rate, and the number of hours worked during a given week. Each employee is to be paid time and a half for all hours worked over 40. A tax amount of 3.625 percent of gross salary will be deducted. The program output should show the employee’s number and net pay. Display the total payroll and the average amount paid at the end of the run.

Explanation / Answer

#include #define tax 0.03625 double calculation(double hours, double H_W_Rate); /* Function prototype */ int main(void) { /* variable declaration */ double pay, no_worker, ave_pay, ID, H_W_Rate, hours, N_Worker, net_pay, salary; /* Get the number of employee */ printf("Please please enter number of employee(s):- "); scanf("%lf", &no_worker); salary = 0.0; do{ N_Worker = 0; printf(" Please enter employee's ID:- "); scanf("%lf", &ID); printf("Please enter the hourly wage rate:- "); scanf("%lf", &H_W_Rate); printf("Please please enter the numbers of hours worked during a given week:- "); scanf("%lf", &hours); printf("The net payment for this employee is RM%6.2f ", net_pay); printf(" All employees processed. "); printf("the salary is %8.2f ", salary); printf("Average amountpaid is RM%6.2f ", ave_pay); N_Worker = N_Worker + 1; pay = calculation(hours, H_W_Rate); salary = salary + pay; ave_pay = salary / N_Worker; net_pay = pay - (pay * tax); /* Calculation for the pay */ double pay; if(hours
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote