Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I ONLY NEED THE FLOWCHART AND THE PSEUDO CODE Fall 18 CMSC 140 Programming Project 5-Number Guessing Game . Chapter 7 Chapter 8 .Working with

I ONLY NEED THE FLOWCHART AND THE PSEUDO CODE

image text in transcribed

image text in transcribed

image text in transcribed

Fall 18 CMSC 140 Programming Project 5-Number Guessing Game . Chapter 7 Chapter 8 .Working with arrays Using file operations Using a selection sort to sort an array .Using a function to display arrays Using a function to save arrays to file Implementing functions besides function main) Can you legally gamble? Are you 21 years old or older? Do you know Powerball? 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 randO, 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 equirement 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 progranm 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 d. Function gets and validates user's numbers, saves and sorted the e. Function displays a passed array sure to save the numbers in a way separate groups of numbers can be differentiated. [Hint: this function should call/use above two functions.] numbers in an array. 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

Conceptual Database Design An Entity Relationship Approach

Authors: Carol Batini, Stefano Ceri, Shamkant B. Navathe

1st Edition

0805302441, 978-0805302448

More Books

Students also viewed these Databases questions

Question

How do Dimensional Database Models differ from Relational Models?

Answered: 1 week ago

Question

What type of processing do Relational Databases support?

Answered: 1 week ago

Question

Describe several aggregation operators.

Answered: 1 week ago