Ex. 5.2 — Arrays and functions

Ex. 5.2 — Arrays and functions

You cannot submit for this problem because the homework's deadline is due.

Description

Write a function which takes as input a month, and the name of the first day of the month. It should display the calendar for the requested month.

Format

Files

GNUMake

If you choose GNUMake, then you should compress assignment.h, ex1.c, ex2.c, ex3.c, ex4.c, main.c, Makefile directly into a zip and submit this zip. (A sample Makefile can be found on Canvas).

If you just finished ex2 and you immediately want to test whether your ex2 is working correctly. You need to modify your main.c, assignment.h, Makefile (delete ex1.c ex3.c ex4.c) and then compress main.c,assignment.h,Makefile,ex2.c into a zip and submit this zip.

The sample Makefile on Canvas has -o main, do not change this main!

CMake

If you choose CMake, then you should compress assignment.h, ex1.c, ex2.c, ex3.c, ex4.c, main.c, CMakeLists.txt directly into a zip and submit this zip. (A sample CMakeLists.txt can be found on Canvas).

If you just finished ex2 and you immediately want to test whether your ex2 is working correctly. You need to modify your main.c, assignment.h, CMakeLists.txt (delete ex1.c ex3.c ex4.c) and then compress main.c,assignment.h,CMakeLists.txt,ex2.c into a zip and submit this zip.

The sample CMakeLists.txt on Canvas has add_executable(main ..., do not change this main! Also, do not change cmake_minimum_required(VERSION 2.7)

Input

one line with one integer and the three first letters of a day

Output

similar to the sample output below

Sample 1

Input

6 Fri

Output

June
Sun Mon Tue Wed Thu Fri Sat
                     1   2
 3   4   5   6   7   8   9
10  11  12  13  14  15  16
17  18  19  20  21  22  23
24  25  26  27  28  29  30

Limitation

1s, 32MiB for each test case.

Homework 5 (Group)

Not Claimed
Status
Finished
Problems
4
Open Since
2019-10-29 00:00
DDL
2019-11-01 23:59
Extension
24.0 hour(s)