Question: using c++ Change for a dollar program #9 using c++ The colors red, blue, and yellow are known as the primary colors because they cannot

using c++ Change for a dollar program

using c++ Change for a dollar program #9 using c++ The colors

#9 using c++

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 second- ary color, as shown here: When you mix red and blue, you get purple. When you mix red and yellow, you get orange. When you mix blue and yellow, you get green. Write a program that prompts the user to enter names of two primary colors to mix. If the user the should enters anything other than "red," "blue," or "yellow," the program the display an error message. Otherwise, the program should d splay the name of secondary color that results by mixing two primary colors. 9. Change for a Dollar Game Create a change-counting game that gets the user to enter the number of coins require to make exactly one dollar. The program should ask the user to enter the number of pennies, nickels, dimes, and quarters. If the total value of the coins is equal to one the program should congratulate entered Otherwise, the the user for winning the game. program should display a message indicating whether the amount entered was more than or less than one dollar. 10. Days in a Month Write a program that asks the user to enter the month (letting the user enter an inte the range of through 12) and the year. The program should then display the number of days in that month. Use the following criteria to identify leap years 1. Determine whether the year is by 100. it is, then it is a leap year if and only if it is divisible by 400. For example, 2000 is a leap year but 2100 is not

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!