2.1 Selection Control Structure Program-1
2.1 Selection Control Structure Program-1
BSIT IT11S9
#include <iostream>
using namespace std;
int main() {
double grade;
cout << "Enter your grade: ";
cin >> grade;
return 0;
}
Documentation:
I have designed this to convert numeric grades into their corresponding result following a standard
grading scale. This program prompts the user for a grade, first checks whether this falls within the 0-100
range and then determines the result by using several if-else statements. This code provides a direct,
efficient solution to educators or students who need to evaluate quickly and make sense of numerical
grades. Presently, it works fine for my purpose; however, I am open to suggestions on how it might be
improved-for example, using robust error handling, improving formatting, and perhaps optimizing the
grade comparison process for larger datasets.