Question: Write a program compare.cpp that asks the user to input two dates (the beginning and the end of the interval). The program should check each
Write a program compare.cpp that asks the user to input two dates (the beginning and the end of the interval). The program should check each day in the interval and report which basin had higher elevation on that day by printing East or West, or print Equal if both basins are at the same level.
Example:
$ ./compare Enter starting date: 09/13/2018 Enter ending date: 09/17/2018 09/13/2018 East 09/14/2018 East 09/15/2018 East 09/16/2018 East 09/17/2018 East
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
