Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Internals A Deep Dive Into How Distributed Data Systems Work

Authors: Alex Petrov

1st Edition

1492040347, 978-1492040347

More Books

Students also viewed these Databases questions