Help with python coding problem please. using these function headers: Main() GrossPayCalculation (hours, rate) TaxCalcul

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Help with python coding problem please. using these function headers: Main() GrossPayCalculation (hours, rate) TaxCalcul

Post by answerhappygod »

Help with python coding problem please.
using these function headers:
Main()
GrossPayCalculation (hours, rate)
TaxCalculation (annual_pay)
I need to write a program using the above function headers that asks the user to input the number of hours worked in a week and then calls GrossPayCalculation. After this, the main problem needs to convert the weekly pay to annual pay by multiplying by 52. Then, it needs to call the second function TaxCalculation. After that, the main program will convert to a weekly tax by dividing the annual tax by 52.
heres the sample
sample:
enter number of hours worked: 40
enter your hourly wage: 24.04
You owe $129.79 on a weekly salary of $961.60
At this rate your annual tax will be $6,749.20 and your annual salary
will be $50,003.20
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply