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.
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.