Question: (C++) Write a program that prints the name of a fruit, given the first character of the fruit name by the user, using a switch

(C++)
Write a program that prints the name of a fruit, given the first character of the fruit name by the user, using a switch statement. Below are the guidelines: Prompt the user to type a character. Read the character from the keyboard Write a switch statement using the character variable as the expression. Inside the switch block: Write cases for printing the name of a fruit based on the character.( do 4 fruits). Make sure you tell user about invalid input
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
