Page 124 - Mathematics GRADE 9, DE-STREAMED (MTH1W)
P. 124

• Explain why understanding equations and inequalities is important when working with conditional statements in coding.
• How are equal signs used in coding?
Sample Tasks
1. Provide students with pseudocode, and ask them questions about the variables, parameters, equations, and inequalities included. For example, have them read the pseudocode below, which plots two linear relations so that students can compare them graphically, and then pose the following questions:
• What are this code’s: o variables?
o parameters?
o equations?
• What does totalPoints = 10 represent?
• What does yValue = rateOfChange * xValue + initialValue represent?
Main program
initialValue = 3
rateOfChange = 2
totalPoints = 10
run plotRelation subprogram (initialValue, rateOfChange, totalPoints)
initialValue = 0 rateOfChange = 3 totalPoints = 10
run plotRelation subprogram (initialValue, rateOfChange, totalPoints)
           123


















































































   122   123   124   125   126