Within the tutorial casino craps game pseudocode, where should you place the pseudocode that performs the task of 'Get if the player won or lost', and how (in pseudocode) should this task be implemented? a.) In Function play, with pseudocode function play() ... set a local variable to won or lost b.) In Function play, with pseudocode function play() ... return if the player won or lost c.) In Loop until Games Played = Times to Play, with pseudocode Loop until Games Played = Times to Play ... If the player won ... Set "Get if the player won or lost" to won Else if player lost ... Set "Get if the player won or lost" to lost d.) In Loop until Games Played = Times to Play, with pseudocode Loop until Games Played = Times to Play ... If the player won ... Else if player lost ... Set "Get if the player won or lost" to won or lost
Within the tutorial casino craps game pseudocode, where should you place the pseudocode that performs the task of 'Get if the player won or lost', and how (in pseudocode) should this task be implemented?
-
a.)
In Function play, with pseudocode
function play()
...
set a local variable to won or lost
-
b.)
In Function play, with pseudocode
function play()
...
return if the player won or lost
-
c.)
In Loop until Games Played = Times to Play, with pseudocode
Loop until Games Played = Times to Play
...
If the player won
...
Set "Get if the player won or lost" to won
Else if player lost
...
Set "Get if the player won or lost" to lost
-
d.)
In Loop until Games Played = Times to Play, with pseudocode
Loop until Games Played = Times to Play
...
If the player won
...
Else if player lost
...
Set "Get if the player won or lost" to won or lost
Trending now
This is a popular solution!
Step by step
Solved in 2 steps