Question: make sure its in python Page 1 > of 3 Objectives: Practice getting input from the user Converting input when appropriate Use input in simple
Page 1 > of 3 Objectives: Practice getting input from the user Converting input when appropriate Use input in simple math equations Format numbers and strings Use conditional statements Assignment: Your job is to create a program that tells the user whether they have been below, on, or over budget given their monthly income and savings goal. To do this, your program should ask the user how much they're making in a month and how much they would like to save. The program should then calculate the budget -- how much of their monthly salary can they spend and still meet their savings goal. Next, the program should give a series of at least four expenses that are paid in a month (my example has rent, utilities, food, and miscellaneous) asking the user how much they spent on each category. Once you've finished gathering expenses, compute how much they spent that month and through a series of conditions, tell the user whether they were under, on, or over budget. On budget can be +5 the determined budget (so, a $1000 budget could have between $995-$1005 and still be on budget). If the user went over budget (so more than $5 over the determined budget), tell them how much they went over budget. A sample execution of the lab is attached on the following page. Note: Make sure your prices are format neatly
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
