Question

Tax Calculator: Write a program that calculates Federal and CA State tax based on gross income...

Tax Calculator: Write a program that calculates Federal and CA State tax based on gross income that was input from user. The program should print the gross income, federal tax mount, state tax amount and net income (earnings after tax deduction) using python program

0 0
Add a comment Improve this question Transcribed image text
Answer #1
def main():
    salary = float(input('Enter salary: '))
    federal_tax = 0.1 * salary
    if salary > 100000:
        federal_tax = 0.15 * salary
    state_tax = 0.05 * salary
    net_salary = salary - (federal_tax + state_tax)
    print("Gross income: ${:.2f}".format(salary))
    print('Federal Tax is ${:,.2f}'.format(federal_tax))
    print('State Tax is ${:,.2f}'.format(state_tax))
    print('Net salary is ${:,.2f}'.format(net_salary))


main()
Add a comment
Know the answer?
Add Answer to:
Tax Calculator: Write a program that calculates Federal and CA State tax based on gross income...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Program Gross Pay. Implement this program using functions. Please pay attention to the requirements Function should...

    Program Gross Pay. Implement this program using functions. Please pay attention to the requirements Function should have 1 parameter for gross salary. Return is net salary. Print out employee name and net salary. Write a program to fetch employee name and the salary. Calculate the Federal tax and state tax based on the following criteria: If the salary is greater than 100000 then calculate the federal tax at 15% otherwise calculate the federal tax at 10% Calculate the state tax...

  • Python Simple Programming Write a program in Python that calculates the tip and total for a...

    Python Simple Programming Write a program in Python that calculates the tip and total for a meal at a restaurant. When your program is run it should ... Calculate the tip and total for a meal for a restaurant Print the name of the application "Tip Calculator" Get input from the user for cost of meal and tip percent Print the tip and total amounts. The formula for calculating the tip amount is: tip = cost of meal * (tip...

  • plz help with this matlab program Write program that calculates the total amount of taxes a citizen has to pay based on...

    plz help with this matlab program Write program that calculates the total amount of taxes a citizen has to pay based on his/her income. Here is the rule: Federal tax 10% on income between $0 and $8025 15% on income between $8026 and $32550; plus $802.5 25% on income between $32551 and $78850; plus $4481.25 28% on income between $78851 and $164550; plus $16056.25 33% on income between $164551 and $357700; plus $40052.25 Social Security tax 6.2% of income above...

  • (COs 1 and 8) Create a Python program that calculates the tip and total for a...

    (COs 1 and 8) Create a Python program that calculates the tip and total for a meal at a restaurant. Paste Python code here; output not required. Sample output: Tip Calculator Enter cost of meal: 52.31 Enter tip percent: 20 Tip amount: 10.46 Total amount: 62.77 Specifications: •Input: costOfMeal, tipPercent         The formula for calculating the tip amount is: tip = costOfMeal * (tipPercent / 100) •         The program should accept decimal entries like 52.31 and 15.5. •         Assume the user...

  • IN PYTHON Write a program that takes a user-input distance and speed and then calculates an...

    IN PYTHON Write a program that takes a user-input distance and speed and then calculates an ETA. Your program should work for ANY COMBINATION of distance and speed.

  • USING PYTHON PLEASE Write a program that calculates the factorial value of a number entered by...

    USING PYTHON PLEASE Write a program that calculates the factorial value of a number entered by the user. Remember that x! =x* (x-1)* (x-2)*... *3+ 2* 1. Your program should check the value input by the user to ensure it is valid (i.e., that it is a number > =1). To do this, consider looking at the is digit() function available in Python. If the user enters an incorrect input, your program should continue to ask them to enter a...

  • Eric's gross pay for the week is $2,150. His deduction for federal income tax is based...

    Eric's gross pay for the week is $2,150. His deduction for federal income tax is based on a rate of 25%. He has no voluntary deductions. His yearly pay is under the limit for OASDI. What is the amount of FICA tax that will be withheld from Eric's pay? (Assume a FICA-OASDI Tax of 6.2% and FICA-Medicare Tax of 1.45%. Round any intermediate calculations to two decimal places, and your final answer to the nearest dollar.) $537.50 $701.98 $136.50 $164.48

  • C++ Write a program that calculates the amount of IP addresses available based upon user input...

    C++ Write a program that calculates the amount of IP addresses available based upon user input of 1 through 7

  • Create one program using these three programs: 1. Payroll Calculator Need to include state tax amount...

    Create one program using these three programs: 1. Payroll Calculator Need to include state tax amount and SS amount Net pay need to reflect those amount Need to make all the amounts with 2 decimal points. Hint See line #31 - Use the programming outline/format discussed in the lecture, with proper documentation, data declaration, etc. - When asking a user for data, provide user-friendly and clear direction - Same thing for the output. - Include code and screenshot of the...

  • eBook Show Me How Calculator Print Item Federal Income Tax Withholding Bob Wolfe's weekly gross earnings...

    eBook Show Me How Calculator Print Item Federal Income Tax Withholding Bob Wolfe's weekly gross earnings for the present week were $2,370. Wolfe has four exemptions. Using the wage bracket withholding table in Exhibit 2 with a $75 standard withholding allowance for each exemption, what is Wolfe's federal income tax withholding? Round your answer to two decimal places. Table for Percentage Method of Withholding WEEKLY Payroll Period EXHIBIT 2 Wage Bracket Withholding Table ..SO (a) SINGLE person (including head of...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT