Question: Exercise 6 . 7 Given a month and a year, the Unix cal command produces a calendar for that month; for example, cal 1 0
Exercise Given a month and a year, the Unix cal command produces a calendar for that month; for example, cal produces
Code download
Given a year, as in cal the output is a calendar for that year.
Your task is to design a modular architecture for a proposed implementation of the cal command. See instructions below.
a List the modules in your architecture. Design each module so it has a coherent responsibility and so it can be modified independently of the others. Use descriptive names for the modules.
b Provide a brief overview of how the modules interact to produce the calendar for a month.
c Provide a view guide that consists of a module hierarchy and an element catalog.
Here are some instructions:
Allow for your version of cal to be modified, if needed, to produce dates in the European style, with Monday as the first day of the week in the calendar for a month. Note that the preceding example is in the US style, with Sunday as the first day of the week. The format for a yearly calendar has yet to be determined.
As a simplification, your design must work for months starting October and full years starting Thus, the start date for your calendar is Sunday, October The US calendar changed in September : the month had only days instead of the usual
Note that this exercise is about a modular software architecture, not its implementation.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
