Question
Prior to beginning this discussion, read Chapter 4: Branching in the course text. Students: Be sure to download and save a PDF version of your
Prior to beginning this discussion, read Chapter 4: Branching in the course text.
Students: Be sure to download and save a PDF version of your textbook for future reference. It will be used in later courses within your program, including the final, capstone course. Zybooks limits online access to your course textbooks to a 12-month period. (Zybook Download Instructions)
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, as shown here:
- Red and blue = purple
- Red and yellow = orange
- Blue and yellow = green
For this interactive assignment, you will employ list data structures to store a group of objects by designing 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.
Once you have completed the program, take a screen shot of the completed functionality (including the input and the output) and save it in a Word document, along with the script.
In your initial post,
- Attach your Word document.
- Describe your process in developing the program.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started