Question: Complete the program below using Online GDB . This program calculates take net pay for a single pay period State tax calculated is salary
Complete the program below using "Online GDB
This program calculates take net pay for a single pay period
State tax calculated is salary times state tax rate
Federal tax is salary times federal tax rate
Dependent deduction is salary times dependent deduction times number of dependents
Total withholding is state tax plus federal tax minus dependent deduction
Net pay is salary minus total withholding
Copy the program below this line
Student name, FA chlab
# program constants
STATETAXRATE
FEDERALTAXRATE
DEPENDENTDEDUCTION
# data input
print
salary floatinputEnter salary:
numDependents intinputEnter number of dependents:
# complete calculations below
# print results fill in variable name for
print
printfSalary: $salary:f
printfState Tax: $ stateTax:f
printfFederal Tax: $ federalTax:f
printfDependents: $dependents:f
printfTake Home Pay: $ netPay:f
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
