# Learn Scratch

Scratch is a simple programming language where one need to stick the codes together to make it work.

Use ‘sensing’ and ‘=’ operators to ask 10 questions. When the wrong answer is typed, the same question should be asked again until the user gives the correct answer. Ask 20 questions. Create score and increase it for every right answer. Decrease score for every wrong answer or reset to 0. Create a repeat until loop for each of the if else conditions.

Outcomes

• Able to understand sensing operation in scratch.
• Able to make a simple scratch program.

Draw a circle, square and triangle using pen function. Reference http://www.auraauro.com/school/2184/

Outcomes

• To be able to use pen up and pen down function.
• Able to understand and use motion commands like move, turn (right, left) using degrees etc.
• Able to draw a square, triangle and a circle using scratch.
• Able to use pen size, pen colour, change pen colour and pen shade.

Solution for Square: https://scratch.mit.edu/projects/208850034/#editor

Solution for Triangle: https://scratch.mit.edu/projects/208849951/#editor

Solution for circle:  https://scratch.mit.edu/projects/208849870/#editor

Scratch can be used to make games. In the third session we asked the children to make a maze game. To get more information on the session visit Reference http://www.auraauro.com/school/savarayalu-8th-grade-class-20170220-2/

• The task was to use the pen function and draw line when the object moves in the maze game to find out whether the object is moving smoothly or hardly.
• Then the children worked in pairs with each other and also with their teacher on the pen function and were able to draw line when the object moved.

Outcomes

• Able to create a maze path background image.
• Able to use sensing functions.
• Become familiar with motion functions.

Once the previous task was completed the children added score function to the maze game.

1. Create score and increase it for every right answer.
2. Decrease score for every wrong answer or reset to 0.
3. Create a repeat until loop for each of the if else conditions.

Outcome

• Able to use functions that are present in control block.
• Able to use logic using if statements.
• Able to set a variable using Data block.

Solution for Task 3&4 : https://scratch.mit.edu/projects/208850288/#editor

In the 5th session Function and Variables are introduced. To draw a circle with by creating a simple function with variables. Draw a circle of given radius. Reference http://www.auraauro.com/school/2184/

• How to draw a circle and check how many circles can be drawn around a circle with the same diameter touching each other.
• How to draw a circle from smaller to bigger circle with the same between each other.

Outcome

• Able to create a function .
• Able to set a variable using Data block.
• Able to reduce the size of the code.