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(){
      double a,b;
      cin>>a>>b;
      double c,d;
      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);

double e=c/d;
cout<<e<<endl;


}

Grading criterion: Quality and number of comments
Rating A: Well Commented and Formatted
Rating B: Ok Commented or Ok Formatted
Rating C: Poor Comments and Formatting
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;



	
}

Grading criterion: Quality and number of comments
Rating A: Well Commented and Formatted
Rating B: Ok Commented or Ok Formatted
Rating C: Poor Comments and Formatting
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<iostream>
using namespace std;
int main()
{
float a, b , exp;
cin>>a>>b;

if(a!=b && a>=-10 && b<=10)
{
       	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;
}

else
{
    cout<<" ";
}

}

Grading criterion: Quality and number of comments
Rating A: Well Commented and Formatted
Rating B: Ok Commented or Ok Formatted
Rating C: Poor Comments and Formatting
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<iostream>
using namespace std;
int main(){
	float  a,b,s,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;
	s=x/y;
	cout<<s;
}

Grading criterion: Quality and number of comments
Rating A: Well Commented and Formatted
Rating B: Ok Commented or Ok Formatted
Rating C: Poor Comments and Formatting
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,r,sum;
	cin>>a>>b;
	r=a/b;
	cout<<r<<endl;
	sum=(((r*r*r*r*r)-(3*r*r*r*r)+(4*r*r)-(5*r)+1)/(r-1))*b*b*b*b;
	cout<<sum<<endl;
}

Grading criterion: Quality and number of comments
Rating A: Well Commented and Formatted
Rating B: Ok Commented or Ok Formatted
Rating C: Poor Comments and Formatting
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;
	float b;
	cin >> a >> b;
	float SUM;

	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: Quality and number of comments
Rating A: Well Commented and Formatted
Rating B: Ok Commented or Ok Formatted
Rating C: Poor Comments and Formatting
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;
        float b;
        float 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: Quality and number of comments
Rating A: Well Commented and Formatted
Rating B: Ok Commented or Ok Formatted
Rating C: Poor Comments and Formatting
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, result;
	cin >> a >> b;
	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);
	cout << result << endl;
}

Grading criterion: Quality and number of comments
Rating A: Well Commented and Formatted
Rating B: Ok Commented or Ok Formatted
Rating C: Poor Comments and Formatting
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 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: Quality and number of comments
Rating A: Well Commented and Formatted
Rating B: Ok Commented or Ok Formatted
Rating C: Poor Comments and Formatting
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);

    float low = a-b;

    if(-10<= a && a<= 10 && b<=10 && -10<=b){
        if(low != 0){
            float result = sum/low;
            cout << result<<endl;
        }
    }
}

Grading criterion: Quality and number of comments
Rating A: Well Commented and Formatted
Rating B: Ok Commented or Ok Formatted
Rating C: Poor Comments and Formatting
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 num = i
              i = (a,b);
              cin>>(<=-10);
              cin>>(<=10);
              cout<<(a,b);
          cin>>(-10<= <=10);
           cout<<(a is not equal);
}

Grading criterion: Quality and number of comments
Rating A: Well Commented and Formatted
Rating B: Ok Commented or Ok Formatted
Rating C: Poor Comments and Formatting
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;
	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 and number of comments
Rating A: Well Commented and Formatted
Rating B: Ok Commented or Ok Formatted
Rating C: Poor Comments and Formatting
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 c = a*a*a*a*a;
	float d = b*b*b*b*b;
        float e = a*a*a*a;
	float f = b*b*b*b;
        float g = a*a;
	float h = b*b*b;
        cout << (c-(3*e*b)+(4*g*h)-(5*a*f)+d)/(a-b);
}

Grading criterion: Quality and number of comments
Rating A: Well Commented and Formatted
Rating B: Ok Commented or Ok Formatted
Rating C: Poor Comments and Formatting
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;
	float 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 and number of comments
Rating A: Well Commented and Formatted
Rating B: Ok Commented or Ok Formatted
Rating C: Poor Comments and Formatting
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 t1,t2,t3;
t1=pow(a,5)-(3*(pow(a,4))*b)+(4*pow(a,2)*pow(b,3))-(5*a*pow(b,4))+pow(b,5);
t2=a-b;
t3=t1/t2;
cout<<endl<<t3;


}

Grading criterion: Quality and number of comments
Rating A: Well Commented and Formatted
Rating B: Ok Commented or Ok Formatted
Rating C: Poor Comments and Formatting
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 ,sum;
	cin>>a;
	cin>>b;
       
	if( (a==-10 || a > -10)  &&  (b==10 || b< 10)) {
	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 ;
	}
	else if (a==b) {
		cout<<" wrong input";

}
else
cout<< "wrong input";
}

Grading criterion: Quality and number of comments
Rating A: Well Commented and Formatted
Rating B: Ok Commented or Ok Formatted
Rating C: Poor Comments and Formatting
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,res;
	cin>>a>>b;
	if(a<=10 && b<=10 && a>=-10 && b>=-10 && a!=b){
		res=(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<<res;
		}


}

Grading criterion: Quality and number of comments
Rating A: Well Commented and Formatted
Rating B: Ok Commented or Ok Formatted
Rating C: Poor Comments and Formatting
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;
    cin >> a >> b;
    float 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 << endl;
}

Grading criterion: Quality and number of comments
Rating A: Well Commented and Formatted
Rating B: Ok Commented or Ok Formatted
Rating C: Poor Comments and Formatting
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,ans;
	cin>>a>>b;
	if(a>=-10 && b<=10 && a!=b){
		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: Quality and number of comments
Rating A: Well Commented and Formatted
Rating B: Ok Commented or Ok Formatted
Rating C: Poor Comments and Formatting
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;
	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)-(5*a*b*b*b*b)+(b*b*b*b*b)
	;	j=a-b;
		cout<<k/j<<"\n";
	}
	else
		cout<<"\n";
}

Grading criterion: Quality and number of comments
Rating A: Well Commented and Formatted
Rating B: Ok Commented or Ok Formatted
Rating C: Poor Comments and Formatting
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;
	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: Quality and number of comments
Rating A: Well Commented and Formatted
Rating B: Ok Commented or Ok Formatted
Rating C: Poor Comments and Formatting
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;
	cin >> a >> b;
	float c;

		float m=pow(a,5)-3*b*pow(a,4)+4*a*a*b*b*b-5*a*pow(b,4)+pow(b,5);
		float n=a-b;
		if(a==b){
			cout << endl;
		}
		else{
			c=m/n;
		}
		cout << c;

}

Grading criterion: Quality and number of comments
Rating A: Well Commented and Formatted
Rating B: Ok Commented or Ok Formatted
Rating C: Poor Comments and Formatting
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;
	float k,j;
	cin>>a>>b;
	(a=b);
	{
	
		k=(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);

		j=a-b;
		cout<<k/j<<"/n";
	}
}

Grading criterion: Quality and number of comments
Rating A: Well Commented and Formatted
Rating B: Ok Commented or Ok Formatted
Rating C: Poor Comments and Formatting
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 ;
	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: Quality and number of comments
Rating A: Well Commented and Formatted
Rating B: Ok Commented or Ok Formatted
Rating C: Poor Comments and Formatting
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;
    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: Quality and number of comments
Rating A: Well Commented and Formatted
Rating B: Ok Commented or Ok Formatted
Rating C: Poor Comments and Formatting
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;
	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: Quality and number of comments
Rating A: Well Commented and Formatted
Rating B: Ok Commented or Ok Formatted
Rating C: Poor Comments and Formatting
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;
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: Quality and number of comments
Rating A: Well Commented and Formatted
Rating B: Ok Commented or Ok Formatted
Rating C: Poor Comments and Formatting
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>
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: Quality and number of comments
Rating A: Well Commented and Formatted
Rating B: Ok Commented or Ok Formatted
Rating C: Poor Comments and Formatting
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 = 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: Quality and number of comments
Rating A: Well Commented and Formatted
Rating B: Ok Commented or Ok Formatted
Rating C: Poor Comments and Formatting
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;
	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 and number of comments
Rating A: Well Commented and Formatted
Rating B: Ok Commented or Ok Formatted
Rating C: Poor Comments and Formatting
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;
	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: Quality and number of comments
Rating A: Well Commented and Formatted
Rating B: Ok Commented or Ok Formatted
Rating C: Poor Comments and Formatting
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;
	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: Quality and number of comments
Rating A: Well Commented and Formatted
Rating B: Ok Commented or Ok Formatted
Rating C: Poor Comments and Formatting
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,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: Quality and number of comments
Rating A: Well Commented and Formatted
Rating B: Ok Commented or Ok Formatted
Rating C: Poor Comments and Formatting
Rating D: 0
Assigned grade: C