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;
	cin>>N>>d;

	if(N>=1000 && N<=3500 && d>=1 && d<=12 ){

		if(N%400!=0){

			if(d==1){		//jan
				cout<<"Month 1: ";
				int a=0;
				while(a<32){

					a=a+7;
					if(a<32){
					cout<<a<<" ";}
				}
			}
		}
	}
}

Grading criterion: Sunday Date Calculation (ASSUMING Leap year calculation is correct)
Rating A: Code correct for Leap and Non leap yeat
Rating B: Code almost correct for Leap and Non leap year, some small mistake
Rating C: Code mostly incorrect,some attempt made in the right direction
Rating D: No code or completely wrong code
Assigned grade: D
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;
	int f;//flag variable for checking leap year condition in loop
	cin>>N>>d;//accepting two numbers as input

	if(N%4==0 && N%100!=0)//checcking for non-centiry leap years
	{
		f=0;
	}
	else if(N%400==0)//checking for century leap years
	{
		f=0;
	}
	else//normal years
	{
		f=1;
	}
	int days;//placeholder for number of days in a particular month
	for(int i=1;i<=12;i++)
	{
		
		
			if(i==1 || i==3 || i==5 ||i==7||i==8||i==10||i==12)//months with 31 days
			{
				days=31;
			}
			else if(i==4||i==6||i==9||i==11)//months with 30 days
			{
				days=30;
			}
			else//days in february
			{
				if(f==0 && i==2)//leap year 29 days
				{
					days=29;
				}
				else if(f==1 && i==2)//normal year 28 days
				{
					days=28;
				}
				else//wrong month number, not actually possible in any case, can be removed from the code
				{
					cout<<"Wrong input";
				}

			}//number of days assigned 
			cout<<"Month "<<i<<": ";//printing Month i:
			for(int j=1;j<=days;j++)
			{
				if(d%7==0)
				{
					cout<<j<<" ";
					
				}
				d++;//d is continuosly incremented throughout the year, and multiples of 7 are assigned Sunday
			}
			cout<<"\n";//changing line after each month
	}//finishing the loops
}//end of code

Grading criterion: Sunday Date Calculation (ASSUMING Leap year calculation is correct)
Rating A: Code correct for Leap and Non leap yeat
Rating B: Code almost correct for Leap and Non leap year, some small mistake
Rating C: Code mostly incorrect,some attempt made in the right direction
Rating D: No code or completely wrong code
Assigned grade: A
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%4!=0||N%400!=0){
if(d==1){
cout<<"Month 1: 7 14 21 28"<<endl;
cout<<"Month 2: 4 11 18 25"<<endl;
cout<<"Month 3: 4 11 18 25"<<endl;
cout<<"Month 4: 8 15 22 29"<<endl;
cout<<"Month 5: 6 13 20 27"<<endl;
cout<<"Month 6: 3 10 17 24"<<endl;
cout<<"Month 7: 1 8 15 22 29"<<endl;
cout<<"Month 8: 5 12 19 26"<<endl;
cout<<"Month 9: 2 9 16 23 30"<<endl;
cout<<"Month 10: 7 14 21 28"<<endl;
cout<<"Month 11: 4 11 18 25"<<endl;
cout<<"Month 12: 2 9 16 23 30"<<endl;
}
if(d==2){
cout<<"Month 1: 8 15 22 29"<<endl;
cout<<"Month 2: 5 12 19 26"<<endl;
cout<<"Month 3: 5 12 19 26"<<endl;
cout<<"Month 4: 2 9 16 23 30"<<endl;
cout<<"Month 5: 7 14 21 28"<<endl;
cout<<"Month 6: 4 10 18 25"<<endl;
cout<<"Month 7: 2 9 16 23 30"<<endl;
cout<<"Month 8: 6 13 20 27"<<endl;
cout<<"Month 9: 3 10 17 24"<<endl;
cout<<"Month 10: 1 8 15 22 29"<<endl;
cout<<"Month 11: 5 12 19 26"<<endl;
cout<<"Month 12: 3 10 17 23 30"<<endl;
}


}


}

Grading criterion: Sunday Date Calculation (ASSUMING Leap year calculation is correct)
Rating A: Code correct for Leap and Non leap yeat
Rating B: Code almost correct for Leap and Non leap year, some small mistake
Rating C: Code mostly incorrect,some attempt made in the right direction
Rating D: No code or completely wrong code
Assigned grade: D
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;
	int d;
	cin>>y>>d;
	bool leap;
	if(y%4==0)
	{
		if(y%100==0)
		{
			if(y%400==0)
			{
				leap = true;
			}
			else
			{
				leap = false;
			}

		}
		else
		{
                 leap = true;
		}
	}
	else
	{
		leap = false;
	}
	int fs = 7-d+1;
	cout<<"Month 1: ";
        while(fs<=31)
	{
		
		cout<<fs;
		cout<<" ";
		fs=fs+7;
	}
	fs = fs - 31;
	cout<<endl;
	int dim;
	if(leap == true)
	{
		dim = 29;
	}
	else
	{
		dim = 28;
	}
	cout<<"Month 3: ";
	while(fs<=dim)
	{
		cout<<fs;
		cout<<" ";
		fs=fs+7;
	}
	fs=fs-dim;
	cout<<endl;
        cout<<"Month 4: ";
        while(fs<=31)	
	{
		cout<<fs;
		cout<<" ";
		fs = fs+7;
	}
	fs = fs-31;
	cout<<endl;
	cout<<"Month 4: ";
	while(fs<=30)
	{
		cout<<fs;
		cout<<" ";
		fs=fs+7;
	}
	fs = fs-30;
	cout<<endl;
	cout<<"Month 5: ";
	while(fs<=31)
	{
		cout<<fs;
		cout<<" ";
		fs=fs+7;
	}
	fs=fs-31;
	cout<<endl;
	cout<<"Month 6: ";
	while(fs<=30)
	{
		cout<<fs;
		cout<<" ";
		fs= fs+7;
	}
	fs=fs-30;
        cout<<endl;
	cout<<"Month 7: ";
	while(fs<=31)
	{
		cout<<fs;
		fs = fs+7;
		cout<<" ";
	}
	fs = fs-31;
	cout<<endl;
	cout<<"Month 8: ";
	while(fs<=31)
	{
		cout<<fs;
		cout<<" ";
		fs = fs+7;
	}
	fs = fs-31;
	cout<<endl;
	cout<<"Month 9: ";
	while(fs<=30)
	{
		cout<<fs;
		cout<<" ";
		fs = fs+7;
	}
	fs = fs-30;
	cout<<endl;
	cout<<"Month 10: ";
	while(fs<=31)
	{

		cout<<fs;
		cout<<" ";
		fs = fs+7;
          
	}

        fs = fs - 31;
	cout<<endl;
	cout<<"Month 11: ";
	while(fs<=30)
	{
		cout<<fs;
		cout<<" ";
                fs = fs+7;

	}
       fs = fs-30;
       cout<<endl;
       cout<<"Month 12: ";
       while(fs<=31)
       {
	       cout<<fs;
	       cout<<" ";
	       fs = fs+7;
       }





















}

Grading criterion: Sunday Date Calculation (ASSUMING Leap year calculation is correct)
Rating A: Code correct for Leap and Non leap yeat
Rating B: Code almost correct for Leap and Non leap year, some small mistake
Rating C: Code mostly incorrect,some attempt made in the right direction
Rating D: No code or completely wrong code
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;
 
// if (N%100=0)  CENTURY BUT NOT A LEAP YEAR;break;
// 
// if (N%4=0) leap year 
// 
//  else  NOT A LEAPYEAR/        }

Grading criterion: Sunday Date Calculation (ASSUMING Leap year calculation is correct)
Rating A: Code correct for Leap and Non leap yeat
Rating B: Code almost correct for Leap and Non leap year, some small mistake
Rating C: Code mostly incorrect,some attempt made in the right direction
Rating D: No code or completely wrong code
Assigned grade: D
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,day,m=1,n;
	cin >> year >> day;
	int a=8-day;
	
		repeat(12){
			if(m%2!=0 && m!=2 && m<8){
				n=31;
			}
			else if(m==2){
				if((year%4) ==0){
					if(year%100 == 0&& year%400 !=0){
						n=28;
					}
					else{
						n=29;
					}
				}
				else{
					n=28;
				}
			}
			else if(m>=8&&m%2==0){
				n=31;
			}
			else {
				n=30;
			}
		       cout<< "Month "<<m<<": ";
		for(int i=a;i<=n;i+=7){
			cout << i << " ";
			a=i;
		}
		a+=7;
		a=a-n;
		m++;
		cout <<endl;
		}
}

Grading criterion: Sunday Date Calculation (ASSUMING Leap year calculation is correct)
Rating A: Code correct for Leap and Non leap yeat
Rating B: Code almost correct for Leap and Non leap year, some small mistake
Rating C: Code mostly incorrect,some attempt made in the right direction
Rating D: No code or completely wrong code
Assigned grade: A
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%4==0){
			cout<<"leapyear";
			 if(N%N==0){
				cout<< "end of century";
				
		}}
		else{
			cout<< "notleapyear";}}

Grading criterion: Sunday Date Calculation (ASSUMING Leap year calculation is correct)
Rating A: Code correct for Leap and Non leap yeat
Rating B: Code almost correct for Leap and Non leap year, some small mistake
Rating C: Code mostly incorrect,some attempt made in the right direction
Rating D: No code or completely wrong code
Assigned grade: D
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%4==0){
		switch(d){
  		case 1:for(int i=1; i<=12; i++){
		cout<<"Month"<<i<<":";
		for( int j=7; j<=31;j+=7){
			cout<<j<<" ";
		} cout<<"\n";
		       }
		}
	}
}

Grading criterion: Sunday Date Calculation (ASSUMING Leap year calculation is correct)
Rating A: Code correct for Leap and Non leap yeat
Rating B: Code almost correct for Leap and Non leap year, some small mistake
Rating C: Code mostly incorrect,some attempt made in the right direction
Rating D: No code or completely wrong code
Assigned grade: D
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;
int j=1;
cin>>N>>d;
if(N%4==0  && 	N%100!=0){
if(d==1){
while(j<=31){
if(j%7==0){
cout<<"Month 1:"<<j<<" ";
}
j++;
}
}
if(d==2){
while(j<=31){
if((j-1)%7==0){ 
cout<<"Month 2:"<<j<<" ";
}
j++;
}


}
}



else if(N%100==0 && N%400==0){
}
else{
}





}

Grading criterion: Sunday Date Calculation (ASSUMING Leap year calculation is correct)
Rating A: Code correct for Leap and Non leap yeat
Rating B: Code almost correct for Leap and Non leap year, some small mistake
Rating C: Code mostly incorrect,some attempt made in the right direction
Rating D: No code or completely wrong code
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,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: Sunday Date Calculation (ASSUMING Leap year calculation is correct)
Rating A: Code correct for Leap and Non leap yeat
Rating B: Code almost correct for Leap and Non leap year, some small mistake
Rating C: Code mostly incorrect,some attempt made in the right direction
Rating D: No code or completely wrong code
Assigned grade: A
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: Sunday Date Calculation (ASSUMING Leap year calculation is correct)
Rating A: Code correct for Leap and Non leap yeat
Rating B: Code almost correct for Leap and Non leap year, some small mistake
Rating C: Code mostly incorrect,some attempt made in the right direction
Rating D: No code or completely wrong code
Assigned grade: D
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: Sunday Date Calculation (ASSUMING Leap year calculation is correct)
Rating A: Code correct for Leap and Non leap yeat
Rating B: Code almost correct for Leap and Non leap year, some small mistake
Rating C: Code mostly incorrect,some attempt made in the right direction
Rating D: No code or completely wrong code
Assigned grade: D