zip, 1.74 KB
zip, 1.74 KB

In this Python solution Tasks 1 & 2 have been combined in order to make the code considerably shorter.
It works like this:
Customer is asked if they want a phone or tablet
Then they are asked how many
The code takes them through choosing all the accessories and then applies a discount of 10% to all phones ordered except the first phone.
A similar method is applied for calculating cost and discounts for tablets.

Please note this solution does NOT contain validations so please enter correct choices as given to you by the prompts.

Validation routines can be inserted into the code but they are hardly ever asked for in the exam.

You need to EXTRACT the Python file from the zipped folder by right clicking on the folder then choosing Extract.

You also need to run this code on the Python 3 IDLE platform.

Save the file then in Shell type ‘mobile()’ to run the code.

Reviews

Something went wrong, please try again later.

This resource hasn't been reviewed yet

To ensure quality for our reviews, only customers who have purchased this resource can review it

Report this resourceto let us know if it violates our terms and conditions.
Our customer service team will review your report and will be in touch.