Help needed. Used a switch statement in try catch block which worked but the error message wouldn't display. Thanks in advance.
A tour operator offers package holidays in England, Spain, Italy, Portugal and France. The program you are given defines an array with those options and takes N number as input. Write a program to output the package option with N index. If the number is out of range, program should output "Wrong number". Regardless of the option results, the program should output "Goodbye" at the end. Sample Input 2 Sample Output Italy Goodbye using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static System.Console; namespace SoloLearn { Ā Ā Ā Ā class Program Ā Ā Ā Ā { Ā Ā Ā Ā Ā Ā Ā Ā static void Main(string[] args) Ā Ā Ā Ā Ā Ā Ā Ā { Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā string[] tours = { "England", "Spain", "Italy", "Portugal", "France" }; Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā int choice = Convert.ToInt32(Console.ReadLine()); Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā //your code goes here Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā } Ā Ā Ā Ā } }