Your program will calculate the cost of orders on Amazon.com witha quantity and price, and add shipping cost for a final bill. (Note that each order processed has only 1 item with a given quantity.) 1. Read in an item number, a quantity, a price and an indication of Prime or Not Prime for an order on Amazon.com. Each order will be in the format 1234 10 12.50 P with Amazon Prime. N would indicate Not Prime. (If you prefer, you may use 1 for Prime, 0 for Not Prime, so the type is integer.) Include prompts. Print original data after it's read in with words explaining what you're printing. which means the item is 1234, quantity 15, price is 12.50 (You will need to keep track of how many items are ordered, and how many are prime)
Your program will calculate the cost of orders on Amazon.com witha quantity and price, and add shipping cost for a final bill. (Note that each order processed has only 1 item with a given quantity.) 1. Read in an item number, a quantity, a price and an indication of Prime or Not Prime for an order on Amazon.com. Each order will be in the format 1234 10 12.50 P with Amazon Prime. N would indicate Not Prime. (If you prefer, you may use 1 for Prime, 0 for Not Prime, so the type is integer.) Include prompts. Print original data after it's read in with words explaining what you're printing. which means the item is 1234, quantity 15, price is 12.50 (You will need to keep track of how many items are ordered, and how many are prime)
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
Java

Transcribed Image Text:Your program will calculate the cost of orders on Amazon.com with a quantity and price,
and add shipping cost for a final bill. (Note that each order processed has only 1 item with
a given quantity.)
1. Read in an item number, a quantity, a price and an indication of Prime or Not Prime for
an order on Amazon.com. Each order will be in the format
1234 10 12.50 P
with Amazon Prime. N would indicate Not Prime. (If you prefer, you may use 1 for Prime,
O for Not Prime, so the type is integer.)
Include prompts. Print original data after it's read in with words explaining what you're
printing.
which means the item is 1234, quantity 15, price is 12.50
(You will need to keep track of how many items are ordered, and how many are prime)
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 1 images

Recommended textbooks for you

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education

Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY