Latest Awards
Complete 10 python programs which focus on loops.

morgan

Score over 100 points in total

vincebanter10

Complete any 5 python programs

vincebanter10

Complete 3 python list based tasks

vincebanter10

Complete 5 python list based tasks

vincebanter10

Complete 10 python list based tasks

dman12

Score over 1000 points in total

april-logan

Complete any pygame task

april-logan

Complete any 3 pygame tasks

april-logan

You have to complete 5 pygame tasks

april-logan

Score over 500 points in total

sam-edmund

Complete any pygame task

sam-edmund

Complete any 3 pygame tasks

sam-edmund

You have to complete 5 pygame tasks

sam-edmund

Complete any pygame task

12wrigleyf

Complete any 3 pygame tasks

12wrigleyf

You have to complete 5 pygame tasks

12wrigleyf

Score over 500 points in total

jhoughton12

Complete any 10 python prograns

jhoughton12

Complete 10 python programs which focus on loops.

jhoughton12

Python Score
tasks = 0
achivements = 0
freestyle = 0
Total = 0
Top 5 Scores
114gilo 3380
2alexdawkins 2495
3joss-nolan-2 2430
4byrnebrian 2060
512wattsl 1730
Click to view all scores
Who else completed this task?
5 people have completed this task! Below are some of those users!

joss-nolan-2 14gilo
james-richardz idle
craig-brooker

I can winz lottery

Ever wondered if you could beat the odds on the national lottery and become a millionaire? So is it just me???

You are going to build a simulation which will allow the user to play a number of lucky dip lines (6 random numbers). They can play any number from 1 to 1 million. The program will then roll 6 more random numbers which will be the lottery draw. You can assume the prize fund will be £12 million + £1 for every line you play.

You must also play 12 million lines to simulate other players. They will need their prizes calculated as well.

 

You will then calculate how much the user has won based on the following rules. Do not forget to pay out to the other 12 million players! –

3 numbers = £10

Then the remaining prize fund is taken and calculated as follows –

6 numbers – 52% of remaining fund

5 numbers – 16% of remaining fund

4 numbers – 22% of remaining fund.

 

This is not a easy task which is why it is worth so many points!

You need to log in or create an account to submit code!

 

Leave a Reply

You must be logged in to post a comment.