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

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

            char charGrade;

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

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

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

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

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

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

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