Question: Analyze Budget This python program will ask for a budget amount in dollars for the month. All expenditures are to be entered and then let
Analyze Budget
This python program will ask for a budget amount in dollars for the month. All expenditures are to be entered and then let the user know if they are over or under budget.
Requirements:
1. Ask the user for the budget in dollars
2. Use a loop to gather expenses.
3. Use a 0 to end the loop (i.e zero dollars)
4. Must pass the test cases below. Points will be deducted if input deviates to where I have to figure out how to run the program.
5. Output should be similar to test cases. Output should be clean and easy to read.
Enter budget: $100
Enter 0 to end input
Enter Expense: $10
Enter Expense: $10
Enter Expense: $10
Enter Expense: $10
Enter Expense: $60
Enter Expense: $0
You spent $100.0 which is equal to your monthly budget
----
Enter budget: $100
Enter 0 to end input
Enter Expense: $10
Enter Expense: $10
Enter Expense: $10
Enter Expense: $10
Enter Expense: $40
Enter Expense: $0
You spent $80.0. Your are under budget by $20.0
----
Enter budget: $100
Enter 0 to end input
Enter Expense: $10
Enter Expense: $10
Enter Expense: $10
Enter Expense: $10
Enter Expense: $10
Enter Expense: $60
Enter Expense: $0
You spent $110.0. Your over your budget by $10.0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
