
-----------------------------------
Pretz
Thu Apr 29, 2004 9:31 pm

Homework problem.
-----------------------------------
hi im new to this place and I have a question with this turing assignment that im currently working on....here's the question...
"Have the user enter a set of coordinates (x1,y1) and another set of coordinates (x2,y2). Draw a line from the first coordinate to the second coordinate. Allow the user to enter multiple points."

-----------------------------------
doey55
Fri Apr 30, 2004 4:48 am


-----------------------------------
Here man I hope this help!

var x,y,x2,y2,c: int

put " What would you like your x coordinate to equal?"
get x
put " What would you like your y coordinate to equal?"
get y
put " What would you like your x2 coordinate to equal?"
get x2
put " What would you like your y2 coordinate to equal?"
get y2
put " What colour would you like your line to be?"
get c
drawline(x,y,x2,y2,c)
