At Westonci.ca, we provide clear, reliable answers to all your questions. Join our vibrant community and get the solutions you need. Get immediate and reliable answers to your questions from a community of experienced experts on our platform. Get detailed and accurate answers to your questions from a dedicated community of experts on our Q&A platform.

Write a pseudocode algorithm which inputs numeric scores and outputs the average score. The end of the data is signalled by a user input of -1.

Sagot :

Programming or the process of writing algorithms both involve pseudocode. A technique that aids the programmer in defining an algorithm's implementation is pseudocode.

The algorithms are described using pseudocodes in pseudocode algorithms because it is simpler for everyone to understand the pseudo-codes, regardless of programming experience or familiarity with a different programming language.

do{

input=take input

}

While(input not equal to -1)

{

Store in an array for every input

Like append the new input to an array

}

After loop terminates  

Take the average of the array  

By traversing through all elements of an array and store in a variable  

The sum divided by the length of the array gives the average  

IN C language:

#include<stdio.h>

Int main(){

Int input,i=0,sum,avg,are[1000];

Do{

Scanf(“%d”,&input);

}

While(input !=0)

{

arre[i]=input;

i=i+1;

}

Sum=sum(arre[]);

Avg=sum/len(arre);

Printf(“%d”,Avg);

Return 0;

}

To know more about average scores visit: brainly.com/question/28993111

#SPJ4