Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals Design And Implementation

Authors: David M. Kroenke

5th Edition

B000CSIH5A, 978-0023668814

More Books

Students also viewed these Databases questions