test question
For this part of the test you will write the code to do the following:
The colors red, blue, and 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:
mix red and blue, you get purple
mix red and yellow, you get orange
mix blue and yellow, you get green
Write a program that prompts the 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. Otherwise, the program should display the name of the secondary color that results.
Turn this program code and output here.
MUST BE WRITTEN IN PYTHON!
8 years ago
1
Answer(1)![blurred-text]()
![]()
Purchase the answer to view it

NOT RATED
- Thecolorsred.docx
other Questions(10)
- 4x-5y=18; 3x=y+11Solve the linear system using any algebraic method.
- ¿Me prestas tu chaqueta? ¿Ya Le prestaste tu chaqueta a otro/a amigo/a?
- how do i factor 18z squared plus 19z minus 12
- A music teacher ordered 6 pizzas. Each pizza had 8 slices. There were 20 slices left. How many pizzas are...
- two point charges of 2 C and -3 C are separated by 6 cm. What is the magnitude of the...
- COrrect errors in spelling, capitalization, gramma, work usage, and number usage.
- Education: Critical Thinking.
- Position Analysis
- 6 is what % of 20?
- 50 is 15% of what number'