Graphing linear functions: Assignment 1

  • Open Open dr. scheme Cartesian plane file
  • Save as graph1_lastname.scm
  • Run your file to see what the Cartesian Plane looks like
  • ]
  • Type your name as a comment on the first line of your dr.scheme file
  • Copy the following “Clue 1 - Graphing Lines” comments from this page into dr. scheme file
  • Read and interpret the “CLUES”
  • Use draw-line commands to graph the line segments
  •  
  • Solve the linear equation, and type it as a comment on the last line of your dr.scheme file

Challenge yourself to race against the clock.  The first 5 students to complete the assignment and have correct answers will earn O$$orio$$ Buck$, save the file as soon as you finish and turn it in.  (Hint: I will check the DrScheme file to see the time and date your work was saved. Don’t save a second time after you have created your graph because it will change the time of your file! )

;; Use Coordinate Plane Teach Pack

from website http://teachertech.rice.edu/Participants/knorth/CS/cartplane.htm

;;-------------------> Clue 1 - Graphing lines <-------------

;;draw a line

;;The y-intercept is -30

;;The x-intercept is 40

;;The slope is ( 3/4 )

;;The line passes through the point (120,60)

;;The line passes through the point (-40,-60)

;;The line is parallel to the line y = (3/4)x + 70

;;

;;Use these clues to draw a line on the coordinate plane.

;;You will use 1-3 draw LINE commands to make a graph of this continuous line

;;You may plot more points along the line, and draw the line segments

;;In Dr. Scheme write the linear equation at the bottom of the file as a comment.