INTRODUCTION: In 1899 a very large tsunami was recorded in the Gulf of Alaska with a height of 197 feet, and an even larger tsunami was recorded in 1964 with a height of 230 feet. Tsunami data has...


INTRODUCTION:<br>In 1899 a very large tsunami was recorded in the Gulf of Alaska with a height of 197 feet, and an even larger<br>tsunami was recorded in 1964 with a height of 230 feet. Tsunami data has been collected from 1992 to 1998<br>and placed in a file containing the following: 1) the number of tsunamis recorded; 2) the month, day, and year<br>of cach recording; 3) the location; 4) the wave height in feet; 5) the number of fatalities. The input file is called<br>tsunamis.<br>ASSIGNMENT:<br>Using an array of structures, write a C program that will execute in the following order: 1) read the tsunami data<br>into an array of structures; 2) sort the data by year in ascending order using a bubble sorting algorithm; 3)<br>compute the average wave height; 4) find the minimum and maximum wave heights; 5) determine and print the<br>tsunamis that had wave heights greater than the average.<br>Print the results to the computer screen and to an output file called tsunamis_report.<br>OUTPUT FORMAT:<br>****<br>TSUNAMI DATA<br>Month<br>Day<br>Location<br>Height<br>Fatalities<br>Year<br>XXXX<br>Ssssssss9ssssssss<br>XX.X<br>SSssss SSS<br>XX<br>XXXX<br>Ssssssssssssssss<br>XX.X<br>XXXX<br>SSsssssSSS<br>XXXX<br>Summary Report:<br>Minimum wave height xx.x feet<br>Maximum wave height xx.x feet<br>Average wave height- xx.XX feet<br>The tsunamis with greater than the average wave height are:<br>SSsss55S5sssssSSS<br>

Extracted text: INTRODUCTION: In 1899 a very large tsunami was recorded in the Gulf of Alaska with a height of 197 feet, and an even larger tsunami was recorded in 1964 with a height of 230 feet. Tsunami data has been collected from 1992 to 1998 and placed in a file containing the following: 1) the number of tsunamis recorded; 2) the month, day, and year of cach recording; 3) the location; 4) the wave height in feet; 5) the number of fatalities. The input file is called tsunamis. ASSIGNMENT: Using an array of structures, write a C program that will execute in the following order: 1) read the tsunami data into an array of structures; 2) sort the data by year in ascending order using a bubble sorting algorithm; 3) compute the average wave height; 4) find the minimum and maximum wave heights; 5) determine and print the tsunamis that had wave heights greater than the average. Print the results to the computer screen and to an output file called tsunamis_report. OUTPUT FORMAT: **** TSUNAMI DATA Month Day Location Height Fatalities Year XXXX Ssssssss9ssssssss XX.X SSssss SSS XX XXXX Ssssssssssssssss XX.X XXXX SSsssssSSS XXXX Summary Report: Minimum wave height xx.x feet Maximum wave height xx.x feet Average wave height- xx.XX feet The tsunamis with greater than the average wave height are: SSsss55S5sssssSSS

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here