Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

DESIGN a program for the following problem. The program needs to contain at leas

ID: 3659625 • Letter: D

Question

DESIGN a program for the following problem. The program needs to contain at least three functions in addition to the main function. Treat EACH function designed as a 'mini' program; i.e. you need to complete (1) an IPO chart/table/list, (2) a flowchart or pseudo code, and (3) a desk-checking table for EACH of your functions.

Problem: Complete** a program that utilizes random number generators to play number guessing games with the user. The user has two game choices - Pick 1 and Pick 3 . The table below details the rules for each game. The program should allow the user to continue playing unless the user has won $100 or more already, or the user wishes to end the program (2 points). The program should produce a report indicating the total wining prizes as well as sub total prizes from each game (i.e. one for Pick 1 and one for Pick 3) . Use at least three different functions besides the main function to complete this assignment.

Game Rules

Pick 1: user enters one number within the allowed range
Allowed range: 0 through 25
Winning rule : $2 - number matched (only the highest match can be claimed)

Pick 3: user enters 2 regular numbers and one special number (numbers can be the same or different)
Allowed range:
regular number is 1 through 10, special number is 1 through 25 except 7 and 13
Winning rule:
$5 - only the special number matched
$10 - two regular numbers matched
$50 - one regular number AND the special number matched
$100 - all numbers matched

Explanation / Answer

http://www.mu.ac.in/myweb_test/syllFybscit/C++.pdf check it