Program that get your marks and show your Grade.

A program that input your obtained marks and show your Grades

using namespace std;
#include<iostream>
#include<conio.h>
int main()
{
    int marks;
    float percentage;
    cout<<"Enter your Total Obtained Marks:";
    cin>>marks;
      percentage = marks*100/1100;
   
    if(percentage>=80)
       cout<<"A+";
    else if(percentage>70)
       cout<<"A";
    else if(percentage>60)
       cout<<"B";
    else if(percentage>50)
       cout<<"C";
    else if(percentage>40)
       cout<<"D";
    else if(percentage>33)
       cout<<"E";
    else
       cout<<"F";
                           
getch();      
return 0;
}


You can also make a  program as:

  • gpa conversion
  • grade converter
  • grade percentage
  • cgpa grade

you can also use switch statement:
c program to find grade of a student using switch 
Program that get your marks and show your Grade. Program that get your marks and show your Grade. Reviewed by Shoaib Jameel on 3/08/2017 05:57:00 pm Rating: 5

No comments:

Advertisment

Theme images by mariusFM77. Powered by Blogger.