Question: Pseudocode for the following # input statements salary = float ( input ( Enter salary: ) ) # Prompt the user for input
Pseudocode for the following
# input statements
salary floatinputEnter salary: # Prompt the user for input and convert it to a float
numDependents intinputEnter the number of dependents: # Prompt the user for input and convert it to an integer
# Calculate state withholding tax
stateTax salary
printState Tax: $ strstateTax
# Calculate federal withholding tax
federalTax salary
printFederal Tax: $strfederalTax
# Calculate dependent deductions
dependentDeduction salary numDependents
printDependents: $ strdependentDeduction
# Calculate total withholding
totalWithholding stateTax federalTax dependentDeduction
#Calculate takehome pay
takeHomePay salary totalWithholding
# output statements
printSalary: $ strsalary
printTake Home Pay: $ strtakeHomePay
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
