Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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/2018 Enter ending date: 09/17/2018 09/13/2018 West 09/14/2018 West 09/15/2018 West 09/16/2018 West 09/17/2018 West Explanation: Date 09/13/2018 09/14/2018 09/15/2018 09/16/2018 09/17/2018 East (ft) 581.94 581.8 581.62 581.42 581.16 West (ft) 582.66 582.32 581.94 581.55 581.2 West is higher West is higher West is higher West is higher West is higher 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/2018 Enter ending date: 09/17/2018 09/13/2018 West 09/14/2018 West 09/15/2018 West 09/16/2018 West 09/17/2018 West Explanation: Date 09/13/2018 09/14/2018 09/15/2018 09/16/2018 09/17/2018 East (ft) 581.94 581.8 581.62 581.42 581.16 West (ft) 582.66 582.32 581.94 581.55 581.2 West is higher West is higher West is higher West is higher West is higher
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started