Soloway's recurring rainfall: Difference between revisions

no edit summary
m (typo... I think.)
No edit summary
Line 5:
 
Write a program that will read in integers and output their average. Stop reading when the value 99999 is input.
 
For languages that aren't traditionally interactive, the program can read in values as makes sense and stopping once 99999 is encountered. The classic rainfall problem comes from identifying success of Computer Science programs with their students, so the original problem statement is written above -- though it may not strictly apply to a given language in the modern era.
 
'''Implementation Details:'''
* Only Integers are to be accepted as input
* Output should be floating point
* Rainfall can be negative (https://www.geographyrealm.com/what-is-negative-rainfall/)
* For languages where the user is inputting data, the number of data inputs can be "infinite"
 
'''References:'''
6

edits