subject

Write a program that asks the user to enter the amount s/he has budgeted for a month. the amount should be between 1000 and 2000 (do an input validation). a loop should then prompt the user to enter each of the expenses (show at least 3 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 or exactly on budget. # hints # declare variables to store the budget amount, amount spent, difference, and total. # initialize for while loop # get the budgeted amount from the user and do input validation # get the total amount spent from the user (while statement starts, make sure to enter exit criteria) # determine whether the user is over or under budget, and display the result (if elif else) # print what was the budgeted amount # print what was the amount spent

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 19:00, jacobbecker99
Choose the correct citation for the case which established the "minimum contacts" test for a court's jurisdiction in a case. select one: a. brown v. board of education of topeka, 347 u. s. 483 (1954). b. international shoe co. v. washington, 326 u. s. 310 (1945) c. haynes v. gore, 531 u. s. 98 (2000). d. international shoe co. v. washington, 14 u. s. code 336.
Answers: 1
image
Computers and Technology, 24.06.2019 00:30, rustjallison9928
Asecurity policy is a a. set of guidlines b. set of transmission protocols c. written document d. set of rules based on standards and guidelines
Answers: 2
image
Computers and Technology, 25.06.2019 05:30, ayandjay01
Your mother is sure that you were driving too fast because she knows a. when you arrived and the direction you came from. b. how long it took you to get home and how far you traveled. c. what time you left and how long it took you to get home. d. the direction you were driving and how far you traveled.
Answers: 2
image
Computers and Technology, 25.06.2019 07:30, ineedhelp2285
In a single day more than blank people's lives are affected simply by driving a motor vehicle
Answers: 1
You know the right answer?
Write a program that asks the user to enter the amount s/he has budgeted for a month. the amount sho...

Questions in other subjects:

Konu
English, 13.09.2020 07:01
Konu
Mathematics, 13.09.2020 07:01
Konu
Mathematics, 13.09.2020 07:01
Konu
Mathematics, 13.09.2020 07:01
Konu
Mathematics, 13.09.2020 07:01
Konu
Mathematics, 13.09.2020 07:01
Konu
Mathematics, 13.09.2020 07:01
Konu
Spanish, 13.09.2020 07:01
Konu
Mathematics, 13.09.2020 07:01
Konu
Mathematics, 13.09.2020 07:01