Problem

Wave steepness is the ratio of wave height(WH) to wave length(WL) and is an indicator of w...

Wave steepness is the ratio of wave height(WH) to wave length(WL) and is an indicator of wave stability. When wave steepness exceeds a 1/7 ratio; the wave becomes unstable and begins to break. Assume a data file exits with the following header:

#YY MM DD HH MM WH(m) WL(m)

Each subsequent line in the data file contains time and wave height measurements, in the following format:

year(int) month(int) day(int) hour(int) minute(int) wave height(double) wave length(double)

Write a program that will generate a report given an input file in the above format. The program should calculate and report the steepness for each entry in the data file and issue a warning message when the steepness exceeds a 1/7 ratio. The program should then print a summary of the wave height, length and steepness of the highest 50% of the waves measured. The input file can be of any length.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT