subject

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 6.5 percent Calculate federal withholding tax (federalTax) at 28.0 percent. Calculate dependent deductions (dependentDeduction) at 2.5 percent of the employee’s salary for each dependent. Calculate total withholding (totalWithholding) as stateTax + federalTax + dependentDeduction. Calculate take-home pay (takeHomePay) as salary - totalWithholding Execute the program by clicking the Run button at the bottom. You should get the following output: State Tax: $81.25 Federal Tax: $350.00000000000006 Dependents: $62.5 Salary: $1250.0 Take-Home Pay: $756.25 In this program, the variables named salary and numDependents are initialized with the values 1250.0 and 2. To make this program more flexible, modify it to accept interactive input for salary and numDependents.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:30
Which cultural aspect does this type of song best portray? a german polka dance
Answers: 1
question
Computers and Technology, 23.06.2019 16:30
Which of the following is not an enhancement to the standard wiki to make it more attractive for corporations? encryptionwork spacespermission toolspredictive text
Answers: 2
question
Computers and Technology, 24.06.2019 08:30
Aconsumer would pay an extra they used the rent to own program to buy the computer, rather than using cash. for all of the items, is the cheapest option over the life of the contract. the most expensive overall option is to use purchase the item.
Answers: 2
question
Computers and Technology, 24.06.2019 20:20
Write python code that prompts the user to enter his or her favorite color and assigns the user’s input to a variable named color.
Answers: 1
You know the right answer?
Some variables have been assigned for you and the output statements have been written. Read the star...
Questions
question
Social Studies, 01.12.2021 04:30
question
Mathematics, 01.12.2021 04:30
question
Mathematics, 01.12.2021 04:30
question
History, 01.12.2021 04:30
question
Mathematics, 01.12.2021 04:30
question
Mathematics, 01.12.2021 04:30