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 to calculate the average steepness given an input file in the above format. The program should also determine and print what percentage of the time the steepness exceeded the average. 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.