Westonci.ca is the best place to get answers to your questions, provided by a community of experienced and knowledgeable experts. Join our Q&A platform and get accurate answers to all your questions from professionals across multiple disciplines. Get detailed and accurate answers to your questions from a dedicated community of experts on our Q&A platform.
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
Thanks for using our platform. We're always here to provide accurate and up-to-date answers to all your queries. We hope you found this helpful. Feel free to come back anytime for more accurate answers and updated information. Find reliable answers at Westonci.ca. Visit us again for the latest updates and expert advice.