Question
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
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 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
b.) In method play, with pseudocode method play() ... return if the player won or lost
c.) In method play, with pseudocode method play() ... set a local variable to won or 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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started