M4L4A2 Amelia Faison Graphing Data

Storyboard: The goal of this lab is to use a provided list of data points and to graph these points on a grid. When the sprite is dragged, it should state its x and y coordinates. The pen should also be used to plot the points and form a graph or a scatter plot that resembles this photo-

percentage of births named Derek by year

Logic: As a partnership, we utilized the data points and the list to attempt the creation of a scatter plot like the one above. We made several command blocks and reporter blocks in order to create a stage that included x and y axes. These include a block like “x coordinate of point and y coordinate of point”. We included several codes within codes in order to simplify our program and to add depth that would successfully execute or intended function of the program.

Steps:

  1. We created two command blocks: x Graph at Stage x with the Mouse x inside it and a y Graph at Stage y with the Mouse y inside of it.
  2. We put these two block within a round block and specified that it be rounded to 2 decimal places.
  3. We used a joined block that put both of the blocks mentioned above within one block.
  4. We established a set graph scale block that included an x minimum, a x maximum, a y minimum and a y maximum.
  5. We created a block that stated that the x Stage would go to 1927
  6. We created a block that stated that the y Stage would go to 0.5.
  7. We included a block within the datapoints block that said that each item of the datapoints list would go to a specific x and y coordinate.
  8. Then, we included pen up and pen down blocks in order to create the data points.
  9. Within this, we created more blocks that identified where the pen would be put down and what size it was supposed to be.

Problem Solving:

We did not have enough time to finish this lab and therefore we did not complete the graph with the data points pictured. We also came across many issues when it came to the edit option and placing blocks within blocks in order to execute various functions.

Link:

https://snap.berkeley.edu/snapsource/snap.html#present:Username=ameliafaison&ProjectName=U3L4-GraphingApp

Leave a comment