Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

Can you give me the code for this question?

$
0
0

If not the code, an idea on how to get started along with resources?

Im new at visual C# (using the 2010 version) and I lost a bet to my friend who is in a programming class so now I have to try to answer this question correctly or he will have to shave my head bald. 

Simulate a slot machine game which has the following characteristics:
a) slot machine has 3 wheels
b) each wheel contains 5 different shapes that appear with equal liklihood
c) it costs 200$ to play


d) After the arm is pulled and the wheels stop spinning
(1)
If 2 out of 3 wheels are the same and consecutive you win $6.00
(2)
If 2 out of 3 wheels are the same and non-consecutive you win $3.00
(3)
If all 3 wheels are the same you win $20.00
(4)
If the wheels are all different you lose.

e)When the player requests to stop , display his/her final winnings/losses (eg. final
winnings/losses = total winnings - total cost to play)


Lol thanks for your help. :)


Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>