The Problem: A program is needed to manage newspaper orders for a small news stand. Paper...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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. 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.
Expert Answer:
Answer rating: 100% (QA)
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 ... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
A student hourly employee does small secret arial projects. The number of projects she completes in a day is the response variable y . The number of hours she works in a day is the predictor variable...
-
The graph in FIGURE EX40.16 shows the potential-energy function U(x) of a particle. Solution of the Schrdinger equation finds that the n = 3 level has E 3 = 0.5 eV and that the n = 6 level has E 6 =...
-
You are required to write a Python program that will manage character (heroes and villain) information. Character (hero and villain) information will be stored in a text file that will be read in...
-
The acquisition committee of KE plc is considering making takeover bids for two competitors, Scot plc, a listed company, and Ring Ltd. Summarised financial data is given below for these companies....
-
What are the main implications of the EMH for investors? For corporate officers?
-
Determine all positive number replacements (less than the modulus) for the question mark that make the statement true. 2 - ? 3 (mod 7)
-
In 2004, Jui-Chen Lin, a citizen of China, entered into an agreement with Robert Chiu and Charles Cobb, citizens of the United States, to form an LLC to acquire and operate a fast-food restaurant in...
-
Barley Hopp, Inc., manufactures custom-ordered commemorative beer steins. Its standard cost information follows: Barley Hopp had the following actual results last year: Number of units produced and...
-
A 2.00 m rod is rotating with an oscillating angular momentum given by sin(2.00) . If a small rocket with oscillating linear momentum 10.0cos(2.00) is fired at =0.00 s , at what time will it need to...
-
On July 1, 2021, Video Solutions, Inc received a signed contract for $10.1 million (before the $100,000 credit for the old equipment) with all negotiated terms, as described in part 1. Taking the...
-
Read Wesley Chai's discussion of the CIA triad, a model used to guide policies for information security within organisations. The model constitutes three major issues related to data security,...
-
Except for the earnings per share statistics, the 2022, 2023, and 2024 income statements for Ace Group Inc. were originally presented as follows:Required:1. Calculate the 11 missing amounts. (Loss...
-
We want to get an idea of how many tickets we have and what our issues are. Print the ticket ID number, ticket description, ticket priority, ticket status, and if the information is available,...
-
Write a function program and main script that perform the following steps: 1. Write a function file that takes two array (X, Y) and one char variable (op) as inputs and it returns variable Z. Formula...
-
Amy, a portfolio manager uses the Capital Asset Pricing Model (CAPM) to make investment recommendations to her clients. Her financial analysis reveals the following information: Forecast Standard...
-
Malic acid (C4H605) is one of the alpha hydrox acids which is naturally found in apples.the reaction of hydrochloric acid with sodium maleate to form malic acid and sodium chloride is according to...
-
Two mutually exclusive investment alternatives are being considered. Alternative A requires an initial investment of $20,000 in a machine. Annual operating and maintenance costs are anticipated to be...
-
Suggest a diagnosis (e.g., bypassing, dead volume, multiple mixing zones, internal circulation) for each of the following real reactors in Figure P16-2B (a) (110 curves) that had the following RTD...
-
Estimate the reactor volumes of the two CSTRs and the PFR shown in the photo in Figure 2-9. Figure 2-9
-
Write a paragraph describing both the content goals and the intellectual goals of the course and text. Also describe whats on the Web site and how the Web site can be used with the text and course.
-
The scores earned on the mathematics portion of the SAT, a college entrance exam, are approximately normally distributed with mean 516 and standard deviation 116. What scores separate the middle 90%...
-
The data in Table 4 represent the finishing time (in seconds) for six randomly selected races of a greyhound named Barbies Bomber in the 5/16 -mile race at Greyhound Park in Dubuque, Iowa. Is there...
-
z 0.025 Find the value of z .
Study smarter with the SolutionInn App