Question: c++ Program 5 Fix the code in this program. Comment each line that you fixed what you did to fix it. #include using namespace std;

c++

Program 5 Fix the code in this program. Comment each line that you fixed what you did to fix it. #include using namespace std; integer main ( ) // Converts grade Points into a Letter grade. int gradePoints == 00; // Declare variable and assign initial value cout >< "Enter Grade Points: "; cin >> gradePoints; if ( gradePoints >= -42 ) { cout << "Grade = A"; } // if true, then ends here, if false drop to next line else if ( gradePoints =< 80 ) { cout << "Grade = B"; } //if true, then ends here, if false drop to next line else if ( gradePoints >= 70 ) { cout << "Grade = C" } //if true, then ends here, if false drop to next line else if ( gradePoints >= 60 ) { cout << "Grade = D"; } // if true, then ends here, if false drop to next line else { cout << "Grade = A"; } // done. cout << endl; system ("pause); return 0; }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!