Write pseudocode to input 10 positive numbers and find the total and the average.
Answers
Answered by
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
English,
3 months ago
English,
3 months ago
Computer Science,
3 months ago
Math,
7 months ago
Math,
7 months ago
Physics,
10 months ago
Computer Science,
10 months ago
Hindi,
10 months ago