Question: https://maryash.github.io/135/labs/lab_03.html Task C. Comparing elevations Write a program compare.cpp that asks the user to input two dates (the beginning and the end of the interval).

https://maryash.github.io/135/labs/lab_03.html

Task C. Comparing elevations

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/2016 Enter ending date: 09/17/2016 09/13/2016 East 09/14/2016 East 09/15/2016 Equal 09/16/2016 West 09/17/2016 West

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!