Create a class that represents the Wheel from the wheel of fortune. The wheel ha
ID: 3567387 • Letter: C
Question
- Create a class that represents the Wheel from the wheel of fortune. The wheel has an array of size 20 with integer amounts. The amounts range from 100 to 25000. The class also has an integer variable called marker. The marker symbolizes the index where the wheel is stopped. Add a default constructor that randomly assigns values to the array of amounts within the range specified. Also set the marker to 0. In addition add:
- Accessor and mutator functions for the marker variable
- spin() function
Explanation / Answer
// Wheel of Fortune #include #include #include #include using namespace std; struct Player { string name; int money; }; int main(){ //PLAYER INFORMATION AND WELCOME Player one; one.money = 0; cout > one.name; coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.