Students are introduced to Variables and Conditionals in a Scratch project which represents two fractions on a number line and asks the user to identify the larger of the two. Students remix code in order to ask a user their name, and then use it in a say block. They also use variables in a conditional statement to compare user input to the correct answer and report the result.
Students compare fractions represented on number lines.
Students use variables to store user input for later use in a say block. Students also combine variables and conditionals to compare the user’s answer to a problem and return feedback about whether it is correct.