0% found this document useful (0 votes)
11 views6 pages

Building Calculator

The document provides step-by-step instructions for creating a basic calculator activity using the MakeCode Arcade editor. It covers project creation, variable setup, basic arithmetic operations, and displaying results using text blocks. The final output involves using splash blocks to show the results of the calculations on the screen.

Uploaded by

Deepa Gayathri
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views6 pages

Building Calculator

The document provides step-by-step instructions for creating a basic calculator activity using the MakeCode Arcade editor. It covers project creation, variable setup, basic arithmetic operations, and displaying results using text blocks. The final output involves using splash blocks to show the results of the calculations on the screen.

Uploaded by

Deepa Gayathri
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Activity – 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.

Step 2: Name the


project as
“calculator” and
click on ‘Create’
Button

Once the project


is created, the
editor screen is
visible.
Step 3: Click on
the “Variables”
in the list and
click on ‘Make a
Variable’ block.

Note: When you


create a new
variable in a
program, a place
in memory is
reserved for data
that your program
might want to
create, change,
copy, or check on
later.

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.

Place the variable


“X” and “Y” to
perform the basic
arithmetic
operations.
Step 6: Click on
“Variable”
block. Place the
variables “X” and
“Y” to perform
the basic
arithmetic
operations.

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

You might also like