write a program to prompte the user for 2 dates
Project 3 Decision Structures (Chapter 3)
Files to be submitted:
An algorithm – a regular text file
Java Source code – a Java source file
Supporting files if any
Write a program to prompt the user for 2 dates consisting of a month and a year and display the number of years and months between these 2 dates. Either date could be the earlier date.
It is REQUIRED to use the following solution to calculate the difference between two dates that are not in the same year:
1. To calculate a positive year difference and the corresponding month difference,
a. Subtract the earlier year from the later year to get the year difference.
b. Subtract the month associated with the earlier year from the month associated with the later year.
I download the word file on the bottom.