Weihted Average
Write a C program to calculate and print the weighted average of a list of N
floating point number, using the formula
Xave = F1X1 + F2X2+...+ FnXn
where the F's are fractional weighting factors,
i.e. 0<=F1<1, and F1+F2+...+Fn=1
For example: F1=0.1 F2=0.2 F3=0.3 F4=0.4 for n=4 and the sum=1.0
(a) Assume that N=4, and that...
User Profile
Collapse
-
How to calculate weighted average
-
Funtion to help finding the Largest Value
Who can help solve this problem???
Finding the Largest Value
(a) write a function, largest(), that returns the largest value in a signed integer array. The array and its size are passed as arguments.
(b)Write a main program that inputs MAX values from the keyboard into a signed
integer array, array, and points, using largest(), the largest value to the screen.
No activity results to display
Show More