Sunday, April 29, 2018

Grade Checker in C++ Using If -Else Statement

A very simple program that will check for using grade using letter grade in C++.

I am currently accepting programming work, it project, school programming projects , thesis and capstone projects, IT consulting work and web development work kindly contact me in the following email address for further details.  If you want to advertise in my website kindly contact me also in my email address also. Thank you.

My email address are the following jakerpomperada@gmail.com and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.



Program Listing

grade.cpp


#include <iostream.h>
#include <stdlib.h>

int main()
{
          int grade;
          cout << "Enter grade: ";
          cin >> grade;
          if((grade>=95)&&(grade<=100))
              cout << "Grade is A\n";
          else if((grade>=87)&&(grade<=94))
              cout << "Grade is B\n";
          else if((grade>=80)&&(grade<=86))
              cout << "Grade is C\n";
          else if((grade>=75)&&(grade<=79))
              cout << "Grade is D\n";
          else if((grade>=60)&&(grade<=74))
              cout << "Grade is F\n";
          else
              cout << "Grade is INVALID!\n";

      system("PAUSE");
      return 0;
}



No comments:

Post a Comment