Days Elapsed Since January 1 Application
This programming assignment involves writing a Java application which inputs a date from the user, and calculates how many days have elapsed from January 1 of that year to the date specified. The user enters the date from the console, as a string of characters in the format: MM DD YYYY. For example, if the user enters
03 01 2012
then this represents March 1, 2012. In this case, the number of days elapsed is 61: 31 for January,
29 for February (2012 is a "leap year"), and
1 during March itself Similarly, if the input were
01 01 2010
then the output should indicate that 1 day has elapsed.
The output should be like this. This program accepts the following inputs and performs the corresponding actions: INPUT: ACTION: h Output this HELP text. q Quit(exit) the program. v Turn Verbose mode ON or OFF. numbers Numeric Date in format MM DD YYYY.