Computer Science, asked by Anonymous, 1 year ago

algorithm and flowchart of the program to read n integers ,store them in array and find their sum and average.

Answers

Answered by qwwestham
5

Explanation:

you can find the solution in above picture

Attachments:
Answered by poojan
4

Algorithm and flowchart of the program to read n integers ,store them in array and find their sum and average.

Algorithm :

  • Initialize an 'array' with some range and variables int 'sum' and floating 'average' with 0. If you take list, initialize it with emptiness.

  • Initialize a variable with input from user which will be the number of integers needed to be taken.

  • Write a loop that goes on iterating until the iterable i reaches n. In between, take inputs from user and add them to sum parallelly while inserting them into the array until the condition turns False.

  • If the condition becomes false, come out of the loop and calculate average.

  • Then, print sum and average. That's it!

Flowchart :

Have mentioned it in the attachments. Have a look, pal.

If you want to check the program and it's output too, look in the attachments. The program is written in python.

Learn more :

  • What is flowchart? Explain it.

         brainly.in/question/5704107

  • Flowchart and it's usage.

        https://brainly.in/question/12232906

Attachments:
Similar questions