HW1 - CSCI-1100 Computer Science I Rensselaer Polytechnic...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CSCI-1100 Computer Science I Rensselaer Polytechnic Institute Fall 2009 Homework #1 Due: On the date shown on the LMS assignment drop box Remember that homework problems are to be done by you alone! We will check your scripts for copying using a system called MOSS. Introduction You are to write a C++ program that reads a list of months from a file and puts a calendar for each month into a separate file. Sample output is shown below. The output is to be put into a file with the name of the month followed by the string”.txt”. For example, if the month is “January” then the output file will be “January.txt” and if it is “May” it will be “May.txt”. The input file will consist of a list of month names with each name followed by white space. Each name will have one upper case character followed by the rest all in lower case. Discussion I suggest that you organize your program into at least the following set of functions: daysInMonth – given a month (number from 1 to 12), return that number of days in that month in 2009. dayOfWeek – given the day and month return what day of the week that date falls on in
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

HW1 - CSCI-1100 Computer Science I Rensselaer Polytechnic...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online