Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The Problem: A program is needed to manage newspaper orders for a small news stand. Paper carriers order from the news stand, then pick

 image text in transcribed  

The Problem: A program is needed to manage newspaper orders for a small news stand. Paper carriers order from the news stand, then pick up the papers for delivery to customers. Usually, they order one day in advance of pickup. This news stand sells 4 different newspapers: Chicago Tribune - $4.00 each Wall Street Journal - $2.50 each New York Times $7.00 each Los Angeles Times - $3.66 each Customers ordering 10 or more copies of any combination of newspapers receive a 10% discount unless they order at least 20 copies, in which case the discount is 15%. Sales tax in this location is 7.25%. Your program will display a welcome message. Then it will get the following information from the customer: Name The number of Chicago Tribune copies desired . The number of Wall Street Journal copies desired The number of New York Times copies desired The number of Los Angeles Times copies desired The day of the week when the copies will be picked up Your program I will calculate the base cost of the order, determine whether a discount applies computing the discount amount and the adjusted cost if there is a discount, compute the tax on the (adjusted) amount, and compute the final total cost. The program will display an order summary as shown below. The title of the newspaper will be included in the summary only if at least one copy of that paper has been ordered. The discount lines will be displayed only if a discount applies to the order. See the sample run below for the correct format. Sample input and output (user input in bold): Welcome to the Normal News Stand! We're ready to take your order. Please enter your name: Jack Kelly Enter the number of copies of Chicago Tribune: 6 Enter the number of copies of the Wall Street Journal: 0 1 Enter the number of copies of the New York Times: 6 Enter the number of copies of the Los Angeles Times: 2 Enter the day of the week you will pick up your order: Monday Order Summary Chicago Tribune: 6 for $24.00 New York Times: 6 for $42.00 Los Angeles Times: 2 for $7.32 Subtotal: $73.32 Discount percentage: 10% Discount amount: $7.33 Discounted subtotal: $65.99 Tax: $4.78 $70.77 Total cost: This order will be available for pickup By: Jack Kelly On: Monday In the file Program 2 Test Data.docx, enter three sets of points and the correct output for each. Make sure your program works correctly for each of your test cases.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

To solve this problem we can write a Python program that takes input from the user performs necessary calculations and then displays the order summary ... 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

Elements Of Chemical Reaction Engineering

Authors: H. Fogler

6th Edition

013548622X, 978-0135486221

More Books

Students also viewed these Programming questions

Question

All future costs are relevant do you agree? Why?

Answered: 1 week ago