Scratch Lab #9

Name: Yohannes Dagne

Period: 7

Assignment: Lab #9

Lab Overview

You will write a simple calculator that can determine if a number is even or odd. Use the more blocks function within scratch to create a block that calculates the distance between two points. Note, you should access values from a list. One option is to have a list of x-values and another list that stores the y-values. Using your code block from the above question, create a program that allows a user to determine if a polygon is a regular polygon (all sides equal length) by entering the coordinates of the polygon.

My Solution

I completed the required tasks that each problem asked me to do.

Prob. 1

Problem 1

Prob. 2

Problem 1

Questions

  1. What is the length of an “empty” list?
    • The length of an empty list is 0. There is nothing on it making it's value/ length meaninglessa nd without value.
  2. Why are lists more powerful than variables?
    • Lists are more powerful than variables because it can help do more actions in a more effective way.
  3. Can a list contain different data types? For example, could it store both numbers and words?
    • You can virtually list any type of data if it is either numbers or words