Answer:
salary=float(input("Enter salary : "))
numDependents=int(input("Enter number of dependents : "))
stateTax=salary*0.065
federalTax=salary*0.28
dependentDeduction=salary*0.025*numDependents
totalWithholding=stateTax + federalTax+ dependentDeduction
takeHomePay=salary- totalWithholding
print("State Tax :$",str(stateTax))
print("Federal Tax :$",str(federalTax))
print("Dependents:$",str(dependentDeduction))
print("Salary :$",str(salary))
print("Take-Home Pay:$",str(takeHomePay))
Explanation:
- Take the salary as input from user.
- Take number of dependents as an input from user.
- Calculate the state tax and Federal Tax. Then calculate the independent detection tax by multiplying salary with 0.025 as well as number of dependents.
- After that calculate total withholding and then calculate home pay by subtracting total withholding from salary.
- Finally print all the details.
Answer:
<a href"url">any text here..if you want</a>
A top-down algorithm for changing a tire on a car includes:
- find a safe place to park
- have your car manual ready
- open the trunk or take out key,
- press unlock button on key or press open trunk button.
<h3>What is an algorithm?</h3>
In computer science, it refers to the finite sequence of rigorous instructions that are used to solve a class of specific problems or to perform a computation. Algorithms are used as specifications for performing calculations and data processing. Wikipedia
In other word, the algorithm are also some set of instructions for solving a problem or accomplishing a task.
In essence, these algorithm involves series of procedure used for solving a problem or performing a computation.
Read more about algorithm
brainly.com/question/13800096
#SPJ4