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 waves2.txt. Use the preceding structure and print a report with the locations of the tsunamis for each year. Use an output format similar to the following:
Information for Large Tsunamis from the 1990sYear and Locations1992 Nicaragua Flores_Island1993...
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.