Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I have got the C++ source code and output of the following project, but i haven't get the flow chart yet. Please experts kindly help

I have got the C++ source code and output of the following project, but i haven't get the flow chart yet. Please experts kindly help me with that. 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.] 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_2

Step: 3

blur-text-image_3

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

The Accidental Data Scientist

Authors: Amy Affelt

1st Edition

1573877077, 9781573877077

More Books

Students also viewed these Databases questions