Question

In: Computer Science

PLEASE USE ONLY FLOWGRITHM!!! Design a modular program that accepts as input 20 numbers between 0...

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!!!

Solutions

Expert Solution

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)


Related Solutions

Design a modular program that accepts as input 20 numbers between 0 and 100 (including 0...
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....
Design a modular program which asks the user to enter a list of numbers. The numbers...
Design a modular program which asks the user to enter a list of numbers. The numbers must be stored in an array. The program then finds the index of the first occurrence of the smallest element in the array and the last occurrence of the largest element in the array. The program displays the position and value of each of these items.
Please write in python Use modular design to write a program that asks the user to...
Please write in python Use modular design to write a program that asks the user to enter his or her weight and the name of a planet. The program then outputs how much the user would weigh on that planet. The following table gives the factor by which the weight must be multiplied for each planet. PLANET CONVERSION FACTOR Mercury 0.4155 Venus 0.8975 Earth 1.0000 Moon 0.1660 Mars 0.3507 Jupiter 2.5374 Saturn 1.0677 Uranus 0.8947 Neptune 1.1794 Pluto 0.0899 The...
Design a program that will ask the user to input two integer numbers and then perform...
Design a program that will ask the user to input two integer numbers and then perform the basic arithmetic operations such as addition and subtraction. Each calculation is done by a separate function. The main function gets the input from the user, then calls the addition function and the subtraction function one at a time to perform the calculations. Each calculation function (addition or subtraction function) performs an arithmetic operation and then returns the calculation results back to where it...
Design the logic for a program that allows a user to enter 20 numbers, then displays...
Design the logic for a program that allows a user to enter 20 numbers, then displays them in the reverse order of entry. Design the logic for a program that allows a user to enter 20 numbers, then displays each number and its difference from the numeric average of the numbers entered. The program is C++. I need a Pseudocode
Design a complete program that asks the user to enter a series of 20 numbers. The...
Design a complete program that asks the user to enter a series of 20 numbers. The program should store the numbers in an array and then display each of the following data: I. The lowest number in the array II. The highest number in the array III. The total of the numbers in the array IV. The average of the numbers in the array *PYTHON NOT PSUEDOCODE AND FLOW CHART!!!!*
Lab 1 – Numbers in Descending Order Design an application that accepts 10 numbers and displays...
Lab 1 – Numbers in Descending Order Design an application that accepts 10 numbers and displays them in descending order For the programming problem, create the pseudocode and enter it below. Enter pseudocode here
Write a program that accepts a string and character as input, then counts and displays the...
Write a program that accepts a string and character as input, then counts and displays the number of times that character appears (in upper- or lowercase) in the string. Use C++ Enter a string: mallet Enter a character: a "A" appears 1 time(s) Enter a string: Racecar Enter a character: R "R" appears 2 time(s)
Design a Python script that accepts as input a user-provided list and transforms it into a...
Design a Python script that accepts as input a user-provided list and transforms it into a different list in preparation for data analysis, the transformed list replaces each numeric element in the original list with its base-10 order of magnitude and replaces string elements with blanks. Example: This script accepts as input a user-provided list expected to contain non-zero numbers and strings. It then prints a transformed list replacing numbers with their order of magnitude, and strings as blanks. Type...
Writing a Modular Program in Java In this lab, you add the input and output statements...
Writing a Modular Program in Java In this lab, you add the input and output statements to a partially completed Java program. When completed, the user should be able to enter a year, a month, and a day to determine if the date is valid. Valid years are those that are greater than 0, valid months include the values 1 through 12, and valid days include the values 1 through 31. Instructions Notice that variables have been declared for you....
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT