Page 51 - Touchcode_C8_Flipbook
P. 51
Step 8: Move ‘Touchcode-7’ to the ‘on start’ block.
Step 9: Click on the ‘start the simulator’ button ‘call Touchcode-7’, will call the function, and the
output will be:
Well done, you have learnt to call a function to print statement!
Higher Order Thinking Skills (HOTS)
Define a function to calculate the simple interest. The function should take the amount, the
rate of interest, and the time duration as arguments. The function should return the calculated
simple interest.
Teacher’s Corner
1. Discuss the importance of functions with the students by using real-life examples.
2. Make students understand the primary difference between functions that return a value and functions that
do not return any value.
Functions in Depth 49

