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."
Sponsor Sponsor
doey55
Posted: Fri Apr 30, 2004 4:48 am Post subject: (No subject)
Here man I hope this help!
code:
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)