Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Sybase Database Administrators Handbook

Authors: Brian Hitchcock

1st Edition

0133574776, 978-0133574777

More Books

Students also viewed these Databases questions

Question

Recognize the four core purposes service environments fulfill.

Answered: 1 week ago