By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,605 Members | 1,391 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,605 IT Pros & Developers. It's quick & easy.

Help writing/reading character-base files, Bowler's score

P: 1
I dont know anything about bowling.I have to write four functions findpattern, countrange, validset and classify.
findpattern will receive three scores
countranges will receive the three scores exatly 300, 200-299 range, 100-199 range, 0-99 range.
validset receive the three scores less thean zero or over 300 is invalid, the function will return 1 if three numbers are in the range from 0 to 300 and zero if else.
classify will receive three numunbers. This function will call the first two functions to classify the three numbers example;
the 3 values are: -60 30 360
-60 is invalid
360 is invalid
the group is invalid
Nov 13 '06 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.