From 8e57a173bb66255566a41ecb40b97f7073debe89 Mon Sep 17 00:00:00 2001 From: Thomas Naber Date: Mon, 31 Jul 2023 11:24:41 -0400 Subject: [PATCH] Checkpoint 1 I think I would be able to make the axes and the evenly spaced tick marks. I don't know how to use the x and y values from the list yet so I don't think I'd be able to make the labels or plot the points on the scatter plot. --- planning_scatter.md | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/planning_scatter.md b/planning_scatter.md index d566f3f..68cf9c0 100644 --- a/planning_scatter.md +++ b/planning_scatter.md @@ -4,9 +4,28 @@ - Draw the axes. - Draw the x-axis. - Draw the line. - - ... + - Find the range of the x-values + - Divide the range by 5 + - Start at the origin. Label it with the lowest x-value + - repeat until at the end of the axis: + - add 1/5 of the range to the x-value + - move to the right 1/5 of the length of the axis + - draw a tick mark and label with the next x-value + - Draw the y-axis. - Draw the line. - - ... + - Find the range of the y-values + - Divide the range by 5 + - Start at the origin. Label it with the lowest y-value + - repeat until at the end of the axis: + - add 1/5 of the range to the y-value + - move up 1/5 of the length of the axis + - draw a tick mark and label with the next y-value - Plot the points. - - ... + - Repeat for each point: + - Start with turtle at the "origin" + - move to the right the amount of the difference between the x-value and the lowest x- value + - move up the amount of the difference between the y-value and the lowest y-value + - plot the point + - return to the "origin" +