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 gquit): 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): O 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
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 gquit): 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): O 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...
Related questions
Question
Use an IPO diagram to design a python program from problem 1. Design
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images
Recommended textbooks for you
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 Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
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 Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
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
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY