Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Python help! I have written a program that will run and output correctly except for times when budget = 4000 and project 1 = 2000
Python help! I have written a program that will run and output correctly except for times when budget = 4000 and project 1 = 2000 so it exits the loop and thinks the budget is exceeded. I need some help getting it to run correctly. Thank you!
3.19 (LAB) Budget ( Python 3 ) ( Loops). We're going to ask the user for a budget. This is the max amount they can spend on remodeling their home. (1 pt) What is the budget? : 10000 You will continually loop asking the user for an amount of a project that is being done. Keep asking the user until the total is greater than or equal to the budget. (5 Pts) What is the budget? : 4000 Enter an amount of a project : 2000 Enter an amount of a project: 1000 Enter an amount of a project : 1500 You've exceeded your budget, with a total of 4500 dollars in 3 projects If the total exactly matches the budget, then the final line should say hit instead of exceededStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started