Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
Please write a python
- Write a program that asks the user to enter the amount that he or she has budgeted for a month. A loop should then prompt the user 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.
Thanks so much for your help!
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 nowThis is a popular solution!
Step by stepSolved in 4 steps with 2 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- This program requires the student to create a programming loop. The program's loop with loop between 5 and 50 times. Each loop will represent one week of the user eating and buying food. Each week the user will input the amount he or she spent on food. If the person spends more than $250 then the program will output "You are going to get fat." If the person spends less than $50.55 then the program will output "You are going to starve." After the final loop the program will display the lowest amount spent on any one week along with the most spent on any one week.arrow_forwardIn c#arrow_forwardPart A: Create a program that prompts the user to input the retail price of an item. Next, prompt them to enter the current discount for the item as a percentage. Then, output the new price with discount applied. A sample program run follows: enter the retail price : 55.75 enter the discount ( as a percentage ) : 12 the discounted price is 49.06 Part B: Create a program that prompts the user to input 4 quiz scores, then outputs the average of the scores. Be sure to format your output to display 1 place after the decimal.arrow_forward
- Design a program that asks the user to enter the amount that he or she has budgeted for a month. A loop should then prompt the user to enter each of their expenses for the month, and keep a running total. When the loop finishes, the program should display the amount that the user is over budget. Please provide answer in Pseudocode as well as python language. Please write line numbers before each line of the algorithm, include blank numbered lines between modules and write comments. Here are some parameters to solve the problem. a. Your Main module should declare two local variables and call three other modules.b. Create a module to get the amount budgeted for the month from the software user. c. Create a module that uses a loop to ask the software user for the price of each item purchased that month. The loop should stop when the software user does not reply with a lower case y to continue entering prices. make sure this loop has two lines.The loop should also contain an accumulator…arrow_forward@7arrow_forwardP1HW2 Using IDLE Math Introduction: Assignment requires Using IDLE to create and test code learned and. Instructions: For this assignment you will create a program in IDLE, using IDLE is referenced in "Introduction to Python3" of your ZyBook, that does some basic math on two numbers that are entered. The instructions below explain the program requirement: In this assignment you will create a program that allows user to enter the name and cost of an expense. The program then is to calculate a 6% tax and notify user how much they will be spending on that expense each month and for the whole year. 1.Create a Python code file named P1HW2 BasicMath LastnameFirstname.py (replace "FirstLast" with your own name) 2. Add a title comment block to the top of the new Python file using the following form #A brief description of the project # Date # CTI-110 P1HW2 - Basic Math # Your Name # 3. Ask user to enter the name of the expense. 4. Ask user to enter how much they are charged for that…arrow_forward
- Design a program that uses nested loops to collect data and calculate the average rainfall over a period of years. The program should first ask for the number of years. The outer loop will iterate once for each year. The inner loop will iterate twelve times, once for each month. Each iteration of the inner loop will ask the user for the inches of rainfall for that month. After all iterations, the program should display the number of months, the total inches of rainfall, and the average rainfall per month for the entire period. Modularize the program. Present clear formatted code with comments. I need this coded in pseudocode, please.arrow_forwardPLEASE COMMENT CODE Write a Python program that does the following Asks the user to enter the order. If the order is greater than $1000, there is 17% discount, if the order is greater than $800 and less or equal to $1000, the discount is 13%, if the order is less or equal to $ 800 but greater than $ 500, the discount is 9%, otherwise the discount is 5%. The tax percent is 13%. The program calculates the total invoice of the customer after the appropriate discount and the tax amount are applied. The program prints out the customer name (entered by the user), the discounted amount, the tax amount and the total invoice. The program asks if the user wants to continue using the application with a new order (y/n). Sample run: Please, enter the name of the customer: John Smith Please, enter the total of your order: $1100 Customer name: John Smith The order amount: $1100 The discounted…arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education