Question: In the OCaml language (* Design a program called rainfa that consumes a st of ints representing * daily rainfall readings. The list may contain
In the OCaml language

(* Design a program called rainfa that consumes a st of ints representing * daily rainfall readings. The list may contain the number -999 indicating * the end of the data of interest. * Produce the average of the non-negative values in the List up to the first *-999 (if it shows up). There may be negative numbers other than-999 in the * list representing faulty readings. If you cannot compute the average for * whatever reason, return -1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
