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>
int main(){
long double  w,e,a,b,c,x,y,m,n,o,t,z;
cin>>a>>b;
x=pow(a,5);
y=pow(a,4);
z=pow(a,2);
m=pow(b,3);
n=pow(b,4);
o=pow(b,5);

t=x-(3*y*b)+(4*z*m)-(5*a*n)+o;
w=a-b;
e=t/w;
cout<<e;
}

Grading criterion: Quality of Variable Names
Rating A: Good variable names
Rating B: Ok Variable Name
Rating C: Poor Variable Names
Rating D: 0
Assigned grade: B
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 sum ;
	sum = pow(a,5)-3*pow(a,4)*b+4*a*a*pow(b,3)-5*a*b*b*b*b+pow(b,5);
	float dif = a-b;
	float res = sum/dif;
	cout<<res;
    

}

Grading criterion: Quality of Variable Names
Rating A: Good variable names
Rating B: Ok Variable Name
Rating C: Poor Variable Names
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 ( a >= -10 && a <= 10 && b >= -10 && b <= 10 && 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: Quality of Variable Names
Rating A: Good variable names
Rating B: Ok Variable Name
Rating C: Poor Variable Names
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;cin >> 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: Quality of Variable Names
Rating A: Good variable names
Rating B: Ok Variable Name
Rating C: Poor Variable Names
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 x;
	x=(pow(a,5)-3*pow(a,4)*b+4*a*a*b*b*b-5*a*b*b*b*b+pow(b,5))/(a-b);
	cout<<x;
}

Grading criterion: Quality of Variable Names
Rating A: Good variable names
Rating B: Ok Variable Name
Rating C: Poor Variable Names
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= (pow(a,4)-2*pow(a,3)*b-2*pow(a,2)*pow(b,2)+2*a*pow(b,3)-3*pow(b,4)-2*pow(b,5)/(a-b));			  
 
 cout<<c<<endl;
		  }

Grading criterion: Quality of Variable Names
Rating A: Good variable names
Rating B: Ok Variable Name
Rating C: Poor Variable Names
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: Quality of Variable Names
Rating A: Good variable names
Rating B: Ok Variable Name
Rating C: Poor Variable Names
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: Quality of Variable Names
Rating A: Good variable names
Rating B: Ok Variable Name
Rating C: Poor Variable Names
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: Quality of Variable Names
Rating A: Good variable names
Rating B: Ok Variable Name
Rating C: Poor Variable Names
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{
	int a,b;
	cin >> a >> b;
	float p,q;
	p=pow(a,5)-(3*pow(a,4)*b)+(4*pow(a,2)*pow(b,4))-(5*a*pow(b,4))+pow(b,5);
	q=(a-b);
	if(q!=0  && a!=b)
	cout<< p/q << endl;
}

Grading criterion: Quality of Variable Names
Rating A: Good variable names
Rating B: Ok Variable Name
Rating C: Poor Variable Names
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,num;
	cin<<a<<b;
	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)/(a-b);
	cout<<num/(a-b);
}

Grading criterion: Quality of Variable Names
Rating A: Good variable names
Rating B: Ok Variable Name
Rating C: Poor Variable Names
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: Quality of Variable Names
Rating A: Good variable names
Rating B: Ok Variable Name
Rating C: Poor Variable Names
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 a5 = a * a * a * a * a;
	float a4 = a * a * a * a;
	float a2 = a * a;

	float b5 = b * b * b * b * b;
	float b4 = b * b * b * b;
	float b3 = b * b * b;

	cout << (a5 - (3 * a4 * b) + (4 * a2 * b3) - (5 * a * b4) + b5) / (a - b);
}

Grading criterion: Quality of Variable Names
Rating A: Good variable names
Rating B: Ok Variable Name
Rating C: Poor Variable Names
Rating D: 0
Assigned grade: B
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;
	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: Quality of Variable Names
Rating A: Good variable names
Rating B: Ok Variable Name
Rating C: Poor Variable Names
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( a!=b &&-10<=a && b<=10){
	       cout<<((a*a*a*a*a) -(3*a*a*a*a) + (4*a*a*b*b*b) - (5*a*b*b*b*b)+ (b*b*b*b*b))/(a-b)
		       	       
;}
}

Grading criterion: Quality of Variable Names
Rating A: Good variable names
Rating B: Ok Variable Name
Rating C: Poor Variable Names
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<iostream>
using namespace std;
int main()
	{
		float  a,b;
		cin>>a>>b;
		if(a>=-10 && b>=-10 && a<=10 && b<=10 && (a-b)!=0)
		{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: Quality of Variable Names
Rating A: Good variable names
Rating B: Ok Variable Name
Rating C: Poor Variable Names
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,n;
cin>>a>>b;
n=((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<<n;
}

Grading criterion: Quality of Variable Names
Rating A: Good variable names
Rating B: Ok Variable Name
Rating C: Poor Variable Names
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 exp1;
	float exp2;
	if((-10<=a && a<=10) && (-10<=b && b<=10) && (a!=b)){
		exp1=(pow(a,5) - 3*pow(a,4)*b + 4*pow(a,2)*pow(b,3) - 5*a*pow(b,4) + pow(b,5));
		exp2=(a-b);
		cout<<exp1/exp2;
	}
	else cout<<" " ;
}

Grading criterion: Quality of Variable Names
Rating A: Good variable names
Rating B: Ok Variable Name
Rating C: Poor Variable Names
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 ;
	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) ;
	d = a-b ;
	cout << c/d ;


}

Grading criterion: Correct I/O incl. Format
Rating A: I/O Handled correctly
Rating B: Error in I/O
Rating C: 0
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 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: Correct I/O incl. Format
Rating A: I/O Handled correctly
Rating B: Error in I/O
Rating C: 0
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*a*a*a*a*b+4*a*a*b*b*b-5*a*b*b*b*b+b*b*b*b*b;
	y=a-b;
	cout<<x/y;
}

Grading criterion: Correct I/O incl. Format
Rating A: I/O Handled correctly
Rating B: Error in I/O
Rating C: 0
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;
	double 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)))/(a-b);
		cout << c;}

Grading criterion: Correct I/O incl. Format
Rating A: I/O Handled correctly
Rating B: Error in I/O
Rating C: 0
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)*(1.0)/(a-b);
	if ((a>= -10) && (a<=10) && (b>= -10) && (b<=10)){
		cout << c ;
	}
}

Grading criterion: Correct I/O incl. Format
Rating A: I/O Handled correctly
Rating B: Error in I/O
Rating C: 0
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 num1=(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 num2=(a-b);
	float value=num1/num2;
	cout<<value;
}

Grading criterion: Correct I/O incl. Format
Rating A: I/O Handled correctly
Rating B: Error in I/O
Rating C: 0
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 x,a,b;
	cin>>a>>b;
	if (a!=b){
x=a*a*a*a*a;
x=x-a*a*a*a*b*3;
x= x+ 4*a*a*b*b*b;
x= x-5*a*b*b*b*b;
x= x+b*b*b*b*b;
x=x/(a-b);
	}

cout<<x;
}

// x+4*ai*a*

Grading criterion: Correct I/O incl. Format
Rating A: I/O Handled correctly
Rating B: Error in I/O
Rating C: 0
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: Correct I/O incl. Format
Rating A: I/O Handled correctly
Rating B: Error in I/O
Rating C: 0
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 y;
y=(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<<y<<endl;
}

Grading criterion: Correct I/O incl. Format
Rating A: I/O Handled correctly
Rating B: Error in I/O
Rating C: 0
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: Correct I/O incl. Format
Rating A: I/O Handled correctly
Rating B: Error in I/O
Rating C: 0
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;
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: Correct I/O incl. Format
Rating A: I/O Handled correctly
Rating B: Error in I/O
Rating C: 0
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: Correct I/O incl. Format
Rating A: I/O Handled correctly
Rating B: Error in I/O
Rating C: 0
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: Correct I/O incl. Format
Rating A: I/O Handled correctly
Rating B: Error in I/O
Rating C: 0
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: Correct I/O incl. Format
Rating A: I/O Handled correctly
Rating B: Error in I/O
Rating C: 0
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: Correct I/O incl. Format
Rating A: I/O Handled correctly
Rating B: Error in I/O
Rating C: 0
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: Correct I/O incl. Format
Rating A: I/O Handled correctly
Rating B: Error in I/O
Rating C: 0
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: Correct I/O incl. Format
Rating A: I/O Handled correctly
Rating B: Error in I/O
Rating C: 0
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: Correct I/O incl. Format
Rating A: I/O Handled correctly
Rating B: Error in I/O
Rating C: 0
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: Correct I/O incl. Format
Rating A: I/O Handled correctly
Rating B: Error in I/O
Rating C: 0
Rating D: 0
Assigned grade: A