Question: Write a program in C , that loads from a data file a list of hurricanes making landfall in the U.S. along with the year

Write a program in C, that loads from a data file a list of hurricanes making landfall in the U.S. along with the year they occurred and the states affected before the storm was downgraded. Place each hurricanes data on a separate line of the file.

Allow the user to select whether the hurricanes should be sorted by year of occurrence or by name. Display the data in the order selected, with the year in the first column, the hurricane name in the second, and the affected states in the third. Be sure to design your sort functions to keep the year list and affected states list parallel with the hurricane names. Allow for a maximum of 30 hurricanes, but use a constant macro for this number to permit easy future expansion of the database. Sample output sorted by year: U.S. Hurricanes by Year of Occurrence

The output should report as follows:

Year Name States

---- ------- --------

1960 Donna FL, NC

1969 Camille MS

1972 Agnes FL ...

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!