Question: C++ Help, using ifstream to extract data. The question in mind has additional details here if it's necessary (https://maryash.github.io/135/labs/lab_03.html). Question: Write a program minmax.cpp that
C++ Help, using ifstream to extract data. The question in mind has additional details here if it's necessary (https://maryash.github.io/135/labs/lab_03.html).
Question:
Write a program minmax.cpp that finds the minimum and maximum storage in East basin in 2018.
Example (using made up numbers):
$ ./minmax minimum storage in East basin: 59.88 billion gallons MAXimum storage in East basin: 81.07 billion gallons
Hint:
The program should read the file line by line, while keeping track of what is the highest and the lowest storage level in the basin so far. In the end, after reading the entire file, the found values will be the minimum and the maximum storage levels for the entire year.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
