Andrew K.

asked • 01/18/21

Python_Assignment

You found an exciting summer job for five weeks. Suppose it pays $15.50 per hour.  

Suppose that: total_tax is 14% of the total pay for five weeks.

After paying taxes you spend 10% of your net income to buy new clothes and accessories for the next school year.

After buying cloth and accessories you spend 25% of the remaining money to buy savings bonds.

For each dollar spent buying savings bonds your parents spend $0.50 to buy additional savings bonds for you.

 

Write a program that prompts the user to enter the pay rate for an hour of work and the number of hours worked each week.

The program outputs the following:

Your income before and after taxes from your five-week summer job.

Money spent on cloth and accessories

Money spent to buy savings bonds 

Money your parents spend to buy additional savings bonds

Money left after taxes, cloth, and accessories, savings bonds(you bought).

 

Notes for the assignment:

Code should include the header file as usual, along with comments that are brief, specific, and meaningful(no rambling).

Please be sure blank lines are used between sections of code to make it easier to read and variables well named.

No function calls, arithmetic calculations, rounding, or type conversions can be done in print statements.

Create a function for the savings bond calculation based on what the parents spent. The function must return what the parents spent to buy a savings bond.

All dollar values need to be rounded in two decimal places.


1 Expert Answer

By:

Patrick B. answered • 01/18/21

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.