title: Grading system in C++
body: <p>So this is my C++ question : </p>
  
  <p>Write a program that translates a letter grade into a number grade. Letter grades are A, B, C, D and F, possibly followed by + or -. Their numeric values are 4, 3, 2, 1 and 0. There is no F+ or F-. A + increases the numeric value by 0.3, a – decreases it by 0.3. However, an A+ has value 4.0.</p>
  
  <p>Enter a letter grade: B<br>
  The numeric value is 2.7</p>
  
  <p>And here is my code :</p>
  
  <pre><code>int main ()
  {
      char grade;
      int value;
      cout &lt;&lt; "Enter letter grade : " ;
      cin &gt;&gt; grade;
  
      switch(grade)
      {
      case 'A' : value = 4;
          break;
      case 'B' : value =  3;
          break;
      case 'C' : value = 2;
          break;
      case 'D' : value = 1;
          break;
      case 'E' : value = 0;
          break;
      default : cout &lt;&lt; "Wrong input " &lt;&lt; endl;
          break;
      }
  
      cout &lt;&lt; value;
      system("PAUSE");
      return 0;
  }
  </code></pre>
  
  <p>It able to print out 4 for A, 3 for B and so on. But however, the question required us to make the calculation for the + and - also. Am I supposed to use if else statement after the switch? </p>