Write a program that prompts a user to enter the names of


The colors red blueand yellow are known as the primary colors because they cannot be made by mixing other colors. When you mix two primary colors, you get a secondary color as shown here:

When you mix red and blue you get purple
When you mix red and yellow you get orange
When you mix blue and yellow you get green

Write a program that prompts a user to enter the names of two primary colors to mix, If the user enters anything other than "red", "blue",or yellow", the program should display an error message. Oterwise the program should display thename of the secondary color that results by mixing two primary colors.

This is a C++ program and needs to be saved as a cpp file.

Solution Preview :

Prepared by a verified Expert
Programming Languages: Write a program that prompts a user to enter the names of
Reference No:- TGS01719160

Now Priced at $40 (50% Discount)

Recommended (98%)

Rated (4.3/5)