Question: Write a program that asks the user to enter the amount budgeted for a month. NOTE: Use appropriate functions to display the prompt as specified
Write a program that asks the user to enter the amount budgeted
for a month.
NOTE: Use appropriate functions to display the prompt as
specified in the Sample Runs; use the correct type conversion
functions
The program should then prompt the user to enter each of
their expenses for the month and maintain a running total.
The loop must exit when the user enters NOTE: Your
program must use while loop
When the loop finishes, the program should display the
amount budgeted and the amount spent. Also, display a
specific message based on whether the user has spent over
the budget See: Sample Run exactly the budget
amount See: Sample Run or under budget See:
Sample Run In the case where spending does not
match the budget, show the amount over or under budget
see sample runs
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
