Procedure 3. – Define a function named procedure3() that will be called from main() function, the function will print a one-month calendar: 1. The user inputs the month and the week on which the month begins, and the program will print out the calendar of that month. For example: - Enter the month (1 for January, 12 for December): Enter the starting day of the week (1 = Monday, 7 = Sunday): 3 4 Mon Tue Wed Thu Fri Sat Sun 2 3 4 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 31 2. If the month input is 2 (February), the program should ask if this is a leap year, if so, the program should print out the calendar of 29 days; otherwise, it should print out the calendar of 28 days in this month, for example: Enter the month (1 for January, 12 for December): Enter the starting day of the week (1 = Monday, 7 Is this a leap year (Y for yes, N or others for no): Y 2 Sunday): 5 Mon Tue Wed Thu Fri Sat Sun 1 3 4 7 8 9. 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 28 29 Another example is shown below: Enter the month (1 for January, 12 for December): 2 Enter the starting day of the week (1 Is this a leap year (Y for yes, N or others for no): N Monday, 7 = Sunday): 3 Mon Tue Wed Thu Fri Sat Sun 2 3 4 6. 7 8. 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 H 00 o M O H N N H N N

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

c not c++

Procedure 3. – Define a function named procedure3() that will be called from main() function,
the function will print a one-month calendar:
1. The user inputs the month and the week on which the month begins, and the program
will print out the calendar of that month. For example:
12 for December): 3
Enter the month (1 for January,
Enter the starting day of the week (1
Monday, 7 = Sunday): 4
Mon Tue Wed Thu Fri Sat Sun
1
2
3
4
5
6.
7
8.
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
2. If the month input is 2 (February), the program should ask if this is a leap year, if so, the
program should print out the calendar of 29 days; otherwise, it should print out the
calendar of 28 days in this month, for example:
Enter the month (1 for January,
12 for December):
2
Enter the starting day of the week (1
Is this a leap year
Monday, 7 =
(Y for yes, N or others for no): Y
Sunday): 5
Mon Tue Wed Thu Fri Sat Sun
1
2
3
4
7
8
9.
10
11
12
13
14
15
16
17
18
19
21
23
24
25
26
27
28
29
Another example is shown below:
Enter the month (1 for January,
12 for December):
2
Enter the starting day of the week (1 =
Is this a leap year
Monday, 7 =
(Y for yes, N or others for no): N
Sunday): 3
Mon Tue Wed Thu Fri Sat Sun
1
3
4
6.
7
8.
9.
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
H N ON
O N
H N ON
Transcribed Image Text:Procedure 3. – Define a function named procedure3() that will be called from main() function, the function will print a one-month calendar: 1. The user inputs the month and the week on which the month begins, and the program will print out the calendar of that month. For example: 12 for December): 3 Enter the month (1 for January, Enter the starting day of the week (1 Monday, 7 = Sunday): 4 Mon Tue Wed Thu Fri Sat Sun 1 2 3 4 5 6. 7 8. 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 2. If the month input is 2 (February), the program should ask if this is a leap year, if so, the program should print out the calendar of 29 days; otherwise, it should print out the calendar of 28 days in this month, for example: Enter the month (1 for January, 12 for December): 2 Enter the starting day of the week (1 Is this a leap year Monday, 7 = (Y for yes, N or others for no): Y Sunday): 5 Mon Tue Wed Thu Fri Sat Sun 1 2 3 4 7 8 9. 10 11 12 13 14 15 16 17 18 19 21 23 24 25 26 27 28 29 Another example is shown below: Enter the month (1 for January, 12 for December): 2 Enter the starting day of the week (1 = Is this a leap year Monday, 7 = (Y for yes, N or others for no): N Sunday): 3 Mon Tue Wed Thu Fri Sat Sun 1 3 4 6. 7 8. 9. 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 H N ON O N H N ON
Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY