Download presentation
Presentation is loading. Please wait.
1
Put it all together Lesson 6
2
Starter What will this program do?
It uses 18 lines of code and many of them are very similar and repetitive. Open the program called L6_Starter.sb2. Write a new program which will do the same thing but using a loop and variables and no more than 10 lines of code.
3
Objective of the lesson
Create a working solution to a complex programming problem All of you will: Create a detailed program and make an attempt at solving some of your programming errors yourself. Most of you will: Create a detailed working solution to a programming problem and solve many of the programming errors yourself. Some of you will: Complete a complex working program that includes the extension activities and solve most or all of your programming errors yourelf.
4
Possible answer to starter challenge
5
Make a quiz Make a quiz which will do the following:
Ask some random maths questions. It is up to you how easy or hard these are and how many questions you want to ask. If the user gets an answer right, all the servo lights should turn green, Edbot should bow and you should add the word “Correct” to a list. If they get the answer wrong all the servo lights should turn red, Edbot should crouch down and the word “Wrong” should be added to the list. Extension Activities: Instead of simply saving “Correct” or “Wrong” in the list, it should save the question, their answer and if they got it correct or wrong. If they get the answer wrong Edbot should tell them the correct answer. At the end of the quiz tell the user how many they got right.
6
Self-assessment Read the highlighted points and tick those that you feel you have achieved.
7
Self-assessment Read all the points for the entire unit and tick ALL those that you feel you have achieved.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.