Calculate the weighted average of a list of n numbers using
the formula
xavg = f1x1+f2x2+ ….+ fnxn
where the f’s are fractional weighting factors, i.e.,
0<=fi<1, and f1+f2+….+fn = 1


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

How many main () function we can have in a project?

0 Answers  


what is the meaning of java that is (J A V A) full form of JAVA

71 Answers   AKS University, Bhel, BNL, BPO, HCL, Peacecon,


WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER

0 Answers  


Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z. z-a:zyx......ba -1-6-:-123456- 1-9-1:123456789987654321 a-R-L:a-R...L a-b-c:abbc

0 Answers  


what is the difference between #include<stdio.h> and #include"stdio.h" ?

6 Answers   TCS,






what is the difference between declaration and definition of a variable or function ?

3 Answers  


Explain bit masking in c?

0 Answers  


What is optimization in c?

0 Answers  


hi how to convert program from notepad to turboc editor can u please help me

3 Answers  


how to print "hai" in c?

13 Answers   TCS,


How to reverse a linked list

1 Answers   Aricent, Fidelity, IBM, TCS,


can we declare a function in side the structure?

2 Answers   HCL,


Categories