07-06-2011, 06:16 PM
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
}0300-9520262
Get solution in 24 hour |cpmputer & internet
mileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
