Question: Use the following program #include #include using namespace std; int main() { int choice; // Menu choice should be 1, 2, or 3 // Display

Use the following program

#include #include using namespace std; int main() { int choice; // Menu choice should be 1, 2, or 3 // Display the menu of choices cout << "Choose a primary color by entering its number. "; cout << "1 Red " << "2 Blue " << "3 Yellow "; // Get the user's choice cin >> choice; // Tell the user what he or she picked if (choice == 1) cout << "You picked red. "; else if (choice == 2) cout << "You picked blue. "; else cout << "You picked yellow. "; return 0;

}

* Output in here means what is shown in the console window. For example, cout<<"Hello world! "; outputs Hello World!

What is the output of the program if user entered 1?

What is the output of the program if user entered 2?

What is the output of the program if the user entered 0?

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!