I am VERY novice and working on a school project in C++. I'm not sure where I've gone wrong here in this code. Any advice on why this is not working would be appreciated. Please, pretend like you are talking to someone who knows very little about programming so far. :)
#include <iostream>
using namespace std ;
int main()
{
float score ;
char grade ;
// read in total score
cout << endl ;
cout << "Enter total score (float, must be <= 100) : " ;
cin >> score ;
if (score >= 85)
{
grade = 'A' ;
}
else (score >= 75)
{
grade = 'B' ;
}
else (score >= 65)
{
grade = 'C' ;
}
else (score >= 55)
{
grade = 'D' ;
}
else {
grade = 'F' ;
}
// display the result
cout << endl ;
cout << "Your grade for CMSC 101 is: " << grade << endl ;
return (0); // terminate with success
}