Lab 4

This lab will allow you to practice with if-then-else statements.

Please complete the following program. Insert code where the commments request it.

#include <iostream>
using namespace std;

int main () {
   float Score;
   char Grade;

   cout << "Enter your score (0-100):  " << endl;

   cin >> Score;

   //  add code here to test if the score is more than 100, if so make it 100

   if () {
      Score = 100;
   }

   //  add code here to check to see if the score is less than 0, if so make
   //  it 0

   if () {
   }

   //  add code here to assign a letter grade to the student

   if (Score >= 89.5) {
      Grade = 'A';
   } else if (Score > 79.5)  {
   } else {
   }

   cout << "For a score of " << Score << " your grade is " << Grade << endl;

   // add code here to contratulate people if their score is an A
   

   // add code here to tell people with grades less than a C to see their
   // instructor

}