Question
on c# no java http://www.powerball.com/powerball/pb_prizes.asp Finish off the Powerball application. Pseudocode: Start Enter Winning Number Enter Number of Numbers Purchased For each purchase: Enter the
on c# no java
http://www.powerball.com/powerball/pb_prizes.asp
Finish off the Powerball application.
Pseudocode:
Start Enter Winning Number Enter Number of Numbers Purchased For each purchase: Enter the number into array For each number in array: For each value of number: Compare to winning # If match (6th) || ((1-5)+6th) = $4** if (PowerBallMatch(arr1,arr2) || (NumberMatch(arr1,ar2) == 1 && PowerBallMatch(arr1,arr2)) ((2x(1-5))+6th) || (3x(1-5)) = $7 ** if ( (NumberMatch(arr1,arr2)==3) || PowerBallMatch(arr1,arr2) && NumberMatch(arr1,arr2) == 2)) ((3x(1-5))+6th) || (4x(1-5)) = $100 ((4x(1-5))+6th) = $50,000 (5x(1-5)) = $1,000,000 All match = Grand Prize Increase prize Display results
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started