Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

To write a new Python program in IDLE, open a new python file window. Click File on the menu bar, then click New Launcher, and

image text in transcribed
To write a new Python program in IDLE, open a new python file window. Click File on the menu bar, then click New Launcher, and finally click Python File inside the Others section. (Alternately you can click File on the menu bar, then click New and select Python File) Problem Specification: - Include the following information as comments at the top of your program (file name, your name, Today's date, short description of the program) - Write a program that asks the user to enter the amount budgeted for a month. (NOTE: Use appropriate functions to display the prompt as specified in the Sample Run; use the correct type conversion functions) - The program should also prompt the user to enter each of their expenses for the month and maintain a running total. Loop must exit when user enters 0. (NOTE: Your program should use while leop) - When the loop finishes, the program should display the amount Budgeted and amount spent. Also display a message based on whether the user has spent over budget (See: Sample Run 1), exactly the budget amount (See: Sample Run 2), or under budget (See: Sample Run 3). (NOTE: Your program should print messages as shown in the Sample Runs.). Sample Run 1: Enter amount budgeted for the month: 100 Enter an amount spent(0 to quit): 25 Enter an amount spent( 0 to quit ):30 Enter an amount spent(0 to quit): 25 Enter an amount spent(o to quit): 15 Enter an amount spent(o to quit): 10 Enter an amount spent(o to quit): 0 Budgeted: $100,00. Spentz $105,00. You are $5.00 over budget. Plan Better Next Time! Sample Run 2: Enter amount budgeted for the month: 75.90

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

Step: 3

blur-text-image

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

Beginning Databases With PostgreSQL From Novice To Professional

Authors: Richard Stones, Neil Matthew

2nd Edition

1590594789, 978-1590594780

More Books

Students also viewed these Databases questions