Menu

[solved]-Create Python Program Calculates User S Weekly Gross Take Home Pay Far Print N Paycheck Ca Q39021196

Create a Python program that calculates a user’s weekly grossand take-home pay

I have this so far:

print(‘n Paycheck Calculator’)
print()

# get input from user
hoursWorked = float(input(“Enter Hours Worked:”))
payRate = float(input(“Enter Hourly Pay Rate:”))

grossPay = hoursWorked * payRate
print(“Gross Pay: ” + str(grossPay))

Create a program that calculates a users weekly gross and take-home pay. Console Pay Check Calculator Hours Worked: 35 Hourl

Create a program that calculates a user’s weekly gross and take-home pay. Console Pay Check Calculator Hours Worked: 35 Hourly Pay Rate: 14.50 Gross Pay: Tax Rate: Tax Amount: Take Home Pay: 507.5 18% 91.35 416.15 Specifications • The formula for calculating gross pay is: gross pay = hours worked * hourly rate The formula for calculating tax amount is: tax amount = gross pay * (tax rate / 100) The formula for calculating take home pay is: take home pay = gross pay – tax amount The tax rate should be 18%, but the program should store the tax rate in a variable so that you can easily change the tax rate later, just by changing the value that’s stored in the variable. The program should accept decimal entries like 35.5 and 14.25. Assume the user will enter valid data. • The program should round the results to a maximum of two decimal places. Show transcribed image text Create a program that calculates a user’s weekly gross and take-home pay. Console Pay Check Calculator Hours Worked: 35 Hourly Pay Rate: 14.50 Gross Pay: Tax Rate: Tax Amount: Take Home Pay: 507.5 18% 91.35 416.15 Specifications • The formula for calculating gross pay is: gross pay = hours worked * hourly rate The formula for calculating tax amount is: tax amount = gross pay * (tax rate / 100) The formula for calculating take home pay is: take home pay = gross pay – tax amount The tax rate should be 18%, but the program should store the tax rate in a variable so that you can easily change the tax rate later, just by changing the value that’s stored in the variable. The program should accept decimal entries like 35.5 and 14.25. Assume the user will enter valid data. • The program should round the results to a maximum of two decimal places.

Expert Answer


Answer to Create a Python program that calculates a user’s weekly gross and take-home pay I have this so far: print(‘n Paycheck C… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *