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 ;
	float 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: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
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;
    float b;
    cin >> a;
    cin >> b;
    float afive=1;
    float bfive=1;
    float afour=1;
    float bfour=1;
    float atwo=1;
    float bthree=1;
    float diff = a-b;
    float numerator;
    float final_value;
    for(int i = 1;i<=5;i++)
    {
        afive=afive*a;
        bfive=bfive*b;

    }
    for(int j = 1;j<=4;j++)
    {
        afour=afour*a;
        bfour=bfour*b;
    }
    for(int k=1;k<=3;k++)
    {
        bthree=bthree*b;
    }
    for(int p=1;p<=2;p++)
    {
        atwo=atwo*a;
    }
    numerator = afive - (3*afour*b) + (4*atwo*bthree) - (5*a*bfour) + (bfive);
    final_value = numerator/diff;
    cout << final_value;

    

}

Grading criterion: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
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,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: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
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;
if((a>=-10) && (b<=10) && (a!=b)){
double sum=0;
sum=((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<<sum;
}
}

Grading criterion: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
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>
using namespace std;

int main(){
	float a, b;
        cin>>a>>b;
	
	float a5=1, b5=1, a4=1, b4=1, b3=1;;

	repeat(5){
		a5*=a;
		b5*=b;
	}
	repeat(4){
		a4*=a;
		b4*=b;
	}
	repeat(3){
		b3*=b;
	}
	
	float nume= a5 -3*a4*b +4*a*a*b3 -5*a*b4 +b5;

	cout<< nume/(a-b);

}

Grading criterion: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
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,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: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
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;
	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: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
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=(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<<sum;
}

Grading criterion: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
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,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: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
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,num,deno;
	cin>>a>>b;
	num=(pow(a,5)-3*pow(a,4)*b+4*a*a*b*b*b-5*a*pow(b,4)+pow(b,5));
	deno=a-b;
	cout<<num/deno;
}

Grading criterion: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
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;
	
	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)<<endl;
}

Grading criterion: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
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 x,y, num;
	 cin>>x>>y;
 num= ( x*x*x*x*x  = 3*x*x*x*x*y + 4*x*x*y*y*y -5*x*y*y*y*y + y*y*y*y*y);
 cout<<num/(x-y);
}

Grading criterion: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
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;
	float k,j;
	cin>>a>>b;
	if(a!=b)
	{
		k=(a+a+a+a+a)-(3+a+a+a+a+b)+(4+a+a+b+b+b)+(b+b+b+b+b);
		j=a-b;
		cout<<k/j<<"/n";
	}
}

Grading criterion: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
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;
	if ((a!=b)&&((a-b)!=0)&&(-10<=a)&&(a<=10)&&(-10<=b)&&(b<=10))
	{
		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));
	}
	else {cout<<"INVALID";}
}

Grading criterion: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
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>
int main(){
	float a=0.0;
	float b=0.0;
	(a>=-10);
	(b<=10);
	(a-b!=0);
	cin>>a>>b;
	double result=0.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);
	print result;
}

Grading criterion: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
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{
	int a;
	int b;
	int c;
	cin>>a>>b;
	for (a>-10)&&(b>10)&&(a!=b)&&(a-b!=0);{

		c=(pow(a,5)-3pow(a,4)b)+(4pow(a,2)pow(b,3)-5apow(b,4))/(a-b);
		cout<<c<<" ";
	}
		

}

Grading criterion: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
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 , x;
	cin>>a;
	cin>>b;

	x = (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<< x;
}

Grading criterion: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
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;
if((a>=-10)&&(a<=10)&&(b>=-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);}
else(cout<<"INVALID");
}

Grading criterion: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
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;
	float b;
	cin >> a >> b;
	double 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);

         if ( a == b ) {
	 }
	 else if ( (-10 <= a && a <= 10) && (-10 <= b && b <= 10)){
	      cout << c;
       }
}

Grading criterion: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
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, y;
	cin >> a>>b;
	y=((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<< y;
}

Grading criterion: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
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;
	float b;
	cin >> a >> b;
	float num = (pow(a,5) - (3*(pow(a,4))*b) + (4*a*a*b*b*b) - (5*a*(pow(b,4))) + pow(b,5));
	float den = a-b;
	float sol = num/den;
	cout << sol << endl;
}

Grading criterion: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
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 s;
	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))/(a-b);
	cout<<s;
}

Grading criterion: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
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 ex = ( 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 << ex << endl; 















}

Grading criterion: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
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{
double a,b,x,y,z,w,v;
cin>>a>>b;
x = pow(a,5);
y = 3*pow(a,4)*b;
z = 4*pow(a,2)*pow(b,3);
w = 5*pow(b,4)*a;
v = pow(b,5);
cout<<(x-y+z-w+v)/(a-b);
}

Grading criterion: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
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 ans = (((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 << ans;
}

Grading criterion: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
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,p;
cin>>a>>b;

if(-10<=a && b<=10 && a!=b){

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

cout<<p;
}

}

Grading criterion: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
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{
	int a,b,c,d;
	cin>>num
		int a = -10
		int b = 10
		
		float = 251.5
}

Grading criterion: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
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;
	
	if(a>=-10 && b<=10 && a!=b){

		float aPfv=a*a*a*a*a;
		float bPfv=b*b*b*b*b;
		float aPfu=a*a*a*a;
		float bPfu=b*b*b*b;
		float bPth=b*b*b;
		float aPtw=a*a;

		float D=(a-b);
		float N=(aPfv- 3*aPfu*b+ 4*aPtw*bPth- 5*a*bPfu+ bPfv);

		float ans= N/D ;

		cout<<ans;
	}
}

Grading criterion: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
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;//accepting two numbers a and 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));//computing the numerator, can also use pow(x,y) function
	float den=a-b;//computing the denominator

	float res=num/den;//finding the final result

	cout<<res;//printing out the result
}

Grading criterion: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
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;
double c=((pow(a,5))-(3*pow(a,4)*b)+(4*pow(a,2)*pow(b,3))-(5*a*pow(b,4))+(pow(b,5)));
float d=a-b;
double f=c/d;
cout<<f;



}

Grading criterion: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
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>
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: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
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: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
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;
	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: E.g. Use of functions beyond what was instructed or any other code quality
Rating A: Modularity, Extra Functions Defined
Rating B: No Extra Things
Rating C: 0
Rating D: 0
Assigned grade: B