Write a case statement that given an integer selector


Problem

1. Write a case statement that, given an Integer selector called Name, will print your first name if Name = 1, your middle initial if Name = 2, your last name if Name = 3, and an error message if Name is not 1, 2, or 3.

2. How would you change your answer to question 1 so that nothing is displayed if Name is not 1, 2, or 3?

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a case statement that given an integer selector
Reference No:- TGS02652567

Expected delivery within 24 Hours