#include <iostream>
using namespace std ;
int main() ;
{
score and grade // declare variables ;
float total_score // total weigted points ;
char grade // letter grade ;
int A , B , C , D , F ;
// read in total score ;
cout << endl ;
cout << "Enter total score (float, must be <= 100) : " ;
cin >> score ;
if (score >= 85) ;
grade = 'A' ;
else if (score >= 75);
grade = 'B' ;
else if (score >=65) ;
grade = 'C' ;
else if (score >= 55) ;
grade = 'D' ;
else
grade = 'F' ;
// end if score
// display the result
; cout << endl ;
cout << "Your grade for CMIS 102 is: " << endl ;
return (0); // terminate with success
}
This gives me an error - >.\Assignment 2.cpp(21) : error C2447: '{' : missing function header (old-style formal list?)
1>Build log was saved at "file://c:\Users\jashbela\Documents\Visual Studio 2008\Projects\Assignement 2\Assignement 2\Release\BuildLog.htm"
1>Assignement 2 - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========