CodeGraderBench/CodeGraderBench huggingface dataset:
Problem: Write a C++ program to accept two floating point numbers from the user, a and b, and evaluate the expression and print the result:  (a5 - 3a4b + 4a2b3 - 5ab4 + b5) / (a -b). Print the computed value of the expression

Constraints (Assume)-10 <= a, b <=10a is not equal to b(a-b) is never 0

Student submission:
#include <simplecpp>
main_program {
float a,b;
cin>>a;
cin>>b;
float n,d;
n=pow(a,5)-3*pow(a,4)*b+4*pow(a,2)*pow(b,3)-5*a*pow(b,4)+pow(b,5);
d=a-b;
if (-10<=a&&b<=10&&a!=b){cout<<n/d;}
}

Grading criterion: Correctness of Answer
Rating A: Final answer completely correct
Rating B: Individual Terms Calculated correctly but error in final answer, or some other mistake
Rating C: Code completely wrong
Rating D: 0
Assigned grade: A
Problem: Write a C++ program to accept two floating point numbers from the user, a and b, and evaluate the expression and print the result:  (a5 - 3a4b + 4a2b3 - 5ab4 + b5) / (a -b). Print the computed value of the expression

Constraints (Assume)-10 <= a, b <=10a is not equal to b(a-b) is never 0

Student submission:
#include<simplecpp>
main_program{
	float a, b;
	cin >> a >> b;

	float result;
	result = (pow(a,5) -((3*(pow(a,4)))*b) + ((4*(pow(a,2)))*(pow(b,3))) - ((5*a)*(pow(b,4)))+ pow(b,5))/((a-b)*1.0);

	cout << result;

}

Grading criterion: Correctness of Answer
Rating A: Final answer completely correct
Rating B: Individual Terms Calculated correctly but error in final answer, or some other mistake
Rating C: Code completely wrong
Rating D: 0
Assigned grade: A
Problem: Write a C++ program to accept two floating point numbers from the user, a and b, and evaluate the expression and print the result:  (a5 - 3a4b + 4a2b3 - 5ab4 + b5) / (a -b). Print the computed value of the expression

Constraints (Assume)-10 <= a, b <=10a is not equal to b(a-b) is never 0

Student submission:
#include<simplecpp>
main_program{
	float a,b;
	cin>>a>>b;
	float c;
	c=((a*a*a*a*a)-(3*a*a*a*a*b)+(4*a*a*b*b*b)-(5*a*b*b*b*b)+(b*b*b*b*b))/(a-b);
	cout<<c<<endl;
}

Grading criterion: Correctness of Answer
Rating A: Final answer completely correct
Rating B: Individual Terms Calculated correctly but error in final answer, or some other mistake
Rating C: Code completely wrong
Rating D: 0
Assigned grade: A
Problem: Write a C++ program to accept two floating point numbers from the user, a and b, and evaluate the expression and print the result:  (a5 - 3a4b + 4a2b3 - 5ab4 + b5) / (a -b). Print the computed value of the expression

Constraints (Assume)-10 <= a, b <=10a is not equal to b(a-b) is never 0

Student submission:
#include<simplecpp>
main_program{
	float a,b;
	cin>>a>>b;
	cout<<(pow(a,5)-3*pow(a,4)*b+4*pow(a,2)*pow(b,3)-5*a*pow(b,4)+pow(b,5))/(a-b);
}

Grading criterion: Correctness of Answer
Rating A: Final answer completely correct
Rating B: Individual Terms Calculated correctly but error in final answer, or some other mistake
Rating C: Code completely wrong
Rating D: 0
Assigned grade: A
Problem: Write a C++ program to accept two floating point numbers from the user, a and b, and evaluate the expression and print the result:  (a5 - 3a4b + 4a2b3 - 5ab4 + b5) / (a -b). Print the computed value of the expression

Constraints (Assume)-10 <= a, b <=10a is not equal to b(a-b) is never 0

Student submission:
#include<simplecpp>
main_program{
	float a,b,c,d,e,f,g,h,s;
	cin >> a >> b;
	c = a*a*a*a*a;
	d = 3*a*a*a*a*b;
        e = 4*a*a*b*b*b;
        f = 5*a*b*b*b*b;
        g = b*b*b*b*b;
        h = a-b;
        s = (c-d+e-f+g)/h;
        cout<<s<<endl;
}

Grading criterion: Correctness of Answer
Rating A: Final answer completely correct
Rating B: Individual Terms Calculated correctly but error in final answer, or some other mistake
Rating C: Code completely wrong
Rating D: 0
Assigned grade: A
Problem: Write a C++ program to accept two floating point numbers from the user, a and b, and evaluate the expression and print the result:  (a5 - 3a4b + 4a2b3 - 5ab4 + b5) / (a -b). Print the computed value of the expression

Constraints (Assume)-10 <= a, b <=10a is not equal to b(a-b) is never 0

Student submission:
#include <simplecpp>
main_program{
	float a,b;
	cin>>a>>b;
	if(-10<=a && b<=10 && a!=b)
	{
	float s= (pow(a,5)-3*pow(a,4)*b+4*pow(a,2)*pow(b,3)-5*a*pow(b,4)+pow(b,5))/(a-b);
	cout<<s;
	}
}

Grading criterion: Correctness of Answer
Rating A: Final answer completely correct
Rating B: Individual Terms Calculated correctly but error in final answer, or some other mistake
Rating C: Code completely wrong
Rating D: 0
Assigned grade: A
Problem: Write a C++ program to accept two floating point numbers from the user, a and b, and evaluate the expression and print the result:  (a5 - 3a4b + 4a2b3 - 5ab4 + b5) / (a -b). Print the computed value of the expression

Constraints (Assume)-10 <= a, b <=10a is not equal to b(a-b) is never 0

Student submission:
#include<simplecpp>
main_program{
	float a , b ;
	cin>>a>>b;
	float result;
	if((a>=-10) && (b<=10) && ((a-b) !=0)){
		result=(a*a*a*a*a - 3*a*a*a*a*b + 4*a*a*b*b*b - 5*a*b*b*b*b + b*b*b*b*b)/(a - b)  ;
		cout<<result;
	}
}

Grading criterion: Correctness of Answer
Rating A: Final answer completely correct
Rating B: Individual Terms Calculated correctly but error in final answer, or some other mistake
Rating C: Code completely wrong
Rating D: 0
Assigned grade: A
Problem: Write a C++ program to accept two floating point numbers from the user, a and b, and evaluate the expression and print the result:  (a5 - 3a4b + 4a2b3 - 5ab4 + b5) / (a -b). Print the computed value of the expression

Constraints (Assume)-10 <= a, b <=10a is not equal to b(a-b) is never 0

Student submission:
#include<simplecpp>


main_program{

	float a , b , x , y;

	cin >> a >>  b ;


	x = (a*a*a*a*a - 3.0*a*a*a*a*b + 4.0*a*a*b*b*b -5.0*a*b*b*b*b + b*b*b*b*b)  ;

	y = a - b ; 


	cout << 1.0*x / y ;


}

Grading criterion: Correctness of Answer
Rating A: Final answer completely correct
Rating B: Individual Terms Calculated correctly but error in final answer, or some other mistake
Rating C: Code completely wrong
Rating D: 0
Assigned grade: A
Problem: Write a C++ program to accept two floating point numbers from the user, a and b, and evaluate the expression and print the result:  (a5 - 3a4b + 4a2b3 - 5ab4 + b5) / (a -b). Print the computed value of the expression

Constraints (Assume)-10 <= a, b <=10a is not equal to b(a-b) is never 0

Student submission:
#include<simplecpp>
main_program{
	float a,b,exp;
	cin>>a>>b;
	exp=((a*a*a*a*a)-(3*a*a*a*a*b)+(4*a*a*b*b*b)-(5*a*b*b*b*b)+(b*b*b*b*b))/(a-b);
	cout<<exp;
}

Grading criterion: Correctness of Answer
Rating A: Final answer completely correct
Rating B: Individual Terms Calculated correctly but error in final answer, or some other mistake
Rating C: Code completely wrong
Rating D: 0
Assigned grade: A
Problem: Write a C++ program to accept two floating point numbers from the user, a and b, and evaluate the expression and print the result:  (a5 - 3a4b + 4a2b3 - 5ab4 + b5) / (a -b). Print the computed value of the expression

Constraints (Assume)-10 <= a, b <=10a is not equal to b(a-b) is never 0

Student submission:
#include<simplecpp>
main_program{
	float a, b, v;
	cin >> a >> b;
	v=((a*a*a*a*a)-(3*a*a*a*a*b)+(4*a*a*b*b*b)-(5*a*b*b*b*b)+(b*b*b*b*b))/(a-b);
	cout << v;
}

Grading criterion: Correctness of Answer
Rating A: Final answer completely correct
Rating B: Individual Terms Calculated correctly but error in final answer, or some other mistake
Rating C: Code completely wrong
Rating D: 0
Assigned grade: A
Problem: Write a C++ program to accept two floating point numbers from the user, a and b, and evaluate the expression and print the result:  (a5 - 3a4b + 4a2b3 - 5ab4 + b5) / (a -b). Print the computed value of the expression

Constraints (Assume)-10 <= a, b <=10a is not equal to b(a-b) is never 0

Student submission:
#include<simplecpp>
main_program
{
	float a,b;
	cin>>a>>b;
	float num = (a*a*a*a*a) - 3*(a*a*a*a)*b + 4*(a*a)*(b*b*b) - 5*a*(b*b*b*b) + (b*b*b*b*b);
	float den = (a-b);

	cout<<(num/den);
}

Grading criterion: Correctness of Answer
Rating A: Final answer completely correct
Rating B: Individual Terms Calculated correctly but error in final answer, or some other mistake
Rating C: Code completely wrong
Rating D: 0
Assigned grade: A
Problem: Write a C++ program to accept two floating point numbers from the user, a and b, and evaluate the expression and print the result:  (a5 - 3a4b + 4a2b3 - 5ab4 + b5) / (a -b). Print the computed value of the expression

Constraints (Assume)-10 <= a, b <=10a is not equal to b(a-b) is never 0

Student submission:
#include<simplecpp>
main_program {
	float a,b,c;
	cin >> a >> b;
	c = ( a*a*a*a*a - 3*a*a*a*a*b + 4*a*a*b*b*b - 5*a*b*b*b*b + b*b*b*b*b) / (a-b);
	cout << c;
}

Grading criterion: Correctness of Answer
Rating A: Final answer completely correct
Rating B: Individual Terms Calculated correctly but error in final answer, or some other mistake
Rating C: Code completely wrong
Rating D: 0
Assigned grade: A
Problem: Write a C++ program to accept two floating point numbers from the user, a and b, and evaluate the expression and print the result:  (a5 - 3a4b + 4a2b3 - 5ab4 + b5) / (a -b). Print the computed value of the expression

Constraints (Assume)-10 <= a, b <=10a is not equal to b(a-b) is never 0

Student submission:
#include <simplecpp>
main_program{
	float a,b;
	cin >> a >> b;
	float d = (a*a*a*a*a - 3*a*a*a*a*b + 4*a*a*b*b*b - 5*a*b*b*b*b + b*b*b*b*b)/(a-b);
		if((-10<=a && a<=10)&&(-10<=b && b<=10)&& (a!=b)){
				cout << d;
}
}

Grading criterion: Correctness of Answer
Rating A: Final answer completely correct
Rating B: Individual Terms Calculated correctly but error in final answer, or some other mistake
Rating C: Code completely wrong
Rating D: 0
Assigned grade: A
Problem: Write a C++ program to accept two floating point numbers from the user, a and b, and evaluate the expression and print the result:  (a5 - 3a4b + 4a2b3 - 5ab4 + b5) / (a -b). Print the computed value of the expression

Constraints (Assume)-10 <= a, b <=10a is not equal to b(a-b) is never 0

Student submission:
#include<simplecpp>
main_program{
float a,b;
cin>>a>>b;
float t;
while(a!=b && a>=-10 && a<=10 && b>=-10 && b<=10){
t=(pow(a,5)-3*pow(a,4)*b+4*a*a*pow(b,3)-5*a*pow(b,4)+pow(b,5))/(a-b);



cout<<t;
break;
}
}

Grading criterion: Correctness of Answer
Rating A: Final answer completely correct
Rating B: Individual Terms Calculated correctly but error in final answer, or some other mistake
Rating C: Code completely wrong
Rating D: 0
Assigned grade: A
Problem: Write a C++ program to accept two floating point numbers from the user, a and b, and evaluate the expression and print the result:  (a5 - 3a4b + 4a2b3 - 5ab4 + b5) / (a -b). Print the computed value of the expression

Constraints (Assume)-10 <= a, b <=10a is not equal to b(a-b) is never 0

Student submission:
#include<simplecpp>
main_program{
    float a, b, c;
    cin >> a;
    cin >> b;
    c = ((a*a*a*a*a)-(3*a*a*a*a*b)+(4*a*a*b*b*b)-(5*a*b*b*b*b)+(b*b*b*b*b))/(a-b);
    cout << c;
}

Grading criterion: Correctness of Answer
Rating A: Final answer completely correct
Rating B: Individual Terms Calculated correctly but error in final answer, or some other mistake
Rating C: Code completely wrong
Rating D: 0
Assigned grade: A
Problem: Write a C++ program to accept two floating point numbers from the user, a and b, and evaluate the expression and print the result:  (a5 - 3a4b + 4a2b3 - 5ab4 + b5) / (a -b). Print the computed value of the expression

Constraints (Assume)-10 <= a, b <=10a is not equal to b(a-b) is never 0

Student submission:
#include<simplecpp>
main_program{
float a,b;
cin>>a>>b;
cout<<((pow(a,5)-(3*pow(a,4)*b)+(4*pow(a,2)*pow(b,3))-(5*a*pow(b,4))+pow(b,5))/(a-b));
}

Grading criterion: Correctness of Answer
Rating A: Final answer completely correct
Rating B: Individual Terms Calculated correctly but error in final answer, or some other mistake
Rating C: Code completely wrong
Rating D: 0
Assigned grade: A
Problem: Write a C++ program to accept two floating point numbers from the user, a and b, and evaluate the expression and print the result:  (a5 - 3a4b + 4a2b3 - 5ab4 + b5) / (a -b). Print the computed value of the expression

Constraints (Assume)-10 <= a, b <=10a is not equal to b(a-b) is never 0

Student submission:
#include <simplecpp>
main_program
{
float a,b;
cin>>a>>b;
while(-10<=a && b<=10 && a!=b && (a-b)!=0){
float out=(pow(a,5)-3*pow(a,4)*b + 4*pow(a,2)*pow(b,3)-5*a*pow(b,4)+pow(b,5))/(a-b);
cout<<out<<endl;
break;
}
}

Grading criterion: Correctness of Answer
Rating A: Final answer completely correct
Rating B: Individual Terms Calculated correctly but error in final answer, or some other mistake
Rating C: Code completely wrong
Rating D: 0
Assigned grade: A
Problem: Write a C++ program to accept two floating point numbers from the user, a and b, and evaluate the expression and print the result:  (a5 - 3a4b + 4a2b3 - 5ab4 + b5) / (a -b). Print the computed value of the expression

Constraints (Assume)-10 <= a, b <=10a is not equal to b(a-b) is never 0

Student submission:
#include<simplecpp>
main_program{
	float a;
	float b;
	cin >> a;
	cin >> b;
	while(true){
		if(a==b){
			break;
		}
		else if(a<-10 || b <-10 || a > 10 || b>10){
			break;
		}
		else{
			cout <<(a*a*a*a*a - 3*a*a*a*a*b +4*a*a*b*b*b -5*a*b*b*b*b + b*b*b*b*b)/(a-b);
			break;
		}
	}
}

Grading criterion: Correctness of Answer
Rating A: Final answer completely correct
Rating B: Individual Terms Calculated correctly but error in final answer, or some other mistake
Rating C: Code completely wrong
Rating D: 0
Assigned grade: A
Problem: Write a C++ program to accept two floating point numbers from the user, a and b, and evaluate the expression and print the result:  (a5 - 3a4b + 4a2b3 - 5ab4 + b5) / (a -b). Print the computed value of the expression

Constraints (Assume)-10 <= a, b <=10a is not equal to b(a-b) is never 0

Student submission:
#include<simplecpp>
main_program{
	double  a;
	double  b;
	cin>>a>>b;

	double Output;
	Output=(pow(a,5) - 3*pow(a,4)*b + 4*pow(a,2)*pow(b,3) - 5*a*pow(b,4) + pow(b,5))/(a-b);

	cout<<Output<<endl;
	}

Grading criterion: Correctness of Answer
Rating A: Final answer completely correct
Rating B: Individual Terms Calculated correctly but error in final answer, or some other mistake
Rating C: Code completely wrong
Rating D: 0
Assigned grade: A
Problem: Write a C++ program to accept two floating point numbers from the user, a and b, and evaluate the expression and print the result:  (a5 - 3a4b + 4a2b3 - 5ab4 + b5) / (a -b). Print the computed value of the expression

Constraints (Assume)-10 <= a, b <=10a is not equal to b(a-b) is never 0

Student submission:
#include<simplecpp>
main_program {
	float a,b,c;
	cin>>a>>b;
	c=(((pow(a,5))-(3*(pow(a,4))*b)+(4*(pow(a,2))*(pow(b,3)))-(5*a*(pow(b,4)))+(pow(b,5)))*1.0)/(a-b);
	cout<<c;
}

Grading criterion: Correctness of Answer
Rating A: Final answer completely correct
Rating B: Individual Terms Calculated correctly but error in final answer, or some other mistake
Rating C: Code completely wrong
Rating D: 0
Assigned grade: A
Problem: Write a C++ program to accept two floating point numbers from the user, a and b, and evaluate the expression and print the result:  (a5 - 3a4b + 4a2b3 - 5ab4 + b5) / (a -b). Print the computed value of the expression

Constraints (Assume)-10 <= a, b <=10a is not equal to b(a-b) is never 0

Student submission:
#include<simplecpp>
main_program{
float a;
float b;
cin >> a >> b;
cout << ( a*a*a*a*a - 3*a*a*a*a*b + 4*a*a*b*b*b - 5*a*b*b*b*b + b*b*b*b*b ) / ( a - b );
}

Grading criterion: Correctness of Answer
Rating A: Final answer completely correct
Rating B: Individual Terms Calculated correctly but error in final answer, or some other mistake
Rating C: Code completely wrong
Rating D: 0
Assigned grade: A
Problem: Write a C++ program to accept two floating point numbers from the user, a and b, and evaluate the expression and print the result:  (a5 - 3a4b + 4a2b3 - 5ab4 + b5) / (a -b). Print the computed value of the expression

Constraints (Assume)-10 <= a, b <=10a is not equal to b(a-b) is never 0

Student submission:
#include<simplecpp>

main_program
{
	float a,b;
	cin>>a>>b;
	float c=((1.0*a*a*a*a*a)-(3.0*a*a*a*a*b)+(4.0*a*a*b*b*b)-(5.0*a*b*b*b*b)+(1.0*b*b*b*b*b))/(a-b);
	cout<<c;
}

Grading criterion: Correctness of Answer
Rating A: Final answer completely correct
Rating B: Individual Terms Calculated correctly but error in final answer, or some other mistake
Rating C: Code completely wrong
Rating D: 0
Assigned grade: A
Problem: Write a C++ program to accept two floating point numbers from the user, a and b, and evaluate the expression and print the result:  (a5 - 3a4b + 4a2b3 - 5ab4 + b5) / (a -b). Print the computed value of the expression

Constraints (Assume)-10 <= a, b <=10a is not equal to b(a-b) is never 0

Student submission:
#include<simplecpp>
main_program{
	float a,b,s,t;
	cin >> a >> b;
	s = ((a*a*a*a*a)-(3*a*a*a*a*b)+(4*a*a*b*b*b)-(5*a*b*b*b*b)+(b*b*b*b*b));
	t = s/(a-b);
	cout << t << endl; 
}

Grading criterion: Correctness of Answer
Rating A: Final answer completely correct
Rating B: Individual Terms Calculated correctly but error in final answer, or some other mistake
Rating C: Code completely wrong
Rating D: 0
Assigned grade: A
Problem: Write a C++ program to accept two floating point numbers from the user, a and b, and evaluate the expression and print the result:  (a5 - 3a4b + 4a2b3 - 5ab4 + b5) / (a -b). Print the computed value of the expression

Constraints (Assume)-10 <= a, b <=10a is not equal to b(a-b) is never 0

Student submission:
#include<simplecpp>
main_program{
	float a,b;
	cin>>a>>b;
	cout<<((a*a*a*a*a)-(3*a*a*a*a*b)+(4*a*a*b*b*b)-(5*a*b*b*b*b)+(b*b*b*b*b))/(a-b);
}

Grading criterion: Correctness of Answer
Rating A: Final answer completely correct
Rating B: Individual Terms Calculated correctly but error in final answer, or some other mistake
Rating C: Code completely wrong
Rating D: 0
Assigned grade: A
Problem: Write a C++ program to accept two floating point numbers from the user, a and b, and evaluate the expression and print the result:  (a5 - 3a4b + 4a2b3 - 5ab4 + b5) / (a -b). Print the computed value of the expression

Constraints (Assume)-10 <= a, b <=10a is not equal to b(a-b) is never 0

Student submission:
#include<simplecpp>
main_program{
float a,b;
cin>>a>>b;
cout<<((a*a*a*a*a)-(3*a*a*a*a*b)+(4*a*a*b*b*b)-(5*a*b*b*b*b)+(b*b*b*b*b))/(a-b);
}
//didnt use pow(a,b) bec it accepts only int values.

Grading criterion: Correctness of Answer
Rating A: Final answer completely correct
Rating B: Individual Terms Calculated correctly but error in final answer, or some other mistake
Rating C: Code completely wrong
Rating D: 0
Assigned grade: A
Problem: Write a C++ program to accept two floating point numbers from the user, a and b, and evaluate the expression and print the result:  (a5 - 3a4b + 4a2b3 - 5ab4 + b5) / (a -b). Print the computed value of the expression

Constraints (Assume)-10 <= a, b <=10a is not equal to b(a-b) is never 0

Student submission:
#include <simplecpp>
main_program{
	float a,b;
	cin >> a  >> b;
	if(((-10<=a)&&(a<=10)&& ((-10<=b)&&(b<=10))&&(a-b != 0))){
		 cout << (a*a*a*a*a-3*a*a*a*a*b+4*a*a*b*b*b-5*b*b*b*b*a+b*b*b*b*b)/(a-b);
	}
}

Grading criterion: Correctness of Answer
Rating A: Final answer completely correct
Rating B: Individual Terms Calculated correctly but error in final answer, or some other mistake
Rating C: Code completely wrong
Rating D: 0
Assigned grade: A
Problem: Write a C++ program to accept two floating point numbers from the user, a and b, and evaluate the expression and print the result:  (a5 - 3a4b + 4a2b3 - 5ab4 + b5) / (a -b). Print the computed value of the expression

Constraints (Assume)-10 <= a, b <=10a is not equal to b(a-b) is never 0

Student submission:
#include<simplecpp>
main_program{
	float a,b;
	cin >> a >> b;
	cout << (a*a*a*a*a - 3*a*a*a*a*b +4*a*a*b*b*b - 5*a*b*b*b*b + b*b*b*b*b)/(a-b);
}

Grading criterion: Correctness of Answer
Rating A: Final answer completely correct
Rating B: Individual Terms Calculated correctly but error in final answer, or some other mistake
Rating C: Code completely wrong
Rating D: 0
Assigned grade: A
Problem: Write a C++ program to accept two floating point numbers from the user, a and b, and evaluate the expression and print the result:  (a5 - 3a4b + 4a2b3 - 5ab4 + b5) / (a -b). Print the computed value of the expression

Constraints (Assume)-10 <= a, b <=10a is not equal to b(a-b) is never 0

Student submission:
#include<simplecpp>
main_program{
    float a;
    float b ;
    cin >> a;
    cin >> b;
    float a;
    float diff =a-b;
    float numerator ;
    float final_value;
    for (int i=1; i++)
    {
        
    }

}

Grading criterion: Correctness of Answer
Rating A: Final answer completely correct
Rating B: Individual Terms Calculated correctly but error in final answer, or some other mistake
Rating C: Code completely wrong
Rating D: 0
Assigned grade: C
Problem: Write a C++ program to accept two floating point numbers from the user, a and b, and evaluate the expression and print the result:  (a5 - 3a4b + 4a2b3 - 5ab4 + b5) / (a -b). Print the computed value of the expression

Constraints (Assume)-10 <= a, b <=10a is not equal to b(a-b) is never 0

Student submission:
#include<simplecpp>
	main_program{
		float a, b, c, d;
		cin>>a>>b;
		c=(pow(a,5)-(3*pow(a,4)*b)+(4*pow(a,2)*pow(b,3))-(5*a*pow(b,4))+pow(b,5));
		d=(a-b);
		cout<<c/d<<endl;}

Grading criterion: Correctness of Answer
Rating A: Final answer completely correct
Rating B: Individual Terms Calculated correctly but error in final answer, or some other mistake
Rating C: Code completely wrong
Rating D: 0
Assigned grade: A
Problem: Write a C++ program to accept two floating point numbers from the user, a and b, and evaluate the expression and print the result:  (a5 - 3a4b + 4a2b3 - 5ab4 + b5) / (a -b). Print the computed value of the expression

Constraints (Assume)-10 <= a, b <=10a is not equal to b(a-b) is never 0

Student submission:
#include <simplecpp>
main_program{
	float a ; 
	float b ; 
	cin>>a>>b;
	float p ;
	float t1 = a*a*a*a*a;
	float t2 = 3*a*a*a*a*b;
	float t3 = 4*a*a*b*b*b;
	float t4 = 5*a*b*b*b*b;
	float t5 = b*b*b*b*b;
	float t6 = a - b ;
	p = (t1 - t2 + t3 -t4 + t5)/(t6);
	cout<<p;}

Grading criterion: Correctness of Answer
Rating A: Final answer completely correct
Rating B: Individual Terms Calculated correctly but error in final answer, or some other mistake
Rating C: Code completely wrong
Rating D: 0
Assigned grade: A
Problem: Write a C++ program to accept two floating point numbers from the user, a and b, and evaluate the expression and print the result:  (a5 - 3a4b + 4a2b3 - 5ab4 + b5) / (a -b). Print the computed value of the expression

Constraints (Assume)-10 <= a, b <=10a is not equal to b(a-b) is never 0

Student submission:
#include <simplecpp>
main_program{
	float a,b;
	cin>>a>>b;
	float c=((a*a*a*a*a)-(3*a*a*a*a*b)+(4*a*a*b*b*b)-(5*a*b*b*b*b)+(b*b*b*b*b))/(a-b);
	cout<<c;
}

Grading criterion: Correctness of Answer
Rating A: Final answer completely correct
Rating B: Individual Terms Calculated correctly but error in final answer, or some other mistake
Rating C: Code completely wrong
Rating D: 0
Assigned grade: A
Problem: Write a C++ program to accept two floating point numbers from the user, a and b, and evaluate the expression and print the result:  (a5 - 3a4b + 4a2b3 - 5ab4 + b5) / (a -b). Print the computed value of the expression

Constraints (Assume)-10 <= a, b <=10a is not equal to b(a-b) is never 0

Student submission:
#include<simplecpp>
main_program{
	float a,result,b;
	cin>>a>>b;
	result=(pow(a,5)-3*pow(a,4)*b+4*a*a*b*b*b-5*a*pow(b,4)+pow(b,5))/(a-b);
	cout<<result<<endl;
}

Grading criterion: Correctness of Answer
Rating A: Final answer completely correct
Rating B: Individual Terms Calculated correctly but error in final answer, or some other mistake
Rating C: Code completely wrong
Rating D: 0
Assigned grade: A