Design a program on Color Mixer and Shipping Charges
Design a program on Color Mixer and Shipping Charges. COLOUR MIXER. The color red , blue, and yellow, are known as the primary colors because they cannot be made by mixing other colors. Describe how you mix two colors to obtain secondary colors. follow example shown here
When you mix red and blue you get purple
When you mix red and yellow, you get orange
When you mix blue yellow, you get green
Design 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.
2. SHIPPING CHARGES
The fast freight shipping company charges the following rates:
Weight of package rate per pound
2 pounds or less $1.10
Over 2 pounds but not more than 6 pounds $2.20
Over 6 pounds but not more than 10 pounds $ 3.70
Over 10pounds $3.80
Design a program that asks the user to enter the weight of a package and then displays the shipping charges
Answer preview for Design a program on Color Mixer and Shipping Charges
Words:393