Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Appreciating your cooperation, I want the following Deliverables: Flowchart for the Program, C++ files (source code), screenshot of the Output. The outputs screenshots needs to

Appreciating your cooperation, I want the following Deliverables: Flowchart for the Program, C++ files (source code), screenshot of the Output. The outputs screenshots needs to be the same as what i have attached here. Thanks

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

obe Acrobat Reader BC 2 5 57.9% Project Description Can you legally gamble? Are you 21 years old or older? Do you know Powerbal? Don't worry. You are not going to play Powerball but create a simulated game just like that :) Go find the rule and study it so that you know how to design and code your program accordingly. Go ahead, search the Internet! Do you see that your program basically just needs to randomly generate 6 numbers for the user to guess and calculate the prize depending on how many numbers are guessed correctly? Develop a C++ program using random number generator, i.e. rand(), function(s), and array(s) for it! Project Specifications Input for this project: Game mode choice - self_pick or auto pick Five numbers between 1 and 69 (if game mode is self pick) One number between 1 and 26 (if game mode is self pick) Output for this project: . Game title Game rule Game result including o Prize o Sorted user's numbers o Sorted winning numbers Programmer's full name Project number Project due date 1. Define all functions after main function and prototype them properly 2. Use published PowerBall Prize rule for single draw. [https://www.powerball.com/games/powerball] Set Grand Prize as $1,000,000,000.00 in the program 3. Create and use five functions for the following: a. Function randomly generates and returns a number within the range passed/specified by arguments: max and min b. Function sorts a passed array using selection sort. c. Function saves sorted wining numbers to a data file with a timestamp. Be sure to save d. Function gets and validates user's numbers, saves and sorted the numbers in an array. e. Function displays a passed array the numbers in a way separate groups of numbers can be differentiated. [Hint: this function should call/use above two functions.] The sorted array needs to be returned/passed out by this function. This function accepts one argument: game mode choice [NOTE: you can create and use more functions if you want.]

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

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

More Books

Students also viewed these Databases questions