Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Homework problem.
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Pretz




PostPosted: Thu Apr 29, 2004 9:31 pm   Post subject: 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."
Sponsor
Sponsor
Sponsor
sponsor
doey55




PostPosted: 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)
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: