Question: LANGUAGE: JAVA Functional requirements: Recurring rainfall calculation: Design a program called Rainfall that reads a list of numbers from the standard input (console) representing daily

LANGUAGE: JAVA

Functional requirements:

Recurring rainfall calculation: Design a program called Rainfall that reads a list of numbers from the standard input (console) representing daily rainfall amounts as entered by a user. Produce the average of the non-negative values in the list up to end of file. There may be negative numbers in the list.

Nonfunctional requirements:

  • Performance: For each additional input item, the program should produce a small, finite number of steps.
  • Scalability: The program should handle arbitrarily large input sequences.
  • Testability: Give some initial thought to the way your program could support automatic testing (without, say, the user entering any data or reading any data from an external file).

Submission Requirements:

  • Pseudocode: solution using high-level pseudocode. Emphasize concepts and functionality rather than syntactic detail.
  • Reflection: document any key design decisions you faced and how you made one choice over the other(s). Include your initial thoughts on testability here.

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!