Modify the spreadsheet code fragment in the text to compute a weighted average of the rows, where

Question:

Modify the spreadsheet code fragment in the text to compute a weighted average of the rows, where the weights of each exam score are in a one-dimensional array weights[]. For example, to assign the last of the three exams in our example to be twice the weight of the first two, you would use double[] weights = { 0.25, 0.25, 0.50 };

Note that the weights should sum to 1.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: