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 0.(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 1), exactly the budget
amount (See: Sample Run 2), or under budget (See:
Sample Run 3). In the case where spending does not
match the budget, show the amount over or under budget
(see sample runs).
Write a program that asks the user to enter the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!