A shop sells a range of mobile devices, SIM cards and accessories as shown in the table (see attached) Write a program algorithm for this shop: Task 1 – Setting up the system: Write a program to: Use appropriate data structures to store the item code, description and price information for the mobile devices, SIM cards and accessories; Allow the customer to choose a specific phone or tablet; Allow phone customers to choose whether the phone will be SIM; Free or Pay As You Go; Allow the customer to choose a standard or luxury case; Allow the customer to choose the chargers required (none, one or both may be purchased); Calculate the total price of this transaction; Output a list of the items purchased and the total price. Task 2 – Allow a customer to order multiple mobile devices: Offer the customer the opportunity to purchase an additional mobile device; if required, perform bulleted steps 2 to 7 of Task 1 for each additional mobile device and calculate a running total for the customer; once no further devices are required, output the total the customer will need to pay.

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...
icon
Related questions
Question

A shop sells a range of mobile devices, SIM cards and accessories as shown in the table (see attached)

Write a program algorithm for this shop:

Task 1 – Setting up the system:

Write a program to: Use appropriate data structures to store the item code, description and price information for the mobile devices, SIM cards and accessories; Allow the customer to choose a specific phone or tablet; Allow phone customers to choose whether the phone will be SIM; Free or Pay As You Go; Allow the customer to choose a standard or luxury case; Allow the customer to choose the chargers required (none, one or both may be purchased); Calculate the total price of this transaction; Output a list of the items purchased and the total price.

Task 2 – Allow a customer to order multiple mobile devices:

Offer the customer the opportunity to purchase an additional mobile device; if required, perform bulleted steps 2 to 7 of Task 1 for each additional mobile device and calculate a running total for the customer; once no further devices are required, output the total the customer will need to pay.

Category Item code
Phone
BPCM
Phone
BPSH
Phone
RPSS
Phone
RPLL
Phone
YPLS
Phone
YPLL
Tablet
RTMS
Tablet
RTML
Tablet
YTLM
Tablet
YTLL
SIM card
SMNO
SIM card
SMPG
Case
CSST
Case
CSLX
Charger
CGCR
Charger
CGHM
Description
Compact
Clam shell
Robo phone-5inch 64GB memory
Robo phone - 6inch 256GB memory
Y-phone standard 6 inch 64GB memory
Y-phone deluxe 6 inch 256GB memory
RoboTab - 8 inch screen 64GB memory
RoboTab 10 inch screen 128GB memory
Y-tab standard - 10 inch screen 128GB memory
Y-tab deluxe - 10 inch screen 256GB memory
Sim free (no SIM card)
Pay as you go (with SIM card)
Standard
Luxury
Car
Home
Price ($)
29.99
49.99
199.99
499.99
549.99
649.99
149.99
299.99
499.99
599.99
0.00
9.99
0.00
50.00
19.99
15.99
Transcribed Image Text:Category Item code Phone BPCM Phone BPSH Phone RPSS Phone RPLL Phone YPLS Phone YPLL Tablet RTMS Tablet RTML Tablet YTLM Tablet YTLL SIM card SMNO SIM card SMPG Case CSST Case CSLX Charger CGCR Charger CGHM Description Compact Clam shell Robo phone-5inch 64GB memory Robo phone - 6inch 256GB memory Y-phone standard 6 inch 64GB memory Y-phone deluxe 6 inch 256GB memory RoboTab - 8 inch screen 64GB memory RoboTab 10 inch screen 128GB memory Y-tab standard - 10 inch screen 128GB memory Y-tab deluxe - 10 inch screen 256GB memory Sim free (no SIM card) Pay as you go (with SIM card) Standard Luxury Car Home Price ($) 29.99 49.99 199.99 499.99 549.99 649.99 149.99 299.99 499.99 599.99 0.00 9.99 0.00 50.00 19.99 15.99
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
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 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)
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
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY