Wednesday
May 22, 2013

Homework Help: programming

Posted by Anonymous on Tuesday, April 3, 2012 at 6:30pm.

You are required to design and write an application that will analyze an input file (InputFile.txt); the file contains a date on each line. Your algorithm should output all the missing dates, excluding Saturdays and Sundays. You should not cater for public holidays. Also keep in mind: each leap year (every 4 years) contains an extra date for February 29th. Leap years: 2000, 2004, 2008, …

Your results should also output a date range instead of each individual date; if there is more than one concurrent date missing. For example: if you are missing 2008/02/03, 2008/02/04 and 2008/02/05 you should output 2008/02/03 – 2008/02/05.

Your output should be written to a file (OutputFile.txt).

Example:

If you input was:

2008/01/03
2008/01/04
2008/01/07
2008/01/08
2008/01/09
2008/01/11
2008/01/14
2008/01/18
2008/01/21
2008/01/22
2008/01/24

Your output should be:

2008/01/10
2008/01/15 – 2008/01/17
2008/01/23

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

VB 2008 Programming - HELP!!!! I'm not sure How to get started nor the steps...
C++ - File version maintenance utility   A team of software developers has...
Unix Shell script - Shell script Using "if" statement checks for a ...
Computer Science - I need to write a program to solve for the following: Suppose...
programming - Write a C program to sort the bags by weight. Assume that the ...
Unix Script - "Using "if" statement checks for a file called &...
C++ - Can anyone help me with my c++ program? Its a program I have to write ...
programming - How do I delete a file on my shared LAN network with vbs??? 1. The...
Programming and algorithms - For each of the following problems, use the top-...
Programming - 2. Then it should prompt the user for the input file name of the ...

For Further Reading

Search
Members
Community