Computer Science, asked by jpsmithra2006, 7 months ago

Write pseudocode to input 10 positive numbers and find the total and the average.

Answers

Answered by densilalias8
1

Answer:

To run:

Start up.

Write "Enter 10 numbers separated by spaces: " on the console.

Read a reply from the console.

Loop.

If the reply is blank, break.

Get a number from the reply.

Add 1 to a count.

Add the number to a total.

Repeat.

Write "The total is: " then the total on the console.

Put the total divided by the count into an average.

Write "The average is: " then the average on the console.

Refresh the screen.

Wait for the escape key.

Shut down.

And this is what happened when I compiled and ran it and typed in some numbers (click to enlarge):

Explanation:

i hop that it helped u

Similar questions