Python
Programming
Lesson 7 - Selection
Task 1 - Laptop Diagnosis
You need to create a program will ask the user a series of questions to work out what is wrong with a laptop. The user will answer Yes or No and depending on their answer a different question will be asked or a diagnosis made.
For this task you will need to use an input to get the response from the user, for example:
The user will need to answer Yes or No to the question and depending on the response, it will either ask another question or display a message saying what to do.
An example is shown below:
An example of the finished program running can be seen to the right.
Task
Convert the flowchart below into an expert system that diagnoses what is wrong with the laptop.
How the flowchart symbols relate to code
This is a decision. You will need to use Input to get the user to answer the question and then see if the answer is Yes or No
This is an output symbol. This means you will need to use print to display the diagnosis.
Evidence point
Open the Assignment in Google Classroom called Student Evidence - L7 - Selection.
Take a screenshot of your code for:
Task 1 - Laptop Diagnosis
For each program click on Share and choose Link. Copy the link and paste it into the document, this means you can come back to it in future lessons.