Building Calculator
Building Calculator
Create the activity on Arcade using the MakeCode editor in the URL
https://arcade.makecode.com
Step 1: Create a
New Project by
clicking on ‘New
Project’. A dialog
box ‘Create your
project name’
appears.
A pop-up window
‘New Variable
name opens.
Enter ‘X’ and
click on OK
Likewise, create
another variable
named ‘Y’
Step 4: Drag and
drop “set Y to 0”.
Choose “X” from
the drop down
and enter a
random value, say
“15”. Likewise
enter the value for
Y in “set Y to 10”
as shown.
Step 5: Click on
‘Math’ block
type. Choose and
drag “addition,
subtraction,
multiplication,
division,
remainder of
block” to the
editor.
Step 7: Click on
“Advanced” and
“Text” from the
list. Drag ‘Join
‘Hello’ ‘World’
block to the
workspace.
Duplicate it for 4
more times.
Step 8: Replace
Hello with,
“Addition is”,
“Subtraction is”,
“Multiplication
is”, “Division is”,
“Remainder is”
and replace
World with
arithmetic
operation of
variables as
shown.
Step 9: Drag
“splash” from
“Games” block.
Duplicate into 4
more times. Place
“join” blocks into
splash block and
finally into “on
start” block as
shown.
Output