In: Computer Science
PLEASE USE ONLY FLOWGRITHM!!!
Design a modular program that accepts as input 20 numbers between 0 and 100 (including 0 and 100). The program should store the numbers in an array and then display the following information:
The lowest number in the array
The highest number in the array
The total of the numbers in the array
The average of the numbers in the array
Your program should consist of the following:
Module main. Accepts input of numbers and assigns them to an array. The array is traversed in order to find the highest number, lowest number, total and average of the numbers.
Module showStats. Displays the highest number, lowest number, total and average of the numbers.
Please Show the Flowgorithm used!!!
Please find below the flowgorithm solution for the problem given:
Main Module Flowgorithm:
showStats Module:
Explanation of modules:
Main Module:
1. Below section is used to declare the variables
2. Below section is used to input the array elements from the user between 0 to 100:
3. Below section will call the module showStats:
showStats Module:
1. Below section is used to declare the variables:
2. Below section is used to find the lowest number in the array:
3. Below section is used to find the highest number in the array:
4. Below is the counter to find total and average along with the section to output the highest, lowest, total and average of the elements of array:
Output:
Please fine below the output when the values are entered within the range:
Please find below the message when user enters number not between 0 to 100 (program continues with nest number entered by user)