if answer = 'Ottawa'compare text for equality
Lesson / Scratch & Game Design
The Quiz of Questionable Knowledge has received the answer 'moon cheese.' Its code must decide whether that is correct, give useful feedback, and move on without awarding seventeen points.
Turn one quiz rule into a question with a true or false answer.
Compare text and numbers, then run the true and false cases.
Add questions, feedback, score, and question state.
Test capitals, wrong answers, and inputs that should not score twice.
Demonstrate the condition and explain why its branch ran.
if answer = 'Ottawa'compare text for equality
if score > 5compare a number with a threshold
if touching dangeruse a sensing result
elsehandle the other answer
Guided project
Answer useful questions while the host insists that at least one distractor involves moon cheese.
Several original questions, Answer input, Correct and incorrect branches, Score.
Conditions, Variables, Input, Messages, State.
A working version with a tested change, one repaired problem, and a clear explanation.