Question: Write a program that accepts a single character representing a SmartPhone Company as input from the user. Then the program should print out the text

 Write a program that accepts a single character representing a SmartPhone

Write a program that accepts a single character representing a SmartPhone Company as input from the user. Then the program should print out the text for the appropriate SmartPhone Company. Your program prompts the user with "Enter the first letter of the SmartPhone Company:" Your program asks the user to input a character, which can have any value. Your program prints output according to the following: . If the input is 'S', print "Samsung" If the input is 'A', print "Apple" If the input is 'O', print "Oneplus" . If the input is 'G', print "Google" Any input value that is not 'S','A', 'O' or 'G' print "Invalid" Note: You must use a switch case for this problem. if/else statements are not allowed. The format of the output should be "SmartPhone Chosen: "

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!