Project Practise

Came up with a little project designed for beginners.

Design a lottery program to simulate playing the lottery.

The program must : -

1. Allow the user to create 1 to 10 tickets
2. Allow the user to enter 6 different numbers between 1-49 and check that for each ticket repeated numbers are not made
3. After entering the number of tickets and the 6 numbers the computer must randomally generate 6 different numbers and a bonus ball between 1-49.
4. The random numbers must be displayed in ascending order (Smallest to biggest)
5. The program must then check your tickerts against those random numbers to check if your tickets have won
6. The winnings must be displayed as follows
3 Numbers matched is £10
4 Numbers matched is £70
5 Numbers matched is £5000
5 Numbers matched + Bonus Ball is £250,000
6 Numbers matched is £2,000,000


The program must include arrays and functions.
Topic archived. No new replies allowed.