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 then read a year from the keyboard. Then print the information for all tsunamis from that year. Use an output format similar to the following:
Information for Large Tsunamis from the 1990sDate Location Maximum Wave (m) Fatalities
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.