somebody help.the final score got a bit problem.i input exam-86,quiz-84,assg-70,lab-88,test-80,the final score should give me 82.7,but my program give me 82 only..someone help..
#include <iostream>
#include <cmath>
using namespace std;
int get_Score(double,double,double,double,double);
int main()
{
int a ;
double score, b , c , d , e , f ;
cout << "Please enter your student number." << endl;
cin >> a;
cout << "\nPlease enter your marks for exam." << endl;
cin >> b;
cout << "\nPlease enter your marks for quiz." << endl;
cin >> c;
cout << "\nPlease enter your marks for prigramming assignment." << endl;
cin >> d;
cout << "\nPlease enter your marks for lab exercise." << endl;
cin >> e;
cout << "\nPlease enter your marks for test." << endl;
cin >> f;
score = get_Score(b, c ,d , e ,f );
cout << "\nStudent Number:" << " " << a << endl;
cout << "=======================";
cout << "\nMarks for exam is:" << " " << b << endl;
cout << "Marks for quiz is:" << " " << c << endl;
cout << "Marks for programming assignment is:" << " " << d << endl;
cout << "Marks for lab exercise is:" << " " << e << endl;
cout << "Marks for test is:" << " " << f << endl;
cout << "Final Score is" << " " << score << endl;
system ("pause");
return 0;
}
int get_Score(double b ,double c ,double d ,double e , double f)
{
double score;