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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!