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...


c not c++


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

Extracted 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

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here