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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started