Question: programming language C Prompt the user to enter the first letter of the color of a cylinder. Then use a switch statement, output the contents
programming language C

Prompt the user to enter the first letter of the color of a cylinder. Then use a switch statement, output the contents of the cylinder to the console screen, using the table below. Include a default statement that prints the following message to the screen if none of the values in column one below are not entered: "You have not entered a valid cylinder color, please try the program again." It contains this... Ammonia Carbon Monoxide Hydrogen Oxvgen ! For a cylinder of this color User inputsFo "B" or 'b' PorpPurple Red Blue Green Test your program with: a) r Lower case letter r) b) p ( c) H (Upper case letter H) Upper case letter P)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
