Question: Please answer these in language C for someone with beginner level knowledge ( first grader at college ) to understand? Exercise - 1 ( a

Please answer these in language C for someone with beginner level knowledge (first grader at college) to understand? Exercise -1
(a) Write a C program that takes in the index of a month (1 for January, 2 for February, ...etc.) and displays how many days there are in that month.
(b) Now modify the above code, this time accounting for leap years (i.e., when February is 29 days instead of 28).
Bahcesehir University
CMP1401
Week4-Oct.27,2023
2728
If/Else Statements
Switch Statements
Sum-Up
0000000000
0000000000
o00
Exercise -2
Write a C program that gets two integer numbers from the user and checks whether the first integer number is a multiple of the second integer number. If it is, program will print "The first integer is a multiple of second integer", and "The first integer is not a multiple of second integer", otherwise.
(Hint: Also check any divide by zero condition, and if necessary give warning message that prints "Divide by zero error!").
00000000000
00*0000000
Example: Day of Week
Write a program that gets the number of the day and outputs the day ("Monday" for 1, "Tuesday" for 2,dots ).
 Please answer these in language C for someone with beginner level

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!