Introduction

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!

Functionality

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
$
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.