Tsunamis. In this chapter, we defined a structure that can be used to represent information for tsunamis:
struct tsunami{ int mo, da, yr, fatalities; double max_height; char location[20];};
The following set of problems refers to the file waves2.txt that contains information for large tsunamis from the 1990s. Note that the information in the file is ordered by date.
Write a program to read the information in waves1.txt. Use the preceding using the structure and print a report with the year containing the largest number of tsunamis. Use an output format similar to the following:
Information for Large Tsunamis from the 1990sYear xxxx had maximum number of xxx tsunamis.
Note: You do not need an array to solve this problem.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.