/*This program uses a swith-case satement to assign a
letter grade (a, b, c, d, or f) to a numeric score.
I have to fix the problems in this program, I dont know how to
"fix" the actual cases...*/
#include <iostream>
using namespace std;
int main()
{
int testScore;
cout << "Enter your test score and i will tell you\n";
cout << "the letter grade you earned: ";
cin >> testScore;
switch (testScore)
{
case (testScore <= 60):
cout << "F\n";
break;
case (testScore <= 70.0):
cout << "D\n";
break;
case (testScore <= 80.0):
cout << "C\n";
break;
case (testScore <= 90.0):
cout << "B\n";
break;
case (testScore <= 100.0):
cout << "A\n";
break;