Create a simple command line program that simulates the spinning of a roulette w
ID: 3552086 • Letter: C
Question
Create a simple command line program that simulates the spinning of a roulette wheel like game. The landing positions of the wheel are to be stored in a circular (the last node should point to the first and visa-versa) doubly linked list. When the program is run, generate a random number between 100 and 500 and then cycle through the wheel displaying each value stopping when the randomly generated value matches the iteration. Display the final value. Finally repeat the process with a new random number and cycle through the wheel backwards. In building the doubly linked list, simply hard code the values using Wikipedia as a reference for the color and numbers and the order of the nodes for the double linked list.
An example of running the program from the command line might be:
project04.exe
Forwards Random number: 256
B4, r21, b2, r25
Explanation / Answer
it's a very big code.please find the code at
http://pastebin.com/ypSwiD6G
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.