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

computer programming problem. i need every step done in c programming format. pl

ID: 668566 • Letter: C

Question

computer programming problem. i need every step done in c programming format. please read problem and do each step.


asyto match corresponding brackets 5) Write readable programs and program in C only. Develop a program that will determine the gross pay and net pay (after taxes for each of several employees. The program should execute in a loop until the hours worked entered by the user is less than(zero) 0. Each employee pays a flat tax of 150.00 for the first 1000.00 dollars earned. Taxes are computed at 15% for all earnings over 1000.000 dollars if the number of dependents is 2 or less and 12.5% if the number of dependents are 3 or more. Sample input/output dialog: Enter # of yours worked (-1 to exit program): 20 Enter rate of pay: 10.00 Enter number of dependents: 2 Gross salary is :$9999.99 Over Time Pay: $999.99 Taxes_Width_held: $999.99 Your Salary after taxes is: $999.99

Explanation / Answer

Hi,

Below is the solution to your problem:

#include<stdio.h>
void main()
{
float basic, da, hra, tax, pf, gross, net;
int no_of_hours,no_of_dependents,amount_hr;
char name[50];
clrscr();
printf(“ ENTER YOUR NAME…:”);
scanf(“%s”, &name);
printf(" ENTER THE NO OF HOURS LOGGED BY USER....");
scanf("%d",&no_of_hours);
printf("Enter amount paid per hour ");
scanf("%d,&amount_hr")
printf("Enter the number of Dependents[value must be 1,2,3 and... more ]");
scanf("%d",&no_of_dependents);
basic=no_of_hours*amount_hr;
while(no_of_hours<0)
{
if(no_of_dependents==1||2){
tax_on_basic=(15/100)*basic;
   total_tax=tax_on_basic-basic;     
   }
   else{
tax_on_basic=(12.5/100)*basic;
   total_tax=tax_on_basic-basic;
   }
  
   gross = basic;
net = total_tax;
printf(“ THE GROSS SALARY IS…: %f”, gross);
printf(“ THE NET SALARY IS…: %f”, net);
getch()


}

}

Explaination:

Hope that helps...HAPPY ANSWERING!!!!!!!!!!!