answersLogoWhite

0


Best Answer

#include

void mean(int[],int);

void main()

{

int n,a[24];

printf("Enter the number of terms to find mean\n");

scanf("%d",&n);

printf("Enter the numbers\n");

for(i=0;i

scanf("%d",&a[i]);

mean(a,n);

}

void mean(int a[24],int n)

{

int sum=0,mean;

for(i=0;i

sum+=a[i];

mean=sum/n;

printf("The mean of given values is %d",mean);

}

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a program to determine the weighted arithmetic mean using C language?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering
Related questions

C program weighted arithmetic mean using c program?

double weightedmean (double runningaverage, double rawdata, double timeconstant) { return runningaverage / (1 - 1/timeconstant) + rawdata / (1/timeconstant); }


Application of arithmetic progression in design?

Arithmetic is important in design. This is true whether you are making a program for designs or you are trying to create a design.


How do you spell caulutar?

The closest word is "calculator" (arithmetic computing device or program).


How do you code the program using arithmetic exceptions?

Never.A program should handle exceptions, but should NEVER USE exceptions to control program flow.


What is an arithmetic operator in c program?

An arithmetic operator is any of the "atomic" operators to do the following math operations: + addition - subtraction / division * multiplication % modulus division


Different parts of c language program?

what are the parts of C language program


C program to implement arithmetic assignment operator?

y=2x2+3x+1


An example of a PASCAL program to find the average of a set of numbers?

how to get the arithmetic average on pascal


What is a program written in high level language called?

the program written in high level language is called "source program"


Which program translate assembly language into machine language?

Assembly langue is translated into machine language by an assembler.


Which language does the word secretaria come from?

The word secretaria is a Portuguese word that means secretariat. If a person wishes to determine the origin or language of a word then a dictionary or thesaurus may be helpful or a computer application such as an online dictionary or a language program such as Google translate may be useful.


A source program is the program written in English language?

No.