CodeGraderBench/CodeGraderBench huggingface dataset:
Problem: Write a C++ program to take two inputs from the user, the year N, and d, the day of the week that January 1st falls on. Assume that the days are encoded as follows: (Mon: 1, Tues: 2, Wed: 3,   Sun: 7). Based on this, print all the dates on which Sunday falls on in that year.You must also take into account if the year is a leap year or not. The year is said to be a leap year if the year is divisible by four, except for end-of-century years where the year should be divisible by 400.

Example:Let s say you were interested in finding out all the dates when Sunday is going to be this year i.e. 2024, then the input to your code should be:2024 1Explanation for the above input: 2024 is the year and 1st Jan happened to be on Monday this year, hence was number-encoded as 1The output should list the dates of all Sundays in the year N, month-wise on a new line.

Constraints (Assume)1000 <= N (Year) <= 35001 <= d <= 12

Student submission:
#include<simplecpp>
main_program{
	int N, d,a,b;
	cin >> N >>d;
        if(N%4==0){
		if(N%100==0){
			if(N%200==0)a=0;
			else a=1;
                }
		else a=0;
	}
	else a=1;
	b=8-d;
	cout<<"Month 1:"<< " ";
	while(b<=31){
		cout<<b<<" ";
                b=b+7;
	}
	cout << endl;
	b=b-31;
	cout<<"Month 2:"<<" ";
	if(a==0){
		while(b<=29){
			cout<<b<<" ";
			b=b+7;
		}
	b=b-29;
	}
	else{
	    while(b<=28){
		    cout<<b<<" ";
		    b=b+7;
            }
        b=b-28;
	}
	cout<<endl;
        cout<<"Month 3:"<< " ";
	while(b<=31){
		cout<<b<<" ";
		b=b+7;
	}
	b=b-31;
	cout<<endl;
	cout<<"Month 4:"<<" ";
	while(b<=30){
		cout<<b<<" ";
		b=b+7;
	}
	b=b-30;
	cout<<endl;
	cout<<"Month 5:"<<" ";
	while(b<=31){
                cout<<b<<" ";
                b=b+7;
        }
	b=b-31;
	cout<<endl;
	cout<<"Month 6:"<<" ";
	while(b<=30){
                cout<<b<<" ";
                b=b+7;
        }
        b=b-30;
        cout<<endl;
	cout<<"Month 7:"<<" ";
	while(b<=31){
                cout<<b<<" ";
                b=b+7;
        }
        b=b-31;
        cout<<endl;
	cout<<"Month 8:"<<" ";
	while(b<=31){
                cout<<b<<" ";
                b=b+7;
        }
        b=b-31;
	cout<<endl;
	cout<<"Month 9:"<<" ";
        while(b<=30){
                cout<<b<<" ";
                b=b+7;
        }
        b=b-30;
        cout<<endl;
	cout<<"Month 10:"<<" ";
	while(b<=31){
                cout<<b<<" ";
                b=b+7;
        }
        b=b-31;
	cout<<endl;
	cout<<"Month 11:"<<" ";
	while(b<=30){
                cout<<b<<" ";
                b=b+7;
        }
        b=b-30;
        cout<<endl;
	cout<<"Month 12:"<<" ";
	while(b<=31){
                cout<<b<<" ";
                b=b+7;
        }
        b=b-31;
        cout<<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 C++ program to take two inputs from the user, the year N, and d, the day of the week that January 1st falls on. Assume that the days are encoded as follows: (Mon: 1, Tues: 2, Wed: 3,   Sun: 7). Based on this, print all the dates on which Sunday falls on in that year.You must also take into account if the year is a leap year or not. The year is said to be a leap year if the year is divisible by four, except for end-of-century years where the year should be divisible by 400.

Example:Let s say you were interested in finding out all the dates when Sunday is going to be this year i.e. 2024, then the input to your code should be:2024 1Explanation for the above input: 2024 is the year and 1st Jan happened to be on Monday this year, hence was number-encoded as 1The output should list the dates of all Sundays in the year N, month-wise on a new line.

Constraints (Assume)1000 <= N (Year) <= 35001 <= d <= 12

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

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 C++ program to take two inputs from the user, the year N, and d, the day of the week that January 1st falls on. Assume that the days are encoded as follows: (Mon: 1, Tues: 2, Wed: 3,   Sun: 7). Based on this, print all the dates on which Sunday falls on in that year.You must also take into account if the year is a leap year or not. The year is said to be a leap year if the year is divisible by four, except for end-of-century years where the year should be divisible by 400.

Example:Let s say you were interested in finding out all the dates when Sunday is going to be this year i.e. 2024, then the input to your code should be:2024 1Explanation for the above input: 2024 is the year and 1st Jan happened to be on Monday this year, hence was number-encoded as 1The output should list the dates of all Sundays in the year N, month-wise on a new line.

Constraints (Assume)1000 <= N (Year) <= 35001 <= d <= 12

Student submission:
#include<simplecpp>
main_program{
        bool isleap=false;
        int N,d,first;
        cin>>N>>d;
        if(N%100 == 0 && N%400==0)
                isleap=true;
        if(N%4 ==0 && N%10 ==0)
                isleap=true;
        if(isleap){
                if(d==1)
                        first=7;
                else(d==2)
                        first=6;
                else(d==3)              first=5;
                else(d==4)
                        first=4;
                else(d==5)
                        first=3;
                else(d==6)
                        first=2;
                else(d==7)
                        first=1;
                cout<<"Month6 ";

                while(first<=31)
                        cout<<" "<<first;
                first +=7;
        }
        cout<<endl;
        first = first =30;
        cout<<"Month 7";

}

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 C++ program to take two inputs from the user, the year N, and d, the day of the week that January 1st falls on. Assume that the days are encoded as follows: (Mon: 1, Tues: 2, Wed: 3,   Sun: 7). Based on this, print all the dates on which Sunday falls on in that year.You must also take into account if the year is a leap year or not. The year is said to be a leap year if the year is divisible by four, except for end-of-century years where the year should be divisible by 400.

Example:Let s say you were interested in finding out all the dates when Sunday is going to be this year i.e. 2024, then the input to your code should be:2024 1Explanation for the above input: 2024 is the year and 1st Jan happened to be on Monday this year, hence was number-encoded as 1The output should list the dates of all Sundays in the year N, month-wise on a new line.

Constraints (Assume)1000 <= N (Year) <= 35001 <= d <= 12

Student submission:
#include <simplecpp>

main_program {
	int SUNDAY = 0;

	int N, d;
	cin >> N >> d;

	bool is_leap = false;
	if (N % 4 == 0) {
		if (N % 100 == 0) {
			if (N % 400 == 0) is_leap = true;
		} else is_leap = true;
	}

	int jan_days = 31;
	int feb_days = 28;
	int mar_days = 31;
	int apr_days = 30;
	int may_days = 31;
	int jun_days = 30;
	int jul_days = 31;
	int aug_days = 31;
	int sep_days = 30;
	int oct_days = 31;
	int nov_days = 30;
	int dec_days = 31;
	if (is_leap) feb_days = 29;

	cout << "Month 1: ";
	for (int i = 1; i <= jan_days; i++) {
		if (d % 7 == SUNDAY) cout << i << " ";
		d++;
	}
	cout << "\n";

	cout << "Month 2: ";
	for (int i = 1; i <= feb_days; i++) {
		if (d % 7 == SUNDAY) cout << i << " ";
		d++;
	}
	cout << "\n";

	cout << "Month 3: ";
	for (int i = 1; i <= mar_days; i++) {
		if (d % 7 == SUNDAY) cout << i << " ";
		d++;
	}
	cout << "\n";

	cout << "Month 4: ";
	for (int i = 1; i <= apr_days; i++) {
		if (d % 7 == SUNDAY) cout << i << " ";
		d++;
	}
	cout << "\n";

	cout << "Month 5: ";
	for (int i = 1; i <= may_days; i++) {
		if (d % 7 == SUNDAY) cout << i << " ";
		d++;
	}
	cout << "\n";

	cout << "Month 6: ";
	for (int i = 1; i <= jun_days; i++) {
		if (d % 7 == SUNDAY) cout << i << " ";
		d++;
	}
	cout << "\n";

	cout << "Month 7: ";
	for (int i = 1; i <= jul_days; i++) {
		if (d % 7 == SUNDAY) cout << i << " ";
		d++;
	}
	cout << "\n";

	cout << "Month 8: ";
	for (int i = 1; i <= aug_days; i++) {
		if (d % 7 == SUNDAY) cout << i << " ";
		d++;
	}
	cout << "\n";

	cout << "Month 9: ";
	for (int i = 1; i <= sep_days; i++) {
		if (d % 7 == SUNDAY) cout << i << " ";
		d++;
	}
	cout << "\n";

	cout << "Month 10: ";
	for (int i = 1; i <= oct_days; i++) {
		if (d % 7 == SUNDAY) cout << i << " ";
		d++;
	}
	cout << "\n";

	cout << "Month 11: ";
	for (int i = 1; i <= nov_days; i++) {
		if (d % 7 == SUNDAY) cout << i << " ";
		d++;
	}
	cout << "\n";

	cout << "Month 12: ";
	for (int i = 1; i <= dec_days; i++) {
		if (d % 7 == SUNDAY) cout << i << " ";
		d++;
	}
	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 C++ program to take two inputs from the user, the year N, and d, the day of the week that January 1st falls on. Assume that the days are encoded as follows: (Mon: 1, Tues: 2, Wed: 3,   Sun: 7). Based on this, print all the dates on which Sunday falls on in that year.You must also take into account if the year is a leap year or not. The year is said to be a leap year if the year is divisible by four, except for end-of-century years where the year should be divisible by 400.

Example:Let s say you were interested in finding out all the dates when Sunday is going to be this year i.e. 2024, then the input to your code should be:2024 1Explanation for the above input: 2024 is the year and 1st Jan happened to be on Monday this year, hence was number-encoded as 1The output should list the dates of all Sundays in the year N, month-wise on a new line.

Constraints (Assume)1000 <= N (Year) <= 35001 <= d <= 12

Student submission:
#include<simplecpp>
main_program{
	int N, d;
	cin>>N;
	cin>>d;
	if(((N%4==0) && (N%100!=0)) || ((N%4==0) && (N%400==0))){
		cout<<"l";
	}
	else{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 C++ program to take two inputs from the user, the year N, and d, the day of the week that January 1st falls on. Assume that the days are encoded as follows: (Mon: 1, Tues: 2, Wed: 3,   Sun: 7). Based on this, print all the dates on which Sunday falls on in that year.You must also take into account if the year is a leap year or not. The year is said to be a leap year if the year is divisible by four, except for end-of-century years where the year should be divisible by 400.

Example:Let s say you were interested in finding out all the dates when Sunday is going to be this year i.e. 2024, then the input to your code should be:2024 1Explanation for the above input: 2024 is the year and 1st Jan happened to be on Monday this year, hence was number-encoded as 1The output should list the dates of all Sundays in the year N, month-wise on a new line.

Constraints (Assume)1000 <= N (Year) <= 35001 <= d <= 12

Student submission:
#include<simplecpp>
main_program{
	int n;
	int d;
	int ly; 	// ly=leap year
 	int s;
	cin>>n;
	cin>>d;
	int a;
	int pow=1;
	if((1000<=n && n<=3500)&&(1<=d &&d<=12)){
		if(n/4!=ly){if(d=1){s=};
			else if(d=2){};
			else if(d=3){};
			else if(d=4){};
			else if(d=5){};
			else if(d=6){};
			else if(d=7){};
			else if(d=8){};
			else if(d=9){};
			else if(d=10){};
			else if(d=11){};
			else if(d=12){};}
			cout<<"Month1:"<<
		        cout<<"Month2:"<<
		        cout<<"Month3:"<<
		    	cout<<"Month4:"<<
		        cout<<"Month5:"<<
			cout<<"Month6:"<<
			cout<<"Month7:"<<
			cout<<"Month8:"<<
			cout<<"Month9:"<<
			cout<<"Month10:"<<
			cout<<"Month11:"<<
			cout<<"Month12:"<<
	}


}

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: B
Problem: Write a C++ program to take two inputs from the user, the year N, and d, the day of the week that January 1st falls on. Assume that the days are encoded as follows: (Mon: 1, Tues: 2, Wed: 3,   Sun: 7). Based on this, print all the dates on which Sunday falls on in that year.You must also take into account if the year is a leap year or not. The year is said to be a leap year if the year is divisible by four, except for end-of-century years where the year should be divisible by 400.

Example:Let s say you were interested in finding out all the dates when Sunday is going to be this year i.e. 2024, then the input to your code should be:2024 1Explanation for the above input: 2024 is the year and 1st Jan happened to be on Monday this year, hence was number-encoded as 1The output should list the dates of all Sundays in the year N, month-wise on a new line.

Constraints (Assume)1000 <= N (Year) <= 35001 <= d <= 12

Student submission:
#include<simplecpp>
main_program{int y, d;
	cin >> y >> d;
	if(y%400==0){for(int i=0; d+2+i<=31; i=i+7){cout << "Month 1: " << 1+(7-d)+i;}}
	             			      

	else if(y%100==0)



	else if(y%4==0)



	else }

Grading criterion: Quality of variable names
Rating A: good variable names
Rating B: Ok Variable Name
Rating C: Poor Variable Names
Rating D: 0
Assigned grade: B
Problem: Write a C++ program to take two inputs from the user, the year N, and d, the day of the week that January 1st falls on. Assume that the days are encoded as follows: (Mon: 1, Tues: 2, Wed: 3,   Sun: 7). Based on this, print all the dates on which Sunday falls on in that year.You must also take into account if the year is a leap year or not. The year is said to be a leap year if the year is divisible by four, except for end-of-century years where the year should be divisible by 400.

Example:Let s say you were interested in finding out all the dates when Sunday is going to be this year i.e. 2024, then the input to your code should be:2024 1Explanation for the above input: 2024 is the year and 1st Jan happened to be on Monday this year, hence was number-encoded as 1The output should list the dates of all Sundays in the year N, month-wise on a new line.

Constraints (Assume)1000 <= N (Year) <= 35001 <= d <= 12

Student submission:
#include<simplecpp>
main_program{
	int n,d,sum=0;
	cin>>n>>d;
	//if(n%100==0){
		//if(n%400==0){
			for(int i=1; i<=12; ++i){
				cout<<"Month"<<i<<":";
				for(int j=1; j<=4; ++j){
					sum = d;
					d = d+7;
				  	cout<<sum<<" ";
				}
				cout<<endl;
			}
}

Grading criterion: Quality of variable names
Rating A: good variable names
Rating B: Ok Variable Name
Rating C: Poor Variable Names
Rating D: 0
Assigned grade: C
Problem: Write a C++ program to take two inputs from the user, the year N, and d, the day of the week that January 1st falls on. Assume that the days are encoded as follows: (Mon: 1, Tues: 2, Wed: 3,   Sun: 7). Based on this, print all the dates on which Sunday falls on in that year.You must also take into account if the year is a leap year or not. The year is said to be a leap year if the year is divisible by four, except for end-of-century years where the year should be divisible by 400.

Example:Let s say you were interested in finding out all the dates when Sunday is going to be this year i.e. 2024, then the input to your code should be:2024 1Explanation for the above input: 2024 is the year and 1st Jan happened to be on Monday this year, hence was number-encoded as 1The output should list the dates of all Sundays in the year N, month-wise on a new line.

Constraints (Assume)1000 <= N (Year) <= 35001 <= d <= 12

Student submission:
#include<simplecpp>
main_program{
	int x,y,d,w,m;
	cin>>y>>d;
	w=1;
	x=d;
	cout<<"Month 1:";
	repeat(31-x){
		d=d+1;
		w=w+1;
		if(w==7){
			cout<<d<<" ";
			w=0;
		}
	}
	d=0;
	cout<<endl;
	cout<<"Month 2:";
	if(y%4==0);
	while(d<=29){
		d=d+1;
		w=w+1;
		if (w==7){
			cout<<d<<" ";
			w=0;
		}
	}
	if(y%4!=0){
		while(d<=28){
			d++;
			w++;
			if(w==7){
				cout<<d<<" ";
			       w=0;	
			}
		}
}
m=3;
while(m<=12){
	d=1;
//f(m==3)
//d=2;
//f (m==4);
//=0;
cout<<endl<<"Month "<<m<<":";
if(m==3||m==5||m==7||m==8||m==10||m==12){
	while(d<=31){
		if(w==7){
			cout<<d<<" ";
			w=0;
		}
		d++;
		w++;
	}
}
	if(m==4||m==6||m==9||m==11){
		while(d<30){
			if(w==7){
				cout<<d<<" ";
				w=0;
			}
			d++;
			w++;

		}
	}
	m++;

}
}

Grading criterion: Quality of variable names
Rating A: good variable names
Rating B: Ok Variable Name
Rating C: Poor Variable Names
Rating D: 0
Assigned grade: B
Problem: Write a C++ program to take two inputs from the user, the year N, and d, the day of the week that January 1st falls on. Assume that the days are encoded as follows: (Mon: 1, Tues: 2, Wed: 3,   Sun: 7). Based on this, print all the dates on which Sunday falls on in that year.You must also take into account if the year is a leap year or not. The year is said to be a leap year if the year is divisible by four, except for end-of-century years where the year should be divisible by 400.

Example:Let s say you were interested in finding out all the dates when Sunday is going to be this year i.e. 2024, then the input to your code should be:2024 1Explanation for the above input: 2024 is the year and 1st Jan happened to be on Monday this year, hence was number-encoded as 1The output should list the dates of all Sundays in the year N, month-wise on a new line.

Constraints (Assume)1000 <= N (Year) <= 35001 <= d <= 12

Student submission:
#inlcude<simplecpp>
main_program{
	int N,d;
	cin >> N >>d;
	// for checking leap year
	if((N%4==0 && N%100 !=0) || (N%400 == 0)){
		
	}
	switch(command){
case1: 
case2:// for checking leap year
        if((N%4==0 && N%100 !=0) || (N%400 == 0)){
        month2 has 29 days        
        }











	cout << "Month 1:"<< 8-d<<" "<<15-d<<" "<<22-d<<" "<<29-d;<<endl;
	cout << "Month 2:"<< 5-d<<" "<<12-d<<" "<<19-d<<" "<<25-d;<<endl;
	cout << "Month 3:"<< 4-d<<" "<<12-d<<" "<<19-d<<" "<<26-d;<<endl;
	cout << "Month 4:"<< 8-d<<" "<<15-d<<" "<<22-d<<" "<<29-d;<<endl;
	cout << "Month 5:"<< 6-d<<" "<<13-d<<" "<<20-d<<" "<<27-d;<<endl;
	cout << "Month 6:"<< 3-d<<" "<<10-d<<" "<<17-d<<" "<<29-d;<<endl;
	cout << "Month 7:"<< 8-d<<" "<<15-d<<" "<<22-d<<" "<<29-d;<<endl;
	cout << "Month 8:"<< 8-d<<" "<<15-d<<" "<<22-d<<" "<<29-d;<<endl;
	cout << "Month 9:"<< 8-d<<" "<<15-d<<" "<<22-d<<" "<<29-d;<<endl;
	cout << "Month 10:"<< 8-d<<" "<<15-d<<" "<<22-d<<" "<<29-d;<<endl;
	cout << "Month 11:"<< 8-d<<" "<<15-d<<" "<<22-d<<" "<<29-d;<<endl;
	cout << "Month 12:"<< 8-d<<" "<<15-d<<" "<<22-d<<" "<<29-d;<<endl;
}

Grading criterion: Quality of variable names
Rating A: good variable names
Rating B: Ok Variable Name
Rating C: Poor Variable Names
Rating D: 0
Assigned grade: B
Problem: Write a C++ program to take two inputs from the user, the year N, and d, the day of the week that January 1st falls on. Assume that the days are encoded as follows: (Mon: 1, Tues: 2, Wed: 3,   Sun: 7). Based on this, print all the dates on which Sunday falls on in that year.You must also take into account if the year is a leap year or not. The year is said to be a leap year if the year is divisible by four, except for end-of-century years where the year should be divisible by 400.

Example:Let s say you were interested in finding out all the dates when Sunday is going to be this year i.e. 2024, then the input to your code should be:2024 1Explanation for the above input: 2024 is the year and 1st Jan happened to be on Monday this year, hence was number-encoded as 1The output should list the dates of all Sundays in the year N, month-wise on a new line.

Constraints (Assume)1000 <= N (Year) <= 35001 <= d <= 12

Student submission:
#include<simplecpp>
main_program{
int N,d;
cin>>N>>>d;
int r;
int i;
if((N%4==0)&&(N%400==0)&&(N%100==0)){
	i==1;
}
else if((N%4==0)&&(N%100!=0)){
	i==1;
}
else{
	i==0;
}

if(d==1){
	r=6;
}
if(d==2){
	r=5;
}
if(d==3){
	r=4;
}
if(d==4){
	r=3;
}
if(d==5){
	r=2;
}
if(d=6){
	r=1;
}
if(d==7){
	r=0;
}
int s=7;
if((i==0)&&(d==1)){
cout<<"Month 1:"<<"7"<<"14"<<"21"<<"28"<<endl;
cout<<"Month 2:"<<"4"<<"11"<<"18"<<
cout<<"Month 3:"<<"4"<<"11"<<"18"<<
cout<<"Month 4:"<<"1"<<"8"<<"22"<<
cout<<"Month 5:"<<"6"<<"13"<<"20"
cout<<"Month 6:"<<"3"<<"10"<<"17"
cout<<"Month 7:"<<"1"<<"8"<<"22"
cout<<"Month 8:"<<"5"<<"12"<<"19"
cout<<"Month 9:"<<"2"<<"9"<<"23"
cout<<"Month 10:"<<"7"<<"14"<<"21"
cout<<"Month 11:"<<"4"<<"11"<<"18"
cout<<"Month 12:"<<"2"<<"9"<<"16"



}




}

Grading criterion: Quality of variable names
Rating A: good variable names
Rating B: Ok Variable Name
Rating C: Poor Variable Names
Rating D: 0
Assigned grade: C
Problem: Write a C++ program to take two inputs from the user, the year N, and d, the day of the week that January 1st falls on. Assume that the days are encoded as follows: (Mon: 1, Tues: 2, Wed: 3,   Sun: 7). Based on this, print all the dates on which Sunday falls on in that year.You must also take into account if the year is a leap year or not. The year is said to be a leap year if the year is divisible by four, except for end-of-century years where the year should be divisible by 400.

Example:Let s say you were interested in finding out all the dates when Sunday is going to be this year i.e. 2024, then the input to your code should be:2024 1Explanation for the above input: 2024 is the year and 1st Jan happened to be on Monday this year, hence was number-encoded as 1The output should list the dates of all Sundays in the year N, month-wise on a new line.

Constraints (Assume)1000 <= N (Year) <= 35001 <= d <= 12

Student submission:
#include<simplecpp>
main_program{
int year,d;
cin>>year>>d;

array[]={0,31,28,31,30,31,30,31,31,30,31,30,31};

if((year%4==0) && (year%100 !=0) ||(year%400 ==0) {
cout<<""
}

Grading criterion: Quality of variable names
Rating A: good variable names
Rating B: Ok Variable Name
Rating C: Poor Variable Names
Rating D: 0
Assigned grade: C
Problem: Write a C++ program to take two inputs from the user, the year N, and d, the day of the week that January 1st falls on. Assume that the days are encoded as follows: (Mon: 1, Tues: 2, Wed: 3,   Sun: 7). Based on this, print all the dates on which Sunday falls on in that year.You must also take into account if the year is a leap year or not. The year is said to be a leap year if the year is divisible by four, except for end-of-century years where the year should be divisible by 400.

Example:Let s say you were interested in finding out all the dates when Sunday is going to be this year i.e. 2024, then the input to your code should be:2024 1Explanation for the above input: 2024 is the year and 1st Jan happened to be on Monday this year, hence was number-encoded as 1The output should list the dates of all Sundays in the year N, month-wise on a new line.

Constraints (Assume)1000 <= N (Year) <= 35001 <= d <= 12

Student submission:
#include<simplecpp>
main_program{
	int N,d;
	cin>>N>>d;
	if(N%100==0){
		if(N%400==0){
			cout<<"Month 1:"<<" ";
			int x=d;
			while(x<=31){
				cout<<d<<" ";
				x=x+7;
				cout<<x<<" ";
			}
			x=d;
			cout<<"Month 2:"<<" ";
		        while(x<=29){
				cout<<d<<" ";
				x=x+7;
				cout<<x<<" ";
			}
                        x=d;int i=3;
			repeat(10){
                        while(x<=30){
			cout<<"Month "<<i<<":"<<" ";
			cout<<d<<" ";
			x=x+7;
			cout<<x<<" ";
			i++;
			}
		}}}}

Grading criterion: Quality of variable names
Rating A: good variable names
Rating B: Ok Variable Name
Rating C: Poor Variable Names
Rating D: 0
Assigned grade: C