Question: Can you help me with this in C please? Part 1) Write a program that read the data from the file Storm_Data.txt and then switch
Can you help me with this in C please?
Part 1) Write a program that read the data from the file Storm_Data.txt and then switch the rows and columns, and write the switched data to a file name Rotate_Data.txt with header information. For example, your rotate_data file should look like something like the example that was uploaded.
Storm_Data
Hazel 1954 4 144.3
Audrey 1957 4 157.0
Donna 1960 4 133.1
Carla 1961 4 157.7
Camille 1969 5 166.6
Celia 1970 3 111.1
Frederic 1979 3 123.4
Allen 1980 3 128.9
Gloria 1985 3 121.2
Hugo 1989 4 130.0
Andrew 1992 5 200
Opal 1995 3 119.8
BlaBla 2017 2 100
Unknown 1901 1 75.9
Rotate_Data_Example
Hurricane Name -> |Hazel |Audrey |Donna |Carla |Camille |Celia |Frederic |Allen |Gloria |Hugo |Andrew |Opal |BlaBla |Unknown
Year -> |1954 |1957 |1960 |1961 |1969 |1970 |1979 |1980 |1985 |1989 |1992 |1995 |2017 |1901
Category -> |4 |4 |4 |4 |5 |3 |3 |3 |3 |4 |5 |3 |2 |1
Windspeed(MPH) -> |144.30 |157.00 |133.10 |157.70 |166.60 |111.10 |123.40 |128.90 |121.20 |130.00 |200.00 |119.80 |100.00 |75.90
Part 2) Write a program that read the data in the file Storm_Data.txt and write the sorted data by wind speed (last column) to a file Order_Data.txt. You can also refer to chapter 5 for sorting array.
Order_data_example
Allen 1980 3 128.90
Andrew 1992 5 200.00
Audrey 1957 4 157.00
BlaBla 2017 2 100.00
Camille 1969 5 166.60
Carla 1961 4 157.70
Celia 1970 3 111.10
Donna 1960 4 133.10
Frederi 1979 3 123.40
Gloria 1985 3 121.20
Hazel 1954 4 144.30
Hugo 1989 4 130.00
Opal 1995 3 119.80
Unknown 1901 1 75.90
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
