Question: I'm having trouble with a C++ computer science program. I've created the function getColors, which asks the user to input two colors. The two colors

I'm having trouble with a C++ computer science program. I've created the function getColors, which asks the user to input two colors. The two colors must be different and they must be primary colors (1 = RED, 2 = BLUE, and 3 = YELLOW) If the user enters anything but those three options, OR if the user enters two colors that are the same, a message should display "Invalid colors." Otherwise the message should be "Those are valid colors." My "if" statements are not correct because no matter what, the message displayed is "Invalid colors." Please help me fix this.I'm having trouble with a C++ computer science program. I've created the

main cpp LHw4-1-ssJ Code: Blocks 16.01 File Edi View Search Proje Build Debug For wxSmith Tools Tools Plugins D xyBlocks Seltings Help O Workspace sources main.cpp bool Coll getColor

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!