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.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps