Question: Using shell script , given a month and the day of the week that's the first of that month, print a calendar for the month.

Using shell script, given a month and the day of the week that's the first of that month, print a calendar for the month. (Remember, number of days in months is different and use to go to a new line.)

For example:

Using shell script, given a month and the day of the week

Enter number of days in a month: 30 Enter starting day of the month (1 SUN): Sun Mon Tue Wed Thu Fri Sat 1 23 4 5 67 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Enter number of days in a month: 30 Enter starting day of the month (1 SUN): Sun Mon Tue Wed Thu Fri Sat 1 23 4 5 67 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

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!