Answered step by step
Verified Expert Solution
Question
1 Approved Answer
LANGUAGE: JAVA Please provide full Pseudocode explaining each line. Functional requirements: Recurring rainfall calculation: Design a program called Rainfall that reads a list of numbers
LANGUAGE: JAVA
Please provide full Pseudocode explaining each line.
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).
Deliverables:
- Pseudocode: sketch your 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started