title: I need to make a program that will find the average of 15 test grades
body: <p>First of all the program, must find the average of the 15 numbers. then must give a grade accordingly For example if the grade where a 88 the program would print the grade B. Also the program must use some sort of User-Defined example.</p>
  
  <p>Now for my question. In the program below i got it to calculate the average of 15 numbers however, i cant find a way for the exception to detect if the user has inputted something other than a number. I tried to make it Try for the gradetotal as decimal but that seems to be unacceptable. So is there an alternative way or am i overlooking something?</p>
  
  <pre><code>Module Module1
  
      Sub Main()
          Dim num1, num2, num3, num4, num5, num6, num7, num8, num9, num10, num11, num12, num13, num14, num15, gradetotal As Decimal
          Console.WriteLine("The Average Of 10 numbers")
          Console.Write("Input Test Grade 1: ")
          num1 = Console.ReadLine()
          Console.Write("Input Test Grade 2: ")
          num2 = Console.ReadLine()
          Console.Write("Input Test Grade 3: ")
          num3 = Console.ReadLine()
          Console.Write("Input Test Grade 4: ")
          num4 = Console.ReadLine()
          Console.Write("Input Test Grade 5: ")
          num5 = Console.ReadLine()
          Console.Write("Input Test Grade 6: ")
          num6 = Console.ReadLine()
          Console.Write("Input Test Grade 7: ")
          num7 = Console.ReadLine()
          Console.Write("Input Test Grade 8: ")
          num8 = Console.ReadLine()
          Console.Write("Input Test Grade 9: ")
          num9 = Console.ReadLine()
          Console.Write("Input Test Grade 10: ")
          num10 = Console.ReadLine()
          Console.Write("Input Test Grade 11: ")
          num11 = Console.ReadLine()
          Console.Write("Input Test Grade 12: ")
          num12 = Console.ReadLine()
          Console.Write("Input Test Grade 13: ")
          num13 = Console.ReadLine()
          Console.Write("Input Test Grade 14: ")
          num14 = Console.ReadLine()
          Console.Write("Input Test Grade 15: ")
          num15 = Console.ReadLine()
  
          gradetotal = num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 + num11 + num12 + num13 + num14 + num15
  
          Try
              If gradetotal = Decimal Then
  
              Else
                  Throw New Exception()
              End If
          Catch ex As Exception
              Console.WriteLine("Your Grade Average Is:" &amp; (gradetotal) / 15)
  
          End Try
          Console.ReadLine()
  
      End Sub
  End Module
  </code></pre>
  
  <p>Finally can anyone explain to me how to make this program have a comment block with all the key information and a single and multi line comments?</p>