Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This involves programming psuedocode So here is the question: Design a program that asks the user to enter a series of 20 numbers. The program

This involves programming psuedocode

So here is the question:

Design a program that asks the user to enter a series of 20 numbers. The program should store the numbers in an array and then display the following data:

* 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

However I need to make psuedocode as follows:

The main module should have: a. Create a Constant to represent the number of Elements (seats) in the ARRAY

, b. Declare one variable to represent the Array of type Integer

c. Declare five other variables of type Integer

d.Create a SET line

e. Create a SET line

f. The main module also needs two loops:

i. The first loop should be a for loop that Displays a question asking the user to type in a number and also has an INPUT statement that reads each one in the ARRAY

j. The second loop should also be a for loop that must have a formula to total all the numbers inside the Array.

k. Add an if statement inside the body of the second loop.

l. Also, add another if statement inside the body of the second loop similar to line# # 21,22 and 23 of page 308 g. Finally, it should have a formula to calculate the average: Use SET to create an average formula

m. Finally, the last line of the first module it should Call the second module

2. The second module should only have four DISPLAY lines showing the Total, average, lowest and highest numbers.

There is a lot to do in here so thanks a ton if you can find an answer to it!

If you can please write this in psuedocode. Thanks in advance!

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

Expert Oracle9i Database Administration

Authors: Sam R. Alapati

1st Edition

1590590228, 978-1590590225

More Books

Students also viewed these Databases questions

Question

Why do HCMSs exist? Do they change over time?

Answered: 1 week ago