[solved]-Cmsc 140 Intro Programming Project 5 Power Ball Project Worth 100 Points Powerball Lottery Q39029398


winning prize is $ 1billion
CMSC 140/INTRO, TO PROGRAMMING Project 5 / Power Ball This project is worth 100 points. Powerball is a lottery game and it’s available in many s{U.S.) States. Visit https://www.powerball.com/games/powerball to learn more about the game, its rules and prizes Here are some high level rules – • Select five numbers between 1 and 69 for the white balls; then select one number from 1 to 26 for the red Powerball • Depending on your matching, you could win a prize! Each ticket (5 white balls + 1 red ball) can be (1) user selected; or (2) randomly generated by the computer system) Review provided sample runs, however, use them as guidance only (your requirements are different) Requirements / Approach Design, implement and test a CH+ program which will simulate the lottery game. For this project, consider the (pay out of the Grand Prize as US $999.000.000, Your program will need to . (randomly) generate 6 numbers, or allow user to select 6 numbers for each purchased ticket determine the prize depending on how many numbers are guessed correctly Each user can purchase multiple tickets but no more than 100 tickets at any single time) this is to discuourage gambling additions Don’t forget, each drawing needs to be unique. The probability that two drawings having the exact same winning numbers is extremely low (approximately 0%) Functions and their respective prototypes must be specified and utilized. For example – A function to randomly generate and return a lottery number according to the rule A function to sort an array using the selection sort algorithm O A function to save sorted winning numbers to a data file o Implement additional functions as needed DO NOT include all of your logics in maino! A project will earn at most 20% of the project grade if this is the case CMSC 140/INTRO TO PROGRAMMING Input • Ticket choice self pick or • to pick For self pick tickets Five numbers between 1 and 69 (white halls) One number between 1 and 26 (red hall) • Fornuto generated tickets Both white and red balls are generated by the computer • Input validations Output • Game title • Game rule • Game result including o Prize Sorted user’s numbers Sorted winning numbers • See sample runs however yours will be different Extra Credit Opportunity (Up to 10% of Project Grade) • Implement the Power Play feature • Enhance the game to your liking • Additional paragraph(s) MUST BE included in your write-up to clearly articulate your extra credit effort. Your instructor will have the final saying – as far as the level of effort of the extra credit opportunity Algorithm, Pseudocode & Flowcharts Each student must complete and submit) their flowchart and algorithm for this project Concepts Utilized in Project • Previously covered course topics • Functions File 1/0 • Arrays • Sorting algorithm Show transcribed image text CMSC 140/INTRO, TO PROGRAMMING Project 5 / Power Ball This project is worth 100 points. Powerball is a lottery game and it’s available in many s{U.S.) States. Visit https://www.powerball.com/games/powerball to learn more about the game, its rules and prizes Here are some high level rules – • Select five numbers between 1 and 69 for the white balls; then select one number from 1 to 26 for the red Powerball • Depending on your matching, you could win a prize! Each ticket (5 white balls + 1 red ball) can be (1) user selected; or (2) randomly generated by the computer system) Review provided sample runs, however, use them as guidance only (your requirements are different) Requirements / Approach Design, implement and test a CH+ program which will simulate the lottery game. For this project, consider the (pay out of the Grand Prize as US $999.000.000, Your program will need to . (randomly) generate 6 numbers, or allow user to select 6 numbers for each purchased ticket determine the prize depending on how many numbers are guessed correctly Each user can purchase multiple tickets but no more than 100 tickets at any single time) this is to discuourage gambling additions Don’t forget, each drawing needs to be unique. The probability that two drawings having the exact same winning numbers is extremely low (approximately 0%) Functions and their respective prototypes must be specified and utilized. For example – A function to randomly generate and return a lottery number according to the rule A function to sort an array using the selection sort algorithm O A function to save sorted winning numbers to a data file o Implement additional functions as needed DO NOT include all of your logics in maino! A project will earn at most 20% of the project grade if this is the case
CMSC 140/INTRO TO PROGRAMMING Input • Ticket choice self pick or • to pick For self pick tickets Five numbers between 1 and 69 (white halls) One number between 1 and 26 (red hall) • Fornuto generated tickets Both white and red balls are generated by the computer • Input validations Output • Game title • Game rule • Game result including o Prize Sorted user’s numbers Sorted winning numbers • See sample runs however yours will be different Extra Credit Opportunity (Up to 10% of Project Grade) • Implement the Power Play feature • Enhance the game to your liking • Additional paragraph(s) MUST BE included in your write-up to clearly articulate your extra credit effort. Your instructor will have the final saying – as far as the level of effort of the extra credit opportunity Algorithm, Pseudocode & Flowcharts Each student must complete and submit) their flowchart and algorithm for this project Concepts Utilized in Project • Previously covered course topics • Functions File 1/0 • Arrays • Sorting algorithm
Expert Answer
Answer to CMSC 140/INTRO, TO PROGRAMMING Project 5 / Power Ball This project is worth 100 points. Powerball is a lottery game and … . . .
OR

