ScratchData LogoScratchData
Back to jkibbe's profile

T$C - Powerball Simulator template

JKjkibbe•Created January 6, 2016
T$C - Powerball Simulator template
0
0
99 views
View on Scratch

Instructions

Powerball is an interstate lottery game that gives players a small (very, very small) chance at winning millions of dollars at the cost of $2 per play. To play, players select 5 numbers from 1 to 69 (white balls) and one Powerball from 1 to 26 (red ball). The minimum requirements for this project are as follows: 1. a list (or five variables) of five random numbers with no repeats for the white balls and a variable storing one random number for the Powerball 2. either randomly choose the values for the player or allow them to enter the values manually by typing them in when prompted (must be in correct range and no duplicates) 3. compare player values with winning values to determine the number of matching values 4. inform the player how much money he or she won based on the number of matches (see link below for payout info) Ideas for extensions (any more T$!): - Give the player the option to enter numbers or allow the computer to pick for him or her - Use white and red balls instead of text for the number drawing - Animate the drawing of the numbers - Allow the user to enter the number of trials he or she wants to run and have the program track money spent and money won

Description

This is not an endorsement of gambling of any kind. Mr. Kibbe does not play the lottery. More info on the game, payouts, and odds can be found here: https://en.wikipedia.org/wiki/Powerball The odds of winning the jackpot (matching all six numbers) are 1 in 292,201,338 "May the odds be ever in your favor"

Project Details

Project ID93174779
CreatedJanuary 6, 2016
Last ModifiedJanuary 3, 2018
SharedJanuary 7, 2016
Visibilityvisible
CommentsAllowed