Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
c++ Grading progeamm help
#1
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 & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)