Friday, November 10, 2017

Grade Checker in C++

A very simple program to check the grade of the student using C++.

I am currently accepting programming work kindly contact me in the following email address for further details. 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 is (034) 4335675.


Program Listing

#include <iostream>

using namespace std;

 int grade(int a, int b, int c)
  {
      int solve=0;

      solve = (a+b+c) / 3;

      if (solve >= 75) {

           cout << "Your Average Grade is " <<solve << "." << endl;
           cout << "You Passed the Subject";
      }
      else
        {
           cout << "Your Average Grade is " <<solve << "." << endl;
           cout << "You Failed the Subject";
      }
  }

    main() {
          int grades[3];

          cout << "\t\t Grade Solver Version 1.0";
          cout << "\n\n";
          cout << "Enter the Three Grades : ";
          cin >> grades[0] >> grades[1] >> grades[2];
          cout << "\n\n";
          grade(grades[0], grades[1], grades[2]);
          cout << "\n\n";
          system("pause");
    }

No comments:

Post a Comment