Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Mastering Apache Cassandra 3 X An Expert Guide To Improving Database Scalability And Availability Without Compromising Performance

Authors: Aaron Ploetz ,Tejaswi Malepati ,Nishant Neeraj

3rd Edition

1789131499, 978-1789131499

More Books

Students also viewed these Databases questions