Today is Saturday, September 14, 2019 and the exam for CIS1300 is on December 9, 2019. How many days do you have before the exam? Well, you have 86 days! This count includes today but does not include the day of the exam. In other words:
From and including: Saturday, September 14, 2019
To, but not including Monday, December 9, 201
Wouldn't it be nice to be able to ask how many days separated any two days? Wait no more, you are going to write this wonderfully useful program as your first assignment in CIS1300!
You will write this program in increasingly more powerful forms. At each stage you will earn a grade so that it you do all stages you can earn 100% but if you cannot finish the last stage you can earn 80%.
For Stages A to D, both the start date and the end date are in the same year.
Stage A)
./daysCalculatorA dd1 mm1 yyyy1 dd2 mm2 yyyy2
where dd1 mm1 yyyy1 represents the start date and dd2 mm2 yyyy2 represents the end date. The program returns the number of days for
From and including: Start Date
To, but not including End Date
The output format is just the number. For example,
$ ./daysCalculatorA 14 9 2019 9 12 2019
86
$