Snap! is a free, easy-to-use computer programming tool. It helps you create programs by putting together colorful blocks, kind of like building with LEGO. Each block tells the computer to do something, like move a character, make sounds, or solve math problems.
It’s designed for kids and beginners to learn coding in a fun way. You can use Snap! to make games, animations, or control robots like Finch. It works right in your web browser, so there’s no need to download anything.
Task 1:
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 a 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 operations from the Snap program.
- Able to make a simple Snap program.
Solution for Task1: https://snap.berkeley.edu/project?username=ilakyaarasi&projectname=question%20
Task2
Task to complete:
Draw a circle, square and triangle using the pen function.
Outcomes
- To be able to use the 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 snap.
- Able to use pen size, pen colour, change pen colour and pen shade.
Solution for Task2: https://snap.berkeley.edu/project?username=ilakyaarasi&projectname=shapes
Task 3
Snap can be used to make games. Interactive games like maze games.
Task given:
- The task was to use the pen function and draw lines when the object moves in the maze game to find out whether the object is moving smoothly or hardly.
Outcomes
- Able to create a maze path background image.
- Able to use sensing functions.
- Become familiar with motion functions.
Solution for Task3: https://snap.berkeley.edu/project?username=preethi0305&projectname=maze%20game
Task 4
Once the previous task was completed now add a score function to the maze game.
Task given:
- Create a 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.
Outcome
- Able to use functions that are present in the control block.
- Able to use logic using if statements.
- Able to set a variable using Data block.
Solution for Task4: https://snap.berkeley.edu/project?username=preethi0305&projectname=maze%20game%20with%20score
Task 5
To draw a circle by creating a simple function with variables. Draw a circle of given radius.
Task given:
- 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.
Solution for Task5: https://snap.berkeley.edu/project?username=ilakyaarasi&projectname=Circle%20with%20radius