Grade Solver in C++

Download
Download is available until [expire_date]
  • Version
  • Download 106
  • File Size 1.27 KB
  • File Count 1
  • Create Date May 5, 2016
  • Last Updated May 5, 2016

Grade Solver in C++

Grade Solver in C++
Grade solver sample program in c++ that computes your final grade based on the prelim, midterm and endterm grades.
The formula:
Final Grade = (prelimgrade * .3) + (midterm * .3) + (endterm * .4)
vb, java and c# version is also available, kindly search for it.
Thank you for visiting and Happy Coding!

Source code:

#include < iostream >

using namespace std;

int main()
{
double prelim, midterm, finals,result=0 ;

cout << "Enter prelim grade: " << endl;
cin >> prelim;
cout << "Enter midterm grade: " << endl;
cin >> midterm;
cout << "Enter endterm grade: " << endl;
cin >> finals;

result= (prelim * 0.30) + (midterm * 0.30) + (finals * 0.40);

cout << "Final Grade: " << result << endl;
return 0;
}
, , , , , ,

Post navigation

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.