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

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




PostPosted: Thu Nov 28, 2002 11:47 am   Post subject: HELP

WRITE A PROGRAM TO CLASSIFY ATHLETES INTO 3 CLASSES BY WEIGHT THE CATEEGORIES ARE 1.OVER 80 KG-HEAVYWEIGHTS 2. BETWEEN 60 TO 80KG -MEDIUM WEIGHT 3.LESS TAN 60KG- LIGHTWEIGHT

PREPARE THE PROGRAM SO THAT A TEAM OF 10 ATHLETES CAN ENTER THEIR WEIGHT ONE AFTER ANOTHER AND BE TOLD WHAT CATEGORY THEY ARE IN
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Thu Nov 28, 2002 6:37 pm   Post subject: (No subject)

well this is simple... I don't understand with what part of the code you might have problem with...

code:
var weight : int

for i:1..10
get weight
if weight > something then
one category
elsif weight > somethingelse then
second category
else
third category
end if

end for
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
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: