Code:
    #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
     
     
    }


Sponsored Links