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

In the OCaml language (* Design a program called rainfa that consumes

(* 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!