Return to Scratch
Name: Miles Wiesenthal
Period: 7
Assignment: Lab #7
This lab focused on blocks. Using our previous scratch knowledge, we learned how to compact and organize code using blocks. We also learned how to add parameters to blocks. One program I created was a box that would take in length and width, then calculate area and side length of a square and a triangle with that area. I also made a ruler that converts feet to miles and inches.
To make the length and width box, the first part was pretty easy. I had a block with parameters of length and width. But finding the equilateral triangle was complex. I had to find a formula with algebra. The conversion problem was a little easier. I just tested if it was greater than 5280, and depending on the output, I sent it to different blocks. I used rounding and remainders to find miles + feet, instead of messy decimals.