Create a C program. Given that 1 Jan 2021 is a Friday, write a program that asks for a user input of the month number (1-12 for Jan-Dec, respectively) and prints the week day of 1st day of the...


C PROGRAM


Create a C program. Given that 1 Jan 2021 is a Friday, write a program that asks for a user<br>input of the month number (1-12 for Jan-Dec, respectively) and prints the week day of 1st day of<br>the corresponding month.<br>You may assume the no. of days įn each month e.g.:

Extracted text: Create a C program. Given that 1 Jan 2021 is a Friday, write a program that asks for a user input of the month number (1-12 for Jan-Dec, respectively) and prints the week day of 1st day of the corresponding month. You may assume the no. of days įn each month e.g.: "Thirty days hath September, April, June and November. All the rest have thirty-one, Except February, which has only twenty-eight, in one year in four, add one day more." Sample code: int daysOfMonth(int mm){ switch(mm){ case 9: case 4: case 6: case 11: return(30); case 2: return(28); default: return(31); } Sample output: Enter a month number (1-12): 5 1 May 2021 is Saturday

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here