CodeGraderBench/CodeGraderBench huggingface dataset:
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include <simplecpp>
main_program{
	int n ;
	cin>> n ;
	if ( n < 0 && ((-1)*n % 2 == 0) ) {
	float r =( n*1.0) / 2;
		cout << r << "\n" ;
	}
	else if(n < 0 && ((-1)* n % 2 == 1)){
			cout << n*n << "\n" ;
			}
	else if( n > 0 && (n % 2 == 0 ) ){
	float s = (n*1.0) / 3 ;
		cout << s  << "\n" ;
	}
	else if	(n > 0 && ( n % 2 == 1) ) {
	cout <<n*n*n << "\n" ;
	}
	else if ( n == 0 ) {
		cout << n << n << "\n" ;
	}
}

Grading criterion: Quality and number of comments
Rating A: Well Commented
Rating B: Ok Commented
Rating C: Poor or No comments
Rating D: 0
Assigned grade: C
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<simplecpp>
main_program{
	int n;
	
	cin >> n;
	if (n<0 && (n%2==0)){
		
		cout << n/2.0;}
        else if(n<0 && (n%2!=0)){
		cout << n*n;}
	else if(n>0 && (n%2==0)){
		cout << n/3.0;}
	else if(n>0 && (n%2!=0)){
		cout << n*n*n;}
	else if(n==0){
		cout << n;
		cout << n;}
}

Grading criterion: Quality and number of comments
Rating A: Well Commented
Rating B: Ok Commented
Rating C: Poor or No comments
Rating D: 0
Assigned grade: C
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<simplecpp>
main_program{
	int n;
	cin >> n;
	if((n%2==0)&&(n!=0)){
		if(n>0){
			cout << n/3.0;
		}
		if(n<0){
			cout << n/2;
		}
	}
	else if ((n%2!=0)&&(n!=0)){
		if(n>0){
			cout << n*n*n;
		}
		if(n<0){
			cout << n*n;
		}
	}
	else if(n==0){
		cout << "00";
	}
}

Grading criterion: Quality and number of comments
Rating A: Well Commented
Rating B: Ok Commented
Rating C: Poor or No comments
Rating D: 0
Assigned grade: C
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<simplecpp>

main_program{

	 long int n;

	 cin >> n;

	if (n < 0 && n%2 == 0){
		cout << 0.5*n;
	}

	if (n < 0 && n % 2 != 0){
		cout << n*n;
	}

	if (n > 0 && n % 2 == 0){
		cout << n/3;
	}

	if (n > 0 && n % 2 != 0) {
		cout << n*n*n;
	}

	if (n == 0){

		cout << "00";
	}

	return 0;

}

Grading criterion: Quality and number of comments
Rating A: Well Commented
Rating B: Ok Commented
Rating C: Poor or No comments
Rating D: 0
Assigned grade: C
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include <simplecpp>
main_program{
	int n,k;
	k>1;
	if (n=2k && n<1);
	cout << n/2 << endl;

}

Grading criterion: Quality and number of comments
Rating A: Well Commented
Rating B: Ok Commented
Rating C: Poor or No comments
Rating D: 0
Assigned grade: C
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include <simplecpp>
main_program
{
	int n;
	cin >> n;
	if (n<0)
	{
		int n2 = 0-n;
		if((n2%2)==0)
		{
			cout << n/2;
		}
		else 
		{
			cout << n*n;
		}
	}
	else if (n>0)
	{
		if ((n%2)==0)
		{
			float n3 = n;
			cout << n3/3;
		}
		else 
		{
			cout << n*n*n;
		}
	}
	else 
	{
		cout << "00";
	}
}

Grading criterion: Quality and number of comments
Rating A: Well Commented
Rating B: Ok Commented
Rating C: Poor or No comments
Rating D: 0
Assigned grade: C
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<simplecpp>
main_program
{
	int n;
	cin>>n;
	if (n>0){
		if (n%2==0){
			cout<<(n*1.0)/3;
		}
		else{
			cout<<n*n*n;
		}
	}
	else if (n<0){
		if(n%2==0){
			cout<<(1.0*n)/2;
		}
		else{
			cout<<(n*n);

		}		
	}
	else if (n==0){
		cout<<"00";
	}
}

Grading criterion: Quality and number of comments
Rating A: Well Commented
Rating B: Ok Commented
Rating C: Poor or No comments
Rating D: 0
Assigned grade: C
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<simplecpp>
main_program{
	int n;
	cin>>n;
	if(n<0 && n%2==0){
		cout<<n/2.0;}
	if(n<0 && n%2!=0){
		cout<<n*n;}
	if(n>0 && n%2==0){
		cout<<n/3.0;}
	if(n>0 && n%2!=0){
		cout<<n*n*n;}
	if(n==0){
		cout<<"00";}
}

Grading criterion: Quality and number of comments
Rating A: Well Commented
Rating B: Ok Commented
Rating C: Poor or No comments
Rating D: 0
Assigned grade: C
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<simplecpp>
main_program{
	int n;
	float answer;
	cin >> n;
	answer=n/(3.0);
	if(n<0 && (n%2==0)) cout << n/2;
	else if(n<0 && (n%2!=0)) cout << n*n;
	else if(n>0 && (n%2==0)) cout << answer;
	else if(n>0 && (n%2!=0)) cout << n*n*n;
	else if(n==0) cout << "00";
	}

Grading criterion: Quality and number of comments
Rating A: Well Commented
Rating B: Ok Commented
Rating C: Poor or No comments
Rating D: 0
Assigned grade: C
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include <simplecpp>

main_program{

  int n;
  cin >> n;
  float a;

  if (n < 0 && n%2 == 0){
	a = n/2;
	cout << a;
  }

  else if( n < 0 && n%2 == -1){
	a = n*n;
	cout << a; 
  }

  else if(n > 0 && n%2 == 0){
	a = n/3.0;
	cout << a;
  }

  else if(n > 0 && n%2 == 1){
	a = n*n*n;
	cout << a;
  }

  else{
	cout << "00";
  }

		



}

Grading criterion: Quality and number of comments
Rating A: Well Commented
Rating B: Ok Commented
Rating C: Poor or No comments
Rating D: 0
Assigned grade: C
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<simplecpp>
main_program{
	int n;
	cin>>n;
	if(n<0){
		if(n%2==0)
			cout<<n/2;
		else
			cout<<n*n;
	}
	else if(n>0){
		if(n%2==0)
			cout<<n*1.0/3;
		else
			cout<<n*n*n;
	}
	else 
		cout<<"00";
}

Grading criterion: Quality and number of comments
Rating A: Well Commented
Rating B: Ok Commented
Rating C: Poor or No comments
Rating D: 0
Assigned grade: C
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<simplecpp>
main_program
{
int n;
cin>>n;
if(n==0)
{
cout<<"00";
}
if(n>0)
	{
	int j=n%2;
		if(j==1)
		cout<<n*n*n;
		else
		cout<<((n*(1.0))/3.0);
	}
if(n<0)
	{
	int j=((-1)*n)%2;
		if(j==1)
		cout<<n*n;
		else
		cout<<n/2;
	}
}

Grading criterion: Quality and number of comments
Rating A: Well Commented
Rating B: Ok Commented
Rating C: Poor or No comments
Rating D: 0
Assigned grade: C
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<simplecpp>
main_program{
	double n;
	cin>>n;
	int m=n;
	if(n<0){
		if(m%2==0) cout<<n/2;
		else cout<<n*n;
	}else
	if(n>0){
                if(m%2==0) cout<<n/3;
                else cout<<m*m*m;
        }
	else cout<<0<<0;
}

Grading criterion: Quality and number of comments
Rating A: Well Commented
Rating B: Ok Commented
Rating C: Poor or No comments
Rating D: 0
Assigned grade: C
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<simplecpp>

main_program{
	int n;
	cin>>n;
	
	if(n<0 and n%2==0){cout<<1.0*n/2<<endl;}
	else if (n<0 and n%2!=0){cout<<n*n<<endl;}
	else if (n>0 and n%2==0){cout<<1.0*n/3<<endl;}
	else if (n>0 and n%2!=0){cout<<n*n*n<<endl;}
	else if (n==0){cout<<"00"<<endl;}

}

Grading criterion: Quality and number of comments
Rating A: Well Commented
Rating B: Ok Commented
Rating C: Poor or No comments
Rating D: 0
Assigned grade: C
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<simplecpp>
main_program{
	int n;
	cin>>n;

	if(n==0){
		cout<<"00"<<endl;
	}
	else if(n<0){
		if(n%2==0){
			cout<<n/2.0<<endl;
		}
		else{
			cout<<n*n<<endl;
		}
	}
	else{
		if(n%2==0){
			cout<<n/3.0<<endl;
		}
		else{
			cout<<n*n*n<<endl;
		}
	}
}

Grading criterion: Quality and number of comments
Rating A: Well Commented
Rating B: Ok Commented
Rating C: Poor or No comments
Rating D: 0
Assigned grade: C
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<simplecpp>
main_program{
	int n;
	cin>>n;
	if(n<0 && n%2==0){
		cout<<n/2<<endl;
	}
	else if(n<0 && n%2!=0){
		cout<<n*n<<endl;
	}
	else if(n>0 && n%2==0){
		float res=1.0*n/3;
		cout<<res<<endl;
	}
	else if(n>0 && n%2!=0){
		cout<<n*n*n<<endl;
	}
	else if(n==0){
		cout<<"00"<<endl;
	}	
}

Grading criterion: Quality and number of comments
Rating A: Well Commented
Rating B: Ok Commented
Rating C: Poor or No comments
Rating D: 0
Assigned grade: C
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include <simplecpp>
main_program{
	int n;
	cin >> n;
	if ( n < 0  && n % 2 == 0  )
		cout << n/2.0 ;
	else if ( n < 0 && n % 2 != 0 )
		cout << n*n ;
	else if ( n > 0 && n % 2 == 0 )
		cout << n/3.0 ;
	else if ( n > 0 && n % 2 != 0 )
		cout << n*n*n ;
	else if ( n == 0 )
		cout << "00";
}

Grading criterion: Quality and number of comments
Rating A: Well Commented
Rating B: Ok Commented
Rating C: Poor or No comments
Rating D: 0
Assigned grade: C
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include <iostream>
using namespace std;
int main() {
    int n;
    float m;
    cin >> n;
    m = n;
    if ((n < 0) && (n % 2 == 0)) {
        cout << m/2 << endl;
    }
    else if ((n < 0) && (n % 2 != 0)) {
        cout << n * n << endl;
    }
    else if ((n > 0) && (n % 2 == 0)) {
        cout << m/3 << endl;
    }
    else if ((n > 0) && (n % 2 != 0)) {
        cout << n * n * n << endl;
    }
    else if (n == 0) {
        cout << "00" << endl;
    }
    return 0;
}

Grading criterion: Quality and number of comments
Rating A: Well Commented
Rating B: Ok Commented
Rating C: Poor or No comments
Rating D: 0
Assigned grade: C
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<simplecpp>
main_program{
int n; 

	cin>>n;
if(n<0 && n%2==0 )
{int  r= n/2;
cout<<r;}
if(n<0 && n%2!=0)
{long int r1=n*n;
cout<<r1;}
if(n>0 && n%2==0)
{ double r2=n/3.0;
cout<<r2;}
if(n>0 && n%2!=0)
{ long int r3=n*n*n;
cout<<r3;}
if(n==0)
	cout<<"00";

}

Grading criterion: Quality and number of comments
Rating A: Well Commented
Rating B: Ok Commented
Rating C: Poor or No comments
Rating D: 0
Assigned grade: C
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<simplecpp>
main_program
{
	int n;
	cin >> n;
	if (n < 0)
	{
		if (n%2 == 0)
		{
			cout << n*1.0/2;
		}
		else
		{
			cout << n*n;
		}
	}
	else if (n > 0)
	{
		if (n%2 == 0)
		{
			cout << n*1.0/3;

		}
		else
		{
			cout << n*n*n;
		}
	}
	else
	{
		cout << "00";
	}
}

Grading criterion: Quality and number of comments
Rating A: Well Commented
Rating B: Ok Commented
Rating C: Poor or No comments
Rating D: 0
Assigned grade: C
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<iostream>
using namespace std;
int main()
{
	int n;
	cin>>n;
	if(n<0&&n%2==0)
	        cout<<n/2;
	if(n<0&&n%2!=0)
		cout<<n*n;
	if(n>0&&n%2==0)
	{
		float x=n/3.0;
		cout<<x;
	}
	if(n>0&&n%2!=0)
		cout<<n*n*n;
	if(n==0)
		cout<<"00";
	return 0;
}

Grading criterion: Quality and number of comments
Rating A: Well Commented
Rating B: Ok Commented
Rating C: Poor or No comments
Rating D: 0
Assigned grade: C
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<simplecpp>
main_program{
	int n;
	cin>> n;
	if(n<0 && n%2==0){
	cout<<n*(1.0/2);
	}
	else if (n<0 && n%2!=0){
	cout<<n*n;
	}
	if(n>0 && n%2==0){
	cout<<n*(1.0/3);
	}
	else if (n>0 && n%2!=0){
	cout<< n*n*n;}
	if(n==0){
	cout<< "00";
	}
}

Grading criterion: Quality and number of comments
Rating A: Well Commented
Rating B: Ok Commented
Rating C: Poor or No comments
Rating D: 0
Assigned grade: C
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<simplecpp>
main_program{
        float eoCheck,n;
        cin>>n;
        eoCheck=int(n)%2;
        if(n==0){cout<<"00";}
        else if(n<0){
                if(eoCheck==0){cout<<n/2;}
                else{cout<<n*n;}
        }
        else if(n>0){
		if(eoCheck==0){cout<<n/3;}
                else{cout<<n*n*n;}
        }
}

Grading criterion: Quality and number of comments
Rating A: Well Commented
Rating B: Ok Commented
Rating C: Poor or No comments
Rating D: 0
Assigned grade: C
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<simplecpp>
main_program{
	int n;
	cin>>n;
	if(n<0){
		if(n%2==0){
			cout<<n/2;
		}
		else{
			cout<<n*n;
		}
	}
	else if(n>0){
		if(n%2==0){
			float ans=n*1.0/3;
			cout<<ans;
		}
		else{
			cout<<n*n*n;
		}
        }
	else{
		cout<<0<<0;
	}
}

Grading criterion: Quality and number of comments
Rating A: Well Commented
Rating B: Ok Commented
Rating C: Poor or No comments
Rating D: 0
Assigned grade: C
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include <simplecpp>
main_program{
	int n;
	cin>>n;
	long i;
	if (n>0 && n%2==0) {
		i=n/3.00;
		cout << i << endl;
	}
	if (n>0 && n%2 !=0) {
		i=n*n*n;
		cout << i << endl;
	}
	if (n<0 && n%2==0) {
		i=n/2;
		cout << i << endl;
	}
	if (n==0) {
		cout << "00" << endl;
	}
	else if(n<0 && n%2 !=0){
		i=n*n;
		cout << i << endl;
	}

}

Grading criterion: Quality and number of comments
Rating A: Well Commented
Rating B: Ok Commented
Rating C: Poor or No comments
Rating D: 0
Assigned grade: C
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<simplecpp>
main_program{
	int n;
	cin>>n;
	if(n<0 && n%2 == 0){
		cout<<n/2;
	}
	else if (n<0 && n%2 != 0){
		cout<<n*n;
	}
	else if (n>0 && n%2 == 0){
		n=double(n);
		cout<<n/3.0;
	}
	else if (n>0 && n%2 != 0){
		cout<<n*n*n;
	}
	else{cout<<"00";}
}

Grading criterion: Quality and number of comments
Rating A: Well Commented
Rating B: Ok Commented
Rating C: Poor or No comments
Rating D: 0
Assigned grade: C
Problem: Write a program that accepts a number n from the user and performs a specific operation as given belowIf n is negative and even, compute n/2 and print the resultIf n is negative and odd, print the square of nIf n is positive and even, compute n/3 and print the result.If n is positive and odd, print the cube of nIf n is zero, print the number 0 two times i.e print 00

Constraints (Assume) 10^3 <=n <=10^3

Student submission:
#include<simplecpp>
main_program{
	float n;
	int t;
	cin>>n;
	t=-1*n;
	if ((n<0) &&(t%2==0)){
		cout<<n/2;
	}
	if ((n<0) && (t%2!=0)){
		cout<<n*n;
	}
	if ((n>0) && ((int)n%2==0)){
		cout<<n/3;
	}
	if(n==0){
		cout<<"0"<<"0";
	}
	if((n>0) & ((int)n%2!=0)){
		cout<<(int)n*(int)n*(int)n;
}
}

Grading criterion: Quality and number of comments
Rating A: Well Commented
Rating B: Ok Commented
Rating C: Poor or No comments
Rating D: 0
Assigned grade: C