Question: Psuedocode for the following Some variables have been assigned for you and the output statements have been written. Read the starting code carefully before you
Psuedocode for the following
Some variables have been assigned for you and the output statements have been written. Read the starting code carefully before you proceed to the next step.
Write the Python code needed to perform the following:
Calculate state withholding tax stateTax at percent
Calculate federal withholding tax federalTax at percent.
Calculate dependent deductions dependentDeduction at percent of the employees salary for each dependent.
Calculate total withholding totalWithholding as stateTax federalTax dependentDeduction.
Calculate takehome pay takeHomePay as salary totalWithholding
Execute the program by clicking the Run button at the bottom. You should get the following output:
image.png
In this program, the variables named salary and numDependents are initialized with the values and To make this program more flexible, modify it to accept interactive input for salary and numDependents.
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
