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,k=0,e=0;
	cin>>N>>d;
	while(d>7){
		d-=7;
	}
		cout<<"Month 1: ";
	for(int i=8-d;i<=31;i+=7){
		cout<<i<<" ";
		k=i;
	}
	cout<<"\n"<<"Month 2: ";
	if(N%4==0){
		if(N%100==0){
			if(N%400==0)
				e=29;
			else
				e=28;
		}
		else
			e=29;
	}
	else e=28;
	for(int i=7-(31-k);i<=e;i+=7){
		cout<<i<<" ";
		k=i;
	}
	
	cout<<"\n"<<"Month 3: ";
	for(int i=7-(e-k);i<=31;i+=7){
		cout<<i<<" ";
		k=i;
	}
	cout<<"\n"<<"Month 4: ";
	for(int i=7-(31-k);i<=30;i+=7){
		cout<<i<<" ";
		k=i;
	}
	cout<<"\n"<<"Month 5: ";
	for(int i=7-(30-k);i<=31;i+=7){
		cout<<i<<" ";
		k=i;
	}
	cout<<"\n"<<"Month 6: ";
	for(int i=7-(31-k);i<=30;i+=7){
		cout<<i<<" ";
		k=i;
	}
	cout<<"\n"<<"Month 7: ";
	for(int i=7-(30-k);i<=31;i+=7){
		cout<<i<<" ";
		k=i;
	}
	cout<<"\n"<<"Month 8: ";
	for(int i=7-(31-k);i<=31;i+=7){
		cout<<i<<" ";
		k=i;
	}
	cout<<"\n"<<"Month 9: ";
	for(int i=7-(31-k);i<=30;i+=7){
		cout<<i<<" ";
		k=i;
	}
	cout<<"\n"<<"Month 10: ";
	for(int i=7-(30-k);i<=31;i+=7){
		cout<<i<<" ";
		k=i;
	}
	cout<<"\n"<<"Month 11: ";
	for(int i=7-(31-k);i<=30;i+=7){
		cout<<i<<" ";
		k=i;
	}
	cout<<"\n"<<"Month 12: ";
	for(int i=7-(30-k);i<=31;i+=7){
		cout<<i<<" ";
		k=i;
	}
}

Grading criterion: Correct I/O incl. Format
Rating A: I/O Handled correctly
Rating B: Error in I/O
Rating C: 0
Rating D: 0
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 y,d;
	int m=1;
	int t;
	cin>>y>>d;
	int i=8-d;

	if((y%4==0 && y%100!=0) || (y%4== 0 && y%400==0))
	{
		repeat(12)
		{
			if(m==1 || m==3 || m==5 || m==7 || m==8 || m==10 || m==12)
			{
				t=31;
			}
			else if( m==4 || m==6 || m==9 || m==11)
			{
				t=30;
			}
			else if( m==2)
			{
				t=29;
			}
			cout<<"Month "<<m<<": ";
			while(i<=t)
			{
				cout<<i<<" ";
				i=i+7;
			}
			cout<<endl;
			m++;
			i=7-(t-i+7);
		

		
		}
	}
	else
	{
		repeat(12)
                {
                        if(m==1 || m==3 || m==5 || m==7 || m==8 || m==10 || m==12)
                        {
                                t=31;
                        }
                        else if( m==4 || m==6 || m==9 || m==11)
                        {
                                t=30;
                        }
                        else if( m==2)
                        {
                                t=28;
                        }
			cout<<"Month "<<m<<": ";
                        while(i<=t)
                        {
                                cout<<i<<" ";
                                i=i+7;
                        }
                        cout<<endl;
                        m++;
                        i=7-(t-i+7);
		}


	}

}

Grading criterion: Correct I/O incl. Format
Rating A: I/O Handled correctly
Rating B: Error in I/O
Rating C: 0
Rating D: 0
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 ;

	while( i <= 31){
         cout << "Month 1 :" ; 
	   i+=7 ;
	   cout << i << " " ;
	}

	while((i > 31 )&&(j <= a) ){
		j = i - 31 ;
		cout << "Month 2 :" ;
	       j+=7 ;
               cout << j << " ";
	}

	while ((j > a )&&(k <= 31)){

		k = j - a ;
		cout << "Month 3 :" ;
		 k+= 7;
		 cout << k << " " ;
	}
	while((k>31)&&(l <= 30){
			l = k - 31 ;

			cout << "Month 4 :" ;
			l +=7
			cout << l << " " ; 
			}

	while((l>30)&&(m<= 31 ){
		 m = l -30 ;

		 cout << "Month 5 :" ;
		 m +=7 
		 cout << m << " ";
		 }
	while((m>31)&&(n<30)){
	 n = m - 31 ;
	 cout << "Month 6 :" ;
	 n += 30 ;
	 cout << n << " " ;
	 }

	 while((n>30)&&(o < 31)){
	  o = n - 30 ;
	  cout << "Month 7: " ;
	  o += 7 ;
	 cout  << o << " " ;
	 }

	while((o>31)&&(p< 31)){
	       p = o - 31 ;
       cout << "Month 8: " ;
       o +=7 ;
 cout << o << " ";
	}
       while((p>31)&&(q< 30)){
       q = p - 30 ;
      cout << "Month 9: " ;
      q+=7 ;
      cout << q << " " ;
       }
       while((q>

Grading criterion: Correct I/O incl. Format
Rating A: I/O Handled correctly
Rating B: Error in I/O
Rating C: 0
Rating D: 0
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,febday,sunday,maxday;
	cin>>N>>d;
	sunday=8-d;
	if(N%4!=0)
	
		febday=28;
	if(N%400!=0)
		febday=28;
	else
		febday=29;

	for(int i=1;i<=12;i++)
	{
		if(i==1)
                        maxday=31;
                else if(i==2)
                        maxday=febday;
                else if(i==3)
                        maxday=31;
                else if(i==4)
                        maxday=30;
                else if(i==5)
                        maxday=31;
                else if(i==6)
                        maxday=30;
                else if(i==7)
                        maxday=31;
                else if(i==8)
                        maxday=31;
                else if(i==9)
                        maxday=30;
                else if (i==10)
                        maxday=31;
                else if (i==11)
                        maxday=30;
                else
                        maxday=31;

		cout<<"Month "<<i<<":";
		while(sunday<=maxday)
                         {
                	        cout<<" "<<sunday;
                        	sunday= sunday+7;
                          }
		cout<<"\n";
		sunday=sunday-maxday;
				
	}
}

Grading criterion: Correct I/O incl. Format
Rating A: I/O Handled correctly
Rating B: Error in I/O
Rating C: 0
Rating D: 0
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;
	int j = 1+(7-d);
	if(N%4 == 0 || N%400 == 0)
	{
		if(N%4 != 0 && N%100 == 0) 
		{
			cout<<""<<endl;
		}
		else
		{
			for(int i=1;i<=12;i++)
			{
			 
				cout<<"Month "<<i<<":";
				
				if(i==2)
				{
					while(j<=29)
					{
						cout<<j<<" ";
						j = j+7;
					}
					cout<<endl;
				}
				if(i == 1||i==3||i==5||i==7||i==8||i==10||i==12)
				{
					while(j<=31)
					{
						cout<<j<<" ";
						j = j+7;
					}
					cout<<endl;
				}
				else
				{
					while(j<=30)
					{
						cout<<j<<" ";
					}
					cout<<endl;
				}
			}
		}
	}
	else
	{
		for(int i=1;i<=12;i++)
		{
		
			cout<<"Month "<<i<<":";
			if(i==2)
			{
				while(j<=28)
				{
					cout<<j<<" ";
					j = j+7;
				}
				cout<<endl;
			}
			if(i==1||i==3||i==5||i==7||i==8||i==10||i==12)
			{
				while(j<=31)
				{
					cout<<j<<" ";
					j = j+7;
				}
				cout<<endl;
			}
			else
			{
				while(j<=30)
				{
					cout<<j<<" ";
				}
				cout<<endl;
			}
		}
	}
}

Grading criterion: Correct I/O incl. Format
Rating A: I/O Handled correctly
Rating B: Error in I/O
Rating C: 0
Rating D: 0
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,c;
	cin >> N >> d;
	c = 8-d;
	while(d<31){cout << "month1:" ;
	d = d + c;
	cout << d;}
}

Grading criterion: Correct I/O incl. Format
Rating A: I/O Handled correctly
Rating B: Error in I/O
Rating C: 0
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, Sun,month, M = 1;
    int Jan = 31, Feb = 28, Mar = 31, Apr = 30, May = 31, Jun = 30, Jul = 31, Aug = 31, Sep = 30, Oct = 31, Nov = 30, Dec = 31;
    cin >> N >> d;
    //day
    if(d == 1){
        Sun = 7;
    }
    if(d == 2){
        Sun = 6;
    }
    if(d == 3){
        Sun = 5;
    }
    if(d == 4){
        Sun = 4;
    }
    if(d == 5){
        Sun = 3;
    }
    if(d == 6){
        Sun = 2;
    }
    if(d == 7){
        Sun = 1;
    }
    //leapyear
    if(N%400 == 0){
        Feb = 29;
    }
    if(N%100 != 0 && N%4 == 0){
        Feb = 29;
    }

    while(M <= 12){
        if(M == 1){
            month = Jan;
        }
        if(M == 2){
            month = Feb;
        }
        if(M == 3){
            month = Mar;
        }
        if(M == 4){
            month = Apr;
        }
        if(M == 5){
            month = May;
        }
        if(M == 6){
            month = Jun;
        }
        if(M == 7){
            month = Jul;
        }
        if(M == 8){
            month = Aug;
        }
        if(M == 9){
            month = Sep;
        }
        if(M == 10){
            month = Oct;
        }
        if(M == 11){
            month = Nov;
        }
        if(M == 12){
            month = Dec;
        }
        cout << "Month " << M << ":";
        while(Sun <= month){
            cout << " " << Sun;
            Sun = Sun + 7;
        }
        cout << endl;
        Sun = Sun - month;
        M++;
    }

}

Grading criterion: Correct I/O incl. Format
Rating A: I/O Handled correctly
Rating B: Error in I/O
Rating C: 0
Rating D: 0
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;
int sunday=8-d;
cout<<"Month 1: ";
while(sunday<=31){
  cout<<sunday<<" ";
  sunday+=7;
}
cout<<endl;
sunday=sunday-24;
int i;
if(N%4==0 || (N%4==0 && N%100==0)){
  i=29;
}
else{
  i=28;
}
cout<<"Month 2: ";
while(sunday<=i){
  cout<<sunday<<" ";
  sunday+=7;
}
cout<<endl;
sunday=sunday+7-i;
int m=31;
int mth=3;
repeat(5){
  cout<<"Month "<<mth<<": ";
  while(sunday<=m){
    cout<<sunday<<" ";
    sunday+=7;
  }
  cout<<endl;
  sunday=sunday+7-m;
  mth+=1;
  if(m==31){
  m=30;
  }
  else{
  m=31;
  }
}
m=31;
repeat(5){
  cout<<"Month "<<mth<<": ";
  while(sunday<=m){
    cout<<sunday<<" ";
    sunday+=7;
  }
  cout<<endl;
  sunday=sunday+7-m;
  mth+=1;
  if(m==31){
  m=30;
  }
  else{
  m=31;
  }
}
}

Grading criterion: Correct I/O incl. Format
Rating A: I/O Handled correctly
Rating B: Error in I/O
Rating C: 0
Rating D: 0
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,s=0;
while(1000<=N<=3500 && 1<=d<=12){
if(N%4==0 || N%400==0){
s=s+7;
cout<<"Month 1"<<":"<<s;
break;
}
;
if(d>=31){
continue;
}
}}

Grading criterion: Correct I/O incl. Format
Rating A: I/O Handled correctly
Rating B: Error in I/O
Rating C: 0
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;
	int d;
	cin >> N >> d:
	int t =8 - d;
	int i=1;
	while(true){ 
		if (N< 1000 || N>3500 || d<1 || d > 12){
			break;
		}
		else if(N%4 == 0 && N%400 != 0){
			cout << "Month 1: ";
			while(t<=31){
				cout<< t<< " ";
				t=t+7;
			}
			t = 31 - t;
			t = 7-t;
			cout << "Month 2: ";
			while(t<=29){
				cout << t<< " ";
			}
			t = 29 - t;
			t = 7 - t;
			cout << "Month 3: ";
			while(t<=31){
				cout << t << " ";
				t=t+7;
			}
			t =31-t;
			t = 7-t;
			cout << "Month 4: ";
			while(t<=30){
				cout<<t<<" ";
				t=t+7;
			}
			t =30 - t;
			t=t-7;
			cout << "Month 5: ";
			while(t<=31){
				cout<<t<<" ";
				t = t+7;
			}
			t = 31-t;
			t = t-7;
			cout<<"Month 6: ";
			while(t<=30){
				cout << t<< " ";
				t=t+7;
			}
			t = 30-t;
			t= t-7;
			cout<< "Month 7: ";
			while(t<=31){
				cout<<t<<" ";
				t=t+7;
			}
			t=31-t;
			t = 7-t;
			cout << "Month 8: ";
			while(t<=31){
				cout<<t<<" ";
				t=t+7;
			}
			t=31-t;
			t=7-t;
			cout << "Month 9: ";
			while(t<=30){
				cout<<t<<" ";
				t=t+7;
			}
			t = 30 - t;
			t=7-t;
			cout<<"Month 10: ";
			while(t<=31){
				cout <<t<<" ";
				t=t+7;
			}
			t=31-t;
			t = 7-t;
			cout<<"Month 11: ";
			while(t<=30){
					cout<<t<<" ";
					t=t+7;
			}
			t=30-t;
			t=7-t;
			cout<<"Month 12: ";
			while(t<=31){
				t=t+7;
			}
			break;

		}
		else if(N%4 !=0){
			continue;
		}
		else if(N%400 == 0){
			continue;
		}
	}
}

Grading criterion: Correct I/O incl. Format
Rating A: I/O Handled correctly
Rating B: Error in I/O
Rating C: 0
Rating D: 0
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 e,q,N,d,r,x,a,b,c,i,t,p,leapyr;
	cin>>N>>d;
	leapyr=0;
	if(N%100==0) {
		if(N%400==0) { 
			leapyr=N;
			}
		else {
			leapyr=0;
			}
		      }
	else if(N%4==0) {
		leapyr=N;
			}
	else{
	leapyr=0;
	    }
        
         p=7-d+1;
	 a=((31-p)%7)+1;
	 cout<<"Month 1: ";
         repeat(a){
		 cout<<p<<" ";
		 p=p+7; 
	 }
	 cout<<endl<<"Month 2: ";
	 q=7+p-31;
	  b=((29-q)%7)+1;
	  c=((28-q)%7)+1;
	 if(leapyr==N) { 
		 repeat(b) {
			 cout<<q<<" ";
			 q=q+7;}
		x=q;
		e=7+x-29;
                int o= ((31-e)%7)+1;
                cout<<endl<<"Month 3: ";
                repeat(o) {
                        cout<<e<<" ";
                        e=e+7;} 
		int f=7+e-31;
		int g=((30-e)%7)+1;
		cout<<endl<<"Month 4: ";

                 repeat(g) {
                         cout<<f<<" ";
                        f=f+7;}
	 }

         q=7+p-31;
	 else if (leapyr==0) {
		 repeat (c) { 
			 cout<<q<<" ";
			 q=q+7;}
		int y=q;
		e=7+x-28;
                int o= ((31-e)%7)+1;
                cout<<endl<<"Month 3: ";
                repeat(e) {
                        cout<<e<<" ";
                        e=e+7;
		}
		e=7+x-29;
                int o= ((31-e)%7)+1;
                cout<<endl<<"Month 3: ";
                repeat(e) {
                        cout<<e<<" ";
                        e=e+7;0
		}
		cout<<endl<<"Month 4: ";

		 int f=7+e-31;
		 int g=((30-e)%7)+1;
		 repeat(g) {
			 cout<<f<<" ";
                        f=f+7;

	 }


	       	
		

		
	 }
	 }

Grading criterion: Correct I/O incl. Format
Rating A: I/O Handled correctly
Rating B: Error in I/O
Rating C: 0
Rating D: 0
Assigned grade: B