Question: C++ only. Please help! Question 1 (40 points) Description You are going to make a spin the wheel themed prize game! Were gong to build
C++ only. Please help!


Question 1 (40 points) Description You are going to make a spin the wheel themed prize game! Were gong to build the gane over the next few problems. Please follow the instructions of each question. Instructions - In a header file,create a class called "PrizeWheel and corresponding cpp file. The class should contain the ollowing data o A vertor of ints that will a An int result which will epresent what the weel landed on during the spin. 1 represent the prize noney. Create the following functions SetupPrizes Should setup prizes in the vector. Setup the vecto with the following data .10,000, 1,000, 500, 300, 100, 50 Lose, Lose, Lose, Lose (arange in rarndom ordet) .There are 4 loss cases in which 0 money is won These are similar to the bankrupt cases in Wheel of Fortune. .Default Constructor - Should setup prize data with SetupPrizes function Spin Publie fuiction Will spin the wheel so to speak. This is iesposible for geeating a radon integer and stoting it into tesu Call GetPiize (retus int ofpize oney won) froaa this function and retur an int tat will relurn tie prize money The design here is that spin l call GetPiz to get the money won and then rehurn the money vaue from Spin - GetPrize - Private fiuction Wl be called from Spin Will look at "result and access the vector to detha prize was won. This function will retun the matching element value from the vector returning the prize money won back to Spin. Question 2 (25 points) Instructions: Using yorur Prize Wheel class, implement the class into a main cpp file Use programming concepts necessary to construct a small experience for a player around these constraints: 1. The player only pets two spins 2. The player will add prize money won 3. If the player lands on a Lo" space, the player loscs all previously accrued money and becomes bankrupt, starting back at 0S camed. 4. Print out a smple coul statenent function to show the player sonne feedback of the ?are
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
