Monday, February 26, 2007

Hands on Exam

requirements:

1. create a function that will generate 20 random numbers from 0 to 5 only. display the generated random numbers, tally them, and display the total count of 0's, 1's, 2's, 3's, 4's, and 5's.

2. the main function should call the function in item 1. display the result/s with the most count in the main function. use the randomize( ) function for non-repeating set of numbers per execution.

note: you may use array if you prefer

No comments: