41 lines
1.0 KiB
C#
41 lines
1.0 KiB
C#
/*
|
|
* C# Program to Read a Grade & Display the Equivalent Description
|
|
*/
|
|
using System;
|
|
using System.IO;
|
|
class program
|
|
{
|
|
public static void Main()
|
|
{
|
|
char grade;
|
|
Console.WriteLine("Enter the Grade in UpperCase \n");
|
|
grade = Convert.ToChar(Console.ReadLine());
|
|
switch (grade)
|
|
{
|
|
case 'S':
|
|
Console.WriteLine(" SUPER");
|
|
break;
|
|
case 'A':
|
|
Console.WriteLine(" VERY GOOD");
|
|
break;
|
|
case 'B':
|
|
Console.WriteLine(" FAIR");
|
|
break;
|
|
case 'Y':
|
|
Console.WriteLine(" ABSENT");
|
|
break;
|
|
case 'F':
|
|
Console.WriteLine(" FAIL");
|
|
break;
|
|
default:
|
|
Console.WriteLine("ERROR IN GRADE \n");
|
|
break;
|
|
Console.ReadLine();
|
|
}
|
|
}
|
|
}
|
|
|
|
/*
|
|
Enter the Grade in UpperCase
|
|
A
|
|
VERY GOOD |