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:

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): 1 Sun Mon Tue Wed Thu Fri Sat 1 8 15 22 2 3 4 5 6 7 9 10 11 12 13 14 16 17 18 19 20 21 23 24 25 26 27 28 30 31 29 30

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To create a shell script that prints a calendar for a ... View full answer

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 Programming Questions!