Computer Science Canada

HELP

Author:  mac [ 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

Author:  Tony [ Thu Nov 28, 2002 6:37 pm ]
Post 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


: