computer programming question 4) Align brackets so that it is easy to match corr
ID: 668519 • Letter: C
Question
computer programming question
Explanation / Answer
#include<stdio.h>
int main()
{
int HW, RP, ND,GS,OT,OTP,TX,TAX,NS;
printf("ENTER HOURS WORKED");
scanf("%d",&bs);
printf("Enter Rate of pay")
scanf("%d",&RP);
printf("Enter no of dependents")
scanf("%d",&ND);
GS=HW*RP;
printf("%d/Gross Salary is $:,GS)
OT=HW-10;
OTP=OT*RP;
printf("%d/Over time pay $:,OTP)
if
{(ND<=2)
TX=15;
else
TX=12.5;
}
TAX=GS*TX;
printf("%d/Tax deducted $:,TAX)
NS=GS-TAX;
printf("%d/Salary after tax is $:,NS)
return 0;
}
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.