Answered step by step
Verified Expert Solution
Link Copied!

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!

image text in transcribed

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 exceeded

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Heikki Topi, Jeffrey A Hoffer, Ramesh Venkataraman

13th Edition

0134773659, 978-0134773650

More Books

Students also viewed these Databases questions

Question

Did you add the logo at correct size and proportion?

Answered: 1 week ago

Question

4. I can tell when team members dont mean what they say.

Answered: 1 week ago