Question: code in c++, starter code provided #include using std::cout; using std::cin; using std::endl; using std::boolalpha; // add any other includes you need. Up to you

code in c++, starter code provided

#include

using std::cout; using std::cin; using std::endl; using std::boolalpha;

// add any other includes you need. Up to you

/*

for this we will use:

1 - rock

2 - paper

3 - scissors

*/

// PUT YOUR FUNCTIONS BELOW THIS LINE

// MAIN IS BELOW, DON'T CHANGE

int main() {

cout // print true or false for bools

int test;

cin >> test;

switch (test) {

case 1 : { // strategy 1

long player, previous_result, previous_play, opponent_play;

cin >> player >> previous_result >> previous_play >> opponent_play;

cout

break;

} // of case 1

case 2:{ // strategy 2

long player, previous_result, previous_play, opponent_play;

cin >> player >> previous_result >> previous_play >> opponent_play;

cout

break;

} // of case 2

case 3: { // strategy 3

long player, previous_result, previous_play, opponent_play;

cin >> player >> previous_result >> previous_play >> opponent_play;

cout

break;

} // of case 3

case 4: { // score result

long p1, p2;

cin >> p1 >> p2;

cout

break;

} // of case 4

} // of switch

} // of main

code in c++, starter code provided #include using std::cout; using std::cin; using

std::endl; using std::boolalpha; // add any other includes you need. Up toyou /* for this we will use: 1 - rock 2 -paper 3 - scissors */ // PUT YOUR FUNCTIONS BELOW THIS LINE

1 #include> test; 21 2 Switch (test) 23 case 1: /strategy 1 24 25 26 27 28 // of case long player, previous result, previous play, opponent play cin >> player previous_result previous play opponent play; cout > player> previous result previous play opponent play: cout > player >> previous_result >> previous play opponent play: cout

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!