Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/revskill10/lottery_program
https://github.com/revskill10/lottery_program
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/revskill10/lottery_program
- Owner: revskill10
- Created: 2013-11-27T02:33:24.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-11-27T07:51:11.000Z (about 11 years ago)
- Last Synced: 2024-11-03T02:11:40.769Z (3 months ago)
- Size: 90.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
--Ruby program--
The ruby program should be able to
a) Record, one by one, or many at a time by importing from a file, which lottery
numbers were sold with their serial number and how many tickets of each combination were sole
b) Perform (or simulate) the drawing of the winning numbers (including secondary prizes).
Differten lottery number should have an equal chance to win.
c) Check if a certain person with on (or many) ticket(s) has won and how much money
he/she has won
d) Calculate how much money Loterias y Apuestas del Estado has made, comparing revenue
from the tickets sold with the cost of prizes won by participants in the lottery.
Calculate also the maximum revenue from the lottery--The ruby program should use data structures to represent results of drawings, sales of numbers
and size of payments. You should make it possible to record these structures permantly
in one or more files.
The ruby program should only apply to Chrismas lottery.