![]() Program must ask user how many coins are being inserted, either 1, 2, or 3. Slot machine has 3 wheels each with 7 positions, as described beforeĢ. Return winnings //returns winnings to use towards calculating total coins won.ġ. Int evalpayout( int A, int B, int C) //takes in a specific row to evaluate payout Void NumConversion(int x) //converts all the random nubers generated into word outputs. ![]() ![]() Int wheel1 = Īssert ( coinsin >= 0 & coinsin > coinsin Īssert ( coinsin >=0 & coinsin to exit: " Int total = 5, coinsin, coinswon = 0, winnings Void spin(int wheel, int wheelsize, int column, int position, int positionsize) When 1 coin is enetered, middle row is evaluated 2 coins, top two rows 3 coins, all rows.Ĭan anyone help me with this? this is what I have so far: #include Player can put in 1 -3 coins, and 0 to exit When wheels "spin", output should show three items from each wheel (each wheel is a column of output). Wheel 3 = plum, plum, bell, bar, cherry cherry. Wheel 2 = cherry, cherry, plum, plum plum, bell, bar Wheel 1 = cherry, cherry, cherry, plum, plum, bell, bar I have to write a slot machine program where theres 3 wheels.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |