0
1.5kviews
Implement a Student Class that encapsulates the Student.
| written 9.1 years ago by | • modified 9.1 years ago |
Each year, sleepy Hollow Elementary School holds a “Principal for a day” lottery. A student can participate by entering his/her name and ID into a pool of candidates. The winner is selected randomly from all entries. Each student is allowed only one entry. Implement a Student Class that encapsulates the Student. Implement StudentLottery class with methods addStudents() and pickWinner() and main().
Hint: use random class to pick winner.
Mumbai University > Information Technology > Sem 3 > Object Oriented Programming Methodology
Marks: 10M
Year: Dec 2014
ADD COMMENT
EDIT
1 Answer

and 2 others joined a min ago.