Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Understanding Oracle APEX 5 Application Development

Authors: Edward Sciore

2nd Edition

1484209893, 9781484209899

More Books

Students also viewed these Databases questions

Question

What is the coefficient for ANALYTICAL WRITING, b3?

Answered: 1 week ago

Question

Name some common facts and fallacies about rsums. [LO-2]

Answered: 1 week ago