C / C++ Program For Entering Grade & Getting an Automated Remark Using If-Else statements : Grade Automatic Feedbacking / Remarking System

Leave a Comment
/* In the following C / C++ program we need to enter the grade, the student got in the exam & the program will give an automated remark about that grade */

Code:-
#include<iostream>
#include<conio.h>
using namespace std;
void main ()
{
char a;
cout<<"Enter Grade You Got : ";
cin>>a;
if (a=='A' || a=='a')
{
cout<<"Excellent";
}
else if (a=='B' || a=='b')
{
cout<<"Very Good";
}
else if (a=='C' || a=='c')
{
cout<<"Good";
}
else if (a=='D' || a=='d')
{
cout<<"Satisfactory";
}
else if (a=='E' || a=='e')
{
cout<<"Acceptable";
}
else if (a=='F' || a=='f')
{
cout<<"You Failed!";
}
else
{
cout<<"Entered grade is not valid";
}
getche();
}



Output:
C / C++ Program For Entering Grade & Getting an Automated Remark Using If-Else statements : Grade Automatic Feedback / Remarking System
C / C++ Program For Entering Grade & Getting an Automated Remark Using If-Else statements : Grade Automatic Feedback / Remarking System

0 comments: