Python code assignment
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.
8 years ago 10
Answer(1)
Purchase the answer to view it
NOT RATED
- PrimaryColors.zip
other Questions(10)
- I want someone to revise my two essays
- Course evaluation!
- paper needed asap
- 2. Please describe two examples of how two a mental health practitioner might treat an anxiety or mood disorder using two of the following three theoretical perspectives Insight Therapies, Behavior Therapies, Biomedical Therapies. For each approach discus
- Research Paper
- Calculus 2
- MKT/544 week 4 individual paper and learning team (for gloria)
- A chain store manager has been told by the main office that daily profit, P, is related to the number of...
- Personality and the influence of sibling.
- COURES PROJECT