Lab #7

Name: Flavia Rodrigues

Period: 7

Assignment: Lab #8

My Solution, Problem #1A/1B

We started off my making several blocks for our robot. We mad blocks that executed different commands such as moving fowards, moving backwards, turning right, turning left, make a square and then making a backwards square. We also made one where it told the robot to complete a figure 8. We were able to make the blocks but making a miniature code inside the block. For example, the finch was ordered to mover foward woth a speed of 500 on both wheels, then wait 2 sec then we made the finch move a speed of 0 on both wheels. We had to put that last command in in order for the finch to stop. We did similiar things for the other blocks. When making squares, as the finch turned, the LED light on his nose changed, it was cute. We also created a code that noted the orientation of the finch. If his nose was facing down, the sprite would say Beak_Down. If his nose was facing up the sprite would say Beak_Up, and so on.

My Solution, Problem #2

For this problem we had to create sprites that would add, subtract, divide and multiply two numbers.Each operation got its own block and its own code. A sprite asks you for two numbers and then he takes the two numbers given to him and performs the operation you wish to be done.

My Project Link