Finish off the powerball application - enter the number


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

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Finish off the powerball application - enter the number
Reference No:- TGS02383207

Now Priced at $15 (50% Discount)

Recommended (95%)

Rated (4.7/5)