Problem 1. Budgeted vs. Actual Expenses Write program that asks the user to enter the amount that he or she has budgeted for a month. Using a while loop, the user should be prompted 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. Design. Use an IPO diagram to design your program. See IPO diagram attached to this assignment. Code. Write your program in Python using the above steps. Output. Your program should produce correctly labeled output with dollar amounts rounded to 2 decimal places and dollar signs. Sample dialog: Enter amount budgeted for the month: 500 Enter an amount spent (0 to quit): 50 Enter an amount spent (0 to quit): 75 Enter an amount spent (0 to quit): 800 Enter an amount spent (0 to quit): 23.95 Enter an amount spent(0 to quit): 0 Budgeted: $ 500.00 Spent: $ 948.95 You are $ 448.95 over budget. PLAN BETTER NEXT TIME! Programming Style Requirements. Comments - Begin your program with a comment that includes: a) your name, b)program status – either "Complete" or describe any incomplete or non-functioning part of your program c)A 1-3 line description of what the program does. Variable names- use meaningful variable names such astotal taxes or num cookies. Named constants - Use named constants for all number values that will not be changed in the program such as RECIPE_SUGAR = 1.5. See section 2.9 on Named Constants

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Write a program in python for problem 1.
Problem 1. Budgeted vs. Actual Expenses
Write program that asks the user to enter the amount that he or she has budgeted for a month.
Using a while loop, the user should be prompted 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.
Design. Use an IPO diagram to design your program. See IPO diagram attached to this assignment.
Code. Write your program in Python using the above steps.
Output. Your program should produce correctly labeled output with dollar amounts rounded to 2
decimal places and dollar signs. Sample dialog:
Enter amount budgeted for the month: 500
Enter an amount spent (0 to quit): 50
Enter an amount spent (0 to quit): 75
Enter an amount spent (0 to quit): 800
Enter an
amount spent (0 to quit): 23.95
Enter an amount spent (0 to quit): 0
Budgeted: $ 500.00
I
Spent: $ 948.95
You are $ 448.95 over budget. PLAN BETTER NEXT TIME!
Programming Style Requirements.
Comments - Begin your program with a comment that includes: a) your name, b)program status –
either "Complete" or describe any incomplete or non-functioning part of your program c)A 1-3 line
description of what the program does.
Variable names- use meaningful variable names such astotal taxes or num cookies.
Named constants - Use named constants for all number values that will not be changed in the
program such as RECIPE SUGAR = 1.5. See section 2.9 on Named Constants
Transcribed Image Text:Problem 1. Budgeted vs. Actual Expenses Write program that asks the user to enter the amount that he or she has budgeted for a month. Using a while loop, the user should be prompted 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. Design. Use an IPO diagram to design your program. See IPO diagram attached to this assignment. Code. Write your program in Python using the above steps. Output. Your program should produce correctly labeled output with dollar amounts rounded to 2 decimal places and dollar signs. Sample dialog: Enter amount budgeted for the month: 500 Enter an amount spent (0 to quit): 50 Enter an amount spent (0 to quit): 75 Enter an amount spent (0 to quit): 800 Enter an amount spent (0 to quit): 23.95 Enter an amount spent (0 to quit): 0 Budgeted: $ 500.00 I Spent: $ 948.95 You are $ 448.95 over budget. PLAN BETTER NEXT TIME! Programming Style Requirements. Comments - Begin your program with a comment that includes: a) your name, b)program status – either "Complete" or describe any incomplete or non-functioning part of your program c)A 1-3 line description of what the program does. Variable names- use meaningful variable names such astotal taxes or num cookies. Named constants - Use named constants for all number values that will not be changed in the program such as RECIPE SUGAR = 1.5. See section 2.9 on Named Constants
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

Can you please do the IPO Diagram?

Solution
Bartleby Expert
SEE SOLUTION
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY