Grade Range.

 #include<iostream>

#include<string>

using namespace std;

int main(){

    string G;

    cout<<"Enter Grade Of Student"<<endl;

    cin>>G;

    if(G=="A+"||G=="a+")

    {

        cout<<"Grade Is : "<<G<<endl;

        cout<<"This Grade Is Lies In The Rang : M>=85 "<<endl;

    }

    else 

    if(G=="A"||G=="a")

    {

        cout<<"Grade Is : "<<G<<endl;

        cout<<"This Grade Is Lies In The Rang : 80<=M<85 "<<endl;

    }

     else 

    if(G=="B+"||G=="b+")

    {

        cout<<"Grade Is : "<<G<<endl;

        cout<<"This Grade Is Lies In The Rang : 70<=M<80 "<<endl;

    }

else 

    if(G=="B"||G=="b")

    {

        cout<<"Grade Is : "<<G<<endl;

        cout<<"This Grade Is Lies In The Rang : 60<=M<70 "<<endl;

    }

else 

    if(G=="C+"||G=="c+")

    {

        cout<<"Grade Is : "<<G<<endl;

        cout<<"This Grade Is Lies In The Rang : 50<=M<60 "<<endl;

    }

else 

    if(G=="C"||G=="c")

    {

        cout<<"Grade Is : "<<G<<endl;

        cout<<"This Grade Is Lies In The Rang : 40<=M<50 "<<endl;

    }

else 

    if(G=="D"||G=="d")

    {

        cout<<"Grade Is : "<<G<<endl;

        cout<<"This Grade Is Lies In The Rang : 35<=M<40 "<<endl;

    }

else 

    if(G=="F"||G=="f")

    {

        cout<<"Grade Is : "<<G<<endl;

        cout<<"This Grade Is Lies In The Rang : <35 "<<endl;

    }


    return 0;

}

Comments

Popular Posts