Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 8

Project : Calculator App

Scratch Example: 8(a)


About Project
Project Overview • In this scratch tutorial, we will learn how to make Calculator App in Scratch.
• Addition, Subtraction, Multiplication and Subtraction Operations would be
performed.

No of Sprites 1

No of Backdrops 1

No of Variables 3 (first number, second number, operator)

Programming Concepts Loop, Variable, Sensing, Operators, Condition

Video Link https://www.youtube.com/watch?v=RbFeENB8xVc


Project Screenshot
Complete Code Blocks
Blocks Actions

Clicking the green flag activates the script. The green flag is the trigger
to start the script running.

The sprite gets a speech bubble that displays What’s your name?,
opens a user input field, and waits for user input

Set the current value of the variable.

Holds the current user input value.

Table 8.1: “Sprite 1” Code Blocks


Blocks Actions

Check if the condition is true. If the condition is true, execute the


actions within it. If the condition is false, skip to the next block

If the value on the left side is equal to 50, then this condition is true;
otherwise, the condition is false.

It holds and reports the current value of the variable.

The sprite gets a speech bubble that displays Hello! for 2 seconds

Table 8.2: “Sprite 1” Code Blocks


Blocks Actions

Add two values (2 + 2) and report the result.

Subtract one value from another (6 – 2) and report the result

Multiply two values (2 * 2) and report the result.

Divide one value by another (6 / 2) and report the result.

Table 8.3: “Sprite 1” Code Blocks


THANK YOU

You might also like