Write a program to compute the exact number of days between


Write a program to compute the exact number of days between any two dates in history. Call this program file b.c. A sample run, with user input in boldface, would be:

Enter first date: 10/5/1846
Enter second date: 6/2/2005
There are 57949 days between the two dates.

Note that the year must be entered as four digits since it can be from any century. (For this assignment you can ignore the fact that different calendars have been used in different periods in history, and just extend the calendar we currently use forward and backward in time.) The program should check the input format for each date, including: month between 1 and 12, and date within the actual number of days for that month. If an input error occurs the program should print an appropriate message and re-input the date. Use the following rule to compute leap years.

 

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a program to compute the exact number of days between
Reference No:- TGS0662612

Expected delivery within 24 Hours