Hello Im having trouble figuring out the code to this assign

Hello, I\'m having trouble figuring out the code to this assignment. I posted what I got so far but I am having trouble getting the random numbers to create the game. Basically if it rolls a dice and the person with the highest number wins. I have the file for the subroutines for this assignment if anyone can help that would be awesome.

2 Algorithm The following is the basic algorithm for Gunchy Dice. Main balance 1 00 Output \"Welcome to Sacramento State Gunchy Dice Output \"You have $ & balance Output \"Enter your bet Input bet False True bet !=0 player = Random(6) + 1 house Random (6) + 1 Output \"You rolled a& player Output \"House rolled a\"&house; False True player> house Output \"You lose!\" Output \"You win! balance = balance . bet balance balance + bet Output \"You have $\" & balance True balance 0 AND bet>0 False Output \"Done playing End

Solution

it rolls a dice and the person with the highest number wins.

For red user input and underlying :

am using a EditText to take date from the user. So when I am running my application on the default value that I have given it is underlining the text in red. XML Code

Hello, I\'m having trouble figuring out the code to this assignment. I posted what I got so far but I am having trouble getting the random numbers to create the

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site