Solution
Solution
Problem statement:
I have choosed to solve the problem of calculating the average of a list of numbers. The
program will take a list of numerical inputs, calculate their average, and provide the result to the
user.
Input Data:
Program Functionality:
The program will take the list of numerical inputs, sum all the values in the list, and then divide
the sum by the number of elements in the list to calculate the average. The average will be
displayed to the user as the output.
Output:
The program will provide the average of the input list of numbers as the final result to the user.
PART 2
1
Example 1:
Steps:
Example 2:
Steps:
PART 3:
2
Pseudocode::
3
PART 4:
Test Case 1:
Test Case 2:
Test Case 3:
Input: [1]
PART 5:
4
commenting:
CODE:
import java.util.Scanner;
5
PART 6:
Link: https://replit.com/@0112it201026/averagecalculator?v=1