Page 42 - Touchcode_C8_Flipbook
P. 42
Coding uiz 02 Critical Thinking
Fill in the blanks.
a. .......................... are variables local to function and are part of definition.
b. .......................... are the values that are passed on to the function.
Coding Task 01
Calculating volume of cuboid
In this task, you will learn to calculate the volume of a cuboid in MakeCode Arcade.
To perform the task, follow these steps:
Step 1: Visit the link: https://arcade.makecode.com/, click on ‘New Project’ . On
the next screen give the name of your project as ‘Calculating Volume of Cuboid’,
and click on ‘Create’.
Step 2: The following screen appears:
Step 3: Click on the variables, and select ‘Make a variable’ block.
Step 4: Name the variable as ‘Volume’, and click on ‘OK’.
Step 5: Variable will appear like this:
40 Touchcode-VIII

