So, I am fairly new to C++ programming, so if you can help me, please try to keep it simple...I'm still learning. What I'm trying to do is assign a score to a grade letter (A,B,C,D,F) and then display it. This is what I'm have:
string lettergrade1;
string lettergrade2;
if (s1score >= 0.90)
{
string lettergrade1 = "A";
}
else if (s1score >= 0.80)
{
string lettergrade1 = "B";
}
else if (s1score >= 0.70)
{
string lettergrade1 = "C";
}
else if (s1score >= 0.60)
{
string lettergrade1 = "D";
}
else
{
string lettergrade1 = "F";
}
However, nothing is being assigned to "lettergrade1"...I'm sure it is some stupid mistake I am overlooking, but I can't seem to find the answer.