Question: Help with this C++ programming assignment You work in a printing office that the machine there can print documents in different colors. It gets an

Help with this C++ programming assignment

Help with this C++ programming assignment You work in a printing office

You work in a printing office that the machine there can print documents in different colors. It gets an integer number between 1 to 7 and prints the documents in rainbow colors, as shown in the following table: Design an algorithm and write a C++ program to do the following: - Prompt user to enter a number between 1 and 7 - Use selection structure such as if-else or switch to find the color based on the previous table - Output the color related to input number. See the sample output. - Save the output in a file named "color.txt". Sample Run Enter a number between 1 and 7:4 You have selected number 4 which is GREEN

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!