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.
A shop sells a range of mobile devices, SIM cards and accessories as shown in the table (see attached)
Write a
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](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F56206b62-8dca-4914-b3b3-44350634de09%2F72d3ce2e-4e7e-44ee-a571-e001f3229faa%2Fqdmkx6p_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)