Question: In C program (2 points). A more interesting type of average is a weighted average. A weighted average is computed by summing up a series
In C program

(2 points). A more interesting type of average is a weighted average. A weighted average is computed by summing up a series of weight/value pairs, and then dividing the result by the sum of the weights. Copy the avg.c program into weight.c and modify it to read and compute a weighted average. Here's an example run: Enter a weight/value pair: 20 90 Enter a weight/value pair: 30 80 Enter a weight/value pair: 50 60 Enter a weight/value pair: [control-D] The weighted average of 3 input values is 72.000000
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
