Question: Write a program that asks the user to enter the amount that he or she has budgeted for a month. A loop should then prompt

 Write a program that asks the user to enter the amount

Write a program that asks the user to enter the amount that he or she has budgeted for a month. A loop should then prompt the user to enter each of his or her expenses for the month and keep a running total. When the loop finishes, the program should display the amount that the user is over or under budget. (Hint: Find a way to determine if the user has more expenses or not. There are several ways that this can be achieved.) Use the scanner for input and use $100.00 for budget amount and 24.12. 11.15. 7.99, 62.10 as expenses

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 Databases Questions!