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.

in C++ please
i need to create a rock-paper-scissors computer program that will be played between computer and human.
the pseudocode is
// declare variables
// start loop
// determine computers choice (code block 1)
// prompt for, and read, the humans choise (code block 2)
the two cose blocks should not produce any output

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!