public static void Main(string[] args) { Console.ForegroundColor = ConsoleColor.Yellow; Console.WriteLine("BNU CO453 Applications Programming 2020-2021!"); Console.WriteLine(); string choice = Console.ReadLine(); string[] choices = { " Distance Converter ", " BMI Calculator ", "Students Grades", " Social Network " }; int choiceNo = ConsoleHelper.SelectChoice(choices); if (choiceNo == 1) { converter.ConvertDistance(); } if (choiceNo == 2) { Calculator.OutputUnits(); } if (choiceNo == 3) { calculator.CalculateMark(); } if (choiceNo == 4) { app04.DisplayMenu(); } else { Console.WriteLine("Invalid Choice !"); } }
public static void Main(string[] args) { Console.ForegroundColor = ConsoleColor.Yellow; Console.WriteLine("BNU CO453 Applications Programming 2020-2021!"); Console.WriteLine(); Console.WriteLine("1. Distance converter"); Console.WriteLine("2. BMI calculator"); Console.WriteLine("3. Student Grades calculator"); Console.WriteLine("4. Social network application"); Console.WriteLine("5. Ice, fire and wind RPS game"); Console.WriteLine(); string choice = Console.ReadLine(); string[] choices = { " Distance Converter ", " BMI Calculator ", "Student Grades Calcuator", "Social network", "Ice and Wind Fire rps game" }; int choiceNo = ConsoleHelper.SelectChoice(choices); if (choiceNo == 1) { converter.ConvertDistance(); } if (choiceNo == 2) { Calculator.OutpuUnits(); } if (choiceNo == 3) { calculator.CalculateMark(); } if (choiceNo == 4) { app04.DisplayMenu(); } if (choiceNo == 5) { app05.play(); } }