View Single Post
  #3 (permalink)  
Old January 23rd, 2007, 06:35 PM
seymour_glass seymour_glass is offline
Authorized User
 
Join Date: Jan 2007
Location: , LA, .
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to seymour_glass
Default

OK i dont understand what string i need. Here however is the code i have started.....

Seymour
Code:
{
            char charGrade;

            Console.WriteLine("Enter the letter grade to see your student status");
            Console.Write("Please enter your selection: ");
            Console.ReadLine(charGrade);
            char.Parse(charGrade);


            switch (charGrade)
            {
                case A: Console.WriteLine("Honor student");
                        break;

                case B: Console.WriteLine("Honor student");
                        break;

                case C: Console.WriteLine("Average student");
                        break;

                case D: Console.WriteLine("Below average student");
                    break;

                case F: Console.WriteLine("Below average student");
                    break;

                default: 
                    Console.WriteLine("Invalid selection. Please select an A,B,C,D or F.");            
                    break;
Seymour
Reply With Quote