Question
Write Code Blocks #1 (determine computers choice) and #2 (prompt for, and read, humans choice) Write simplified versions of code blocks #1 and #2, starting
Write Code Blocks #1 (determine computers choice) and #2 (prompt for, and read, humans choice) Write simplified versions of code blocks #1 and #2, starting each with a blank line and then a comment line as already explained:
-
in the code block to determine the computer's choice, assign a value to the corresponding variable declaration in step 2 above,
-
in the code block to determine the human's choice, assign a value to the corresponding variable declaration in step 2 above,
In these simplified versions, assign a default value to the variable that the code block is responsible for. That is, assign a value corresponding to "rock" for the computer, and "quit" for the human. For example, 'R'; and 'Q'; -- to simulate the computer selection of rock, and the human wanting to quit the program.
At this point there is still no input or output.
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