CodeGraderBench/CodeGraderBench huggingface dataset:
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{
	float input;
	cin>>input;
	float x0=input;
	float x1;
	repeat(1000){
		x1=(x0+float(input)/x0)/2;
		x0=x1;
	}
	cout<<fixed;
	cout.precision(3);
	cout<<x1<<endl;
}

Grading criterion: Placeholder for penalty to be given for any reason
Rating A: Maximum penalty
Rating B: no penalty
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program
{
	float x,n;
	cin>>x;
	n=x;
	for(int i=1;i<=100;i++)
	{
		x=(x+(n/x))/2;
	}
	cout<<fixed;
	cout.precision(3);
	cout<<x;
}

Grading criterion: Placeholder for penalty to be given for any reason
Rating A: Maximum penalty
Rating B: no penalty
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{
	float input_number;
	float x;
	cin>>input_number;
	x=input_number;
	for(int i=1;i<100;i++)
	{	x=(x+(input_number/x))/2;
	}
	cout<<fixed;
	cout.precision(3);
	
	cout<< x<<endl;
	
}

Grading criterion: Placeholder for penalty to be given for any reason
Rating A: Maximum penalty
Rating B: no penalty
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{
	int n;
	cin>>n;
	float x=n;
	while(x>=sqrt(n))
	{
		x= (x + n/x)/2;
	}
	cout << fixed;
	cout.precision(3);
	cout<<x;
}

Grading criterion: Placeholder for penalty to be given for any reason
Rating A: Maximum penalty
Rating B: no penalty
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include <simplecpp>
main_program{
	double x,input_number;
	cin>>input_number;
	x=input_number;
	repeat(10000){
	x=(x+(input_number/x))/2;
	}
	cout<<fixed;
	cout.precision(3);
	cout<<x<<endl;
}

Grading criterion: Placeholder for penalty to be given for any reason
Rating A: Maximum penalty
Rating B: no penalty
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{
	float a,b;
	cin>>a;
	b=a;
	while (a*a-b>=0.0001){
		a=(a+(b/a))/2;
	}
	cout<<fixed;
	cout.precision(3);
	cout<<a;
}

Grading criterion: Placeholder for penalty to be given for any reason
Rating A: Maximum penalty
Rating B: no penalty
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program
{
	float input_number;
	cin >> input_number;
	float x = input_number;
	repeat(100)
	{
        x = (x + input_number/x)/2;
	}
        cout << fixed;
	cout.precision(3);
	cout << x;
}

Grading criterion: Placeholder for penalty to be given for any reason
Rating A: Maximum penalty
Rating B: no penalty
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{
	float input_number;
	cin>>input_number;
	float x=input_number;
	for(int i=0;i<100000;i++){
		x=(x+input_number/x)/2.0;
	}
	cout<<fixed;
	cout.precision(3);
	cout<<x<<endl;
}

Grading criterion: Placeholder for penalty to be given for any reason
Rating A: Maximum penalty
Rating B: no penalty
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{
	float input_number;
	cin >> input_number;
	float x = input_number;
	repeat(100){
		x = (x + input_number/x)/2;
	 }
	cout << fixed;
	cout.precision(3); 
	cout << x << endl;
}

Grading criterion: Placeholder for penalty to be given for any reason
Rating A: Maximum penalty
Rating B: no penalty
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>

main_program{
	int n;
	 double x;
         cin>>n;
	 x=n;

	 while(x*x-n>0.0001){
		 x=(x+1)/2;



              

	 }
	cout<<fixed;
	cout.precision(3);
        cout<<x;


}

Grading criterion: Placeholder for penalty to be given for any reason
Rating A: Maximum penalty
Rating B: no penalty
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>

int main(){
 float input_number, guess;
 cin >> input_number;
 guess= input_number;
 for(int i=0; i<=100; i++){
  guess= (guess + input_number/guess)/2;
 }
 cout << fixed; cout.precision(3);cout << guess;
}

Grading criterion: Placeholder for penalty to be given for any reason
Rating A: Maximum penalty
Rating B: no penalty
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{
	
	float a;
	cin>>a;
	for(float x=a,root;x>0;x--){
		root=(x+a/x)/2;
if( x*root=a) break;
	


	cout<<fixed;
	cout.precision(3);
	cout<<root;}

}

Grading criterion: Placeholder for penalty to be given for any reason
Rating A: Maximum penalty
Rating B: no penalty
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{
	double input_number;
	cin>> input_number;
	double x=2;
	long int n=1000000;
	int i=0;
	while(i<n){
		x=(x+(input_number)/x)/2;
		i=i+1;
	}
	cout<<fixed;
	cout.precision(3);
	cout<<x;
}

Grading criterion: Placeholder for penalty to be given for any reason
Rating A: Maximum penalty
Rating B: no penalty
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program
{
	float a,b;
	b=1;
	cin>>a;
	while (abs(b*b - a)>0.0001)
	{
		b=0.5*(b+(a/b));
	}
	cout<<fixed;
	cout.precision(3);
	cout<<b;
}

Grading criterion: Placeholder for penalty to be given for any reason
Rating A: Maximum penalty
Rating B: no penalty
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{
	float x,n;
	cin >> n;
	x=n;
	float y;
	repeat(10){
		y=(x+n/x)/2;
		x=y;
	}
	cout<<fixed;
	cout.precision(3);
	cout<<y<<endl;
}

Grading criterion: Placeholder for penalty to be given for any reason
Rating A: Maximum penalty
Rating B: no penalty
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{
	float n;
	cin>>n;
	float x=n;
	repeat(100){
		x=(x+n/x)/2;
	}
	cout<<fixed;
	cout.precision(3);
	cout<<x<<endl;
}

Grading criterion: Placeholder for penalty to be given for any reason
Rating A: Maximum penalty
Rating B: no penalty
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{
	float  x,input_number;
	cin>>input_number;
	x=input_number;
	repeat(1000000000){
		
		x = (x+input_number)/(2*x);
		
	}
	cout.precision(3);	
	cout<<x<<endl;
	
}

Grading criterion: Placeholder for penalty to be given for any reason
Rating A: Maximum penalty
Rating B: no penalty
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{
	float n;
	cin>>n;
	float x=n;
	for(;x*x-n>0;)
	{
		x=(x+n/x)/2;
	}
	cout<<fixed;
	cout.precision(3);
	cout<<x;

}

Grading criterion: Placeholder for penalty to be given for any reason
Rating A: Maximum penalty
Rating B: no penalty
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{
	float input_number;
	cin>> input_number;
	float y=0,x=input_number;
	repeat(100){
		y=(x+(input_number/x))/2;
		x=y;
	}
	cout<<fixed;
	cout.precision(3);
	cout<< x<<endl;
}

Grading criterion: Placeholder for penalty to be given for any reason
Rating A: Maximum penalty
Rating B: no penalty
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include <simplecpp>
main_program{

	float x;
        cin>>x;
        float i=x;
	float term;

	repeat(10){
	      
	        term=(i+x/i)/2;
	        i++;	
	}
	cout <<"ans"<<term<<endl;
}

Grading criterion: Placeholder for penalty to be given for any reason
Rating A: Maximum penalty
Rating B: no penalty
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{
	double x,x1;
	cin>>x;
	x1=x;
	while(x*x>x1){
		x=(x+x1/x)/2;
	}
	cout<<fixed;
	cout.precision(3);
	cout<<x;
}

Grading criterion: Placeholder for penalty to be given for any reason
Rating A: Maximum penalty
Rating B: no penalty
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{
	float i;
	cin>>i;
	float x=i;
	repeat(10000000){
		x=(x+i/x)/2;
	}
	repeat(10000000){
		x=(x+i/x)/2;
	}
	cout<<fixed;
	cout.precision(3);
	cout<<x;
}

Grading criterion: Placeholder for penalty to be given for any reason
Rating A: Maximum penalty
Rating B: no penalty
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{
	float num,x;
	cin>>num;
	x=0;
	while((x*x-num)<=0){
		x=x+1;
	}
	x=x-1;
	while((x*x-num)<=0){
		x=x+0.1;
	}
	x=x-0.1;
	float x1,x2,x3;
	x1=x-(x*x-num)/(2*x);
	x2=x1-(x1*x1-num)/(2*x1);
	x3=x2-(x2*x2-num)/(2*x2);
	cout<<fixed;
	cout.precision(3);
	cout<<x3;
}

Grading criterion: Placeholder for penalty to be given for any reason
Rating A: Maximum penalty
Rating B: no penalty
Rating C: 0
Rating D: 0
Assigned grade: A
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{
	float input_number;
	float x;	
	cin>>input_number;
	x=input_number;
	repeat(100){
		x=(x+input_number/x)/2;
	}
	
	cout<<fixed;
	cout.precision(3);
	cout<<x<<endl;
}

Grading criterion: Placeholder for penalty to be given for any reason
Rating A: Maximum penalty
Rating B: no penalty
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{
	double input_number,x,temp,delta;
	delta=0.001;
	cin>> input_number;
	temp=input_number;
	x=input_number;
	while(x*x-input_number>delta){
		x=(temp+input_number/temp)/2;
		temp=x;
	}
	cout<<fixed;
	cout.precision(3);
	cout<< x<<endl;
}

Grading criterion: Placeholder for penalty to be given for any reason
Rating A: Maximum penalty
Rating B: no penalty
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include <simplecpp>
main_program
{
	float n,x;
	cin >> x;
	n=x;
	repeat(1000)
	{
		n = (n+(x/n))/2;
	}
	cout << fixed;
	cout.precision(3);
	cout << n;
}

Grading criterion: Placeholder for penalty to be given for any reason
Rating A: Maximum penalty
Rating B: no penalty
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{
	float input_number;
	cin>>input_number;
        float I=input_number;
	float x,xl,xr;
	if(x>I){
        xl=(x+I/x)/2;
		else xr=(x+I/x)/2;		
	}
	cout<<fixed;
	cout.precision(3);
	cout<<sqrt(I);
}

Grading criterion: Placeholder for extra marks to be given for any reason
Rating A: Modularity, Extra Functions Defined, some corrective marks for failed testcases
Rating B: No reason for extra marks
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{
	float y,x1,x;
	// y is input that is the number whose square root we want to fine
	// x1 is estimated input;
	// x is square root of input that is y
	cin>>y;
	x1=1;
	repeat (20){
		x=(x1+(y/x1))/2;
		x1=x1+0.02;
	
	}
	cout<<x<<endl;
	cout<<fixed;
	cout.precision(3);
}

Grading criterion: Placeholder for extra marks to be given for any reason
Rating A: Modularity, Extra Functions Defined, some corrective marks for failed testcases
Rating B: No reason for extra marks
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include <simplecpp>
main_program
{
	double epsilon=2.00300E-23;
	float x;
	cin >>x;
	float r=x;
	while(r*r-x>epsilon)
	{
		r=(r+x/r)*0.5;
	}
	cout <<fixed;
	cout.precision(3);
	cout <<r;

}

Grading criterion: Placeholder for extra marks to be given for any reason
Rating A: Modularity, Extra Functions Defined, some corrective marks for failed testcases
Rating B: No reason for extra marks
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{
	float i;
	cin>>i;
	float x;
	x=1;
	float t;
	repeat(1000){
		t=(x+(i/x))/2;
		x=t;
	}
	cout<<fixed;
	cout.precision(3);
	cout<<t;
}

Grading criterion: Placeholder for extra marks to be given for any reason
Rating A: Modularity, Extra Functions Defined, some corrective marks for failed testcases
Rating B: No reason for extra marks
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{
	float input_number=0; cin>>input_number;
	float x = input_number;
	repeat(1000){
		x = (x + input_number / x) / 2;
	}

	cout << fixed; // uses fixed floating point representation
	cout.precision(3); // print two digits after the decimal point
	cout<<x<<endl;
}

Grading criterion: Placeholder for extra marks to be given for any reason
Rating A: Modularity, Extra Functions Defined, some corrective marks for failed testcases
Rating B: No reason for extra marks
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{
	float input_number,x;
	cin >> input_number;
	x=input_number;
	repeat(10000){
		x=(x+(input_number/x))/2;
	}
	cout << fixed;
	cout.precision(3);
	cout<< x <<endl;
}

Grading criterion: Placeholder for extra marks to be given for any reason
Rating A: Modularity, Extra Functions Defined, some corrective marks for failed testcases
Rating B: No reason for extra marks
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{
	float n;
	cin>>n;
	float x =n;
	repeat(10){
	x = (x +n/x)/2;
	}
	cout<<fixed;
	cout.precision(3);
	cout<<x<<endl;
}

Grading criterion: Placeholder for extra marks to be given for any reason
Rating A: Modularity, Extra Functions Defined, some corrective marks for failed testcases
Rating B: No reason for extra marks
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{
       	float x;
	cin>>x;
	int input_number=(x)^0.5;
	cout<<input_number;
}

Grading criterion: Placeholder for extra marks to be given for any reason
Rating A: Modularity, Extra Functions Defined, some corrective marks for failed testcases
Rating B: No reason for extra marks
Rating C: 0
Rating D: 0
Assigned grade: B
Problem: Write a C++ program that implements the Babylonian Algorithm to approximate the square root of any given positive real number. The program should take a floating-point value as input and print the final approximation of the square root rounded to three digits after the decimal point.

Student submission:
#include<simplecpp>
main_program{

	float input_number,x;
	cin>>input_number;

	x=input_number;

	repeat(100){

		x=(x+(input_number)/(x))/2;

	}

	cout<<fixed;
	cout.precision(3);
	cout<<x;
}

Grading criterion: Placeholder for extra marks to be given for any reason
Rating A: Modularity, Extra Functions Defined, some corrective marks for failed testcases
Rating B: No reason for extra marks
Rating C: 0
Rating D: 0
Assigned grade: B