Create monthly calendar


Assighnment: Monthly Calendar

Create monthly calendar

We encounter examples of monthly calendars all the time, either in printed form or online. Creating a monthly calendar should be pretty straightforward, right? Here is an example of a monthly calendar for September of 2015:

September 2015
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5
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

So, we have the abbreviated days of the week starting with Sunday on the top line, with the actual numbered days in rows below.

The assignment is as follows. Create a way to input a month and year combination in the following format:

9/2015 or 09/2015, either format is acceptable.

Once you have that information, print out a monthly calendar for that particular month and year. You can stick with 3-letter abbreviations for the days of the week as I have done, but remember that you'll need to right align each numbered day also as I have done.

Be prepared to accept the following input range:

1/2001 up to 12/2020. In other words, you'll be required to handle any of (12 months x 20 years) 240 calendar combinations! With this many possibilities you definitely do not want to store all 240 calendars in your program, just create each calendar "on the fly".

You can either direct the calendar output to the console window, or write it to a file; either way is fine.

Don't worry about using graphics or boxes, if it looks like my example above that's great!

+++ MAKE THE COLUMN WIDTH "ADJUSTABLE" AND YOU'LL RECEIVE *EXTRA* CREDIT (I.E. ENTER A COLUMN WIDTH OF 4 OR GREATER: ) +++

Hints

For each month/year combination you'll need to determine the starting day of the week for that month, and the number of days per month so you know how many numbers to use.

Don't get "tripped up" by leap years, I'll be testing your program to see that it handles leap year months correctly.

Give it your best shot. Remember that there's nothing wrong with getting something working at first, and "fine tuning" it to eventually have it working correctly.

Format your assignment according to the following formatting requirements:

1. The answer should be typed, double spaced, using Times New Roman font (size 12), with one-inch margins on all sides.

2. The response also includes a cover page containing the title of the assignment, the student's name, the course title, and the date. The cover page is not included in the required page length.

3. Also include a reference page. The Citations and references should follow APA format. The reference page is not included in the required page length.

Solution Preview :

Prepared by a verified Expert
Programming Languages: Create monthly calendar
Reference No:- TGS02986165

Now Priced at $40 (50% Discount)

Recommended (93%)

Rated (4.5/5)