Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that asks the user to enter the number of packages purchased. The program should then display the amount of the discount (if

image text in transcribed
Write a program that asks the user to enter the number of packages purchased. The program should then display the amount of the discount (if any) and the total amount of the purchase after the discount. Format output with 2 decimals and a comma. Step 1: Use print statements to print output the entire table chart Step 2: Ask for (input statement) the # of packages ordered and display discount (if any) and the total of the purchase. Step 3: Must use elif statements. (see ch 3 Power Point slide 43-44 for help) If the user types a negative # - must give an error message. Do not display any calculations. (see ch 3 PowerPoint slide 44 for help) Sample run: Quantity Discount 10-19 50-99 100 or more 10! 201 30+ 404 Please enter the number of packages ordered: 55 Your Bill is! 3,850.00 Your saved: 1,650.00 Turn in your program. Code all the exercises in one file-use a comment to show the start of each

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

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

8th Edition

013460153X, 978-0134601533

More Books

Students also viewed these Databases questions

Question

How can we use language to enhance skill in perceiving?

Answered: 1 week ago