Question: 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
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
Get step-by-step solutions from verified subject matter experts
