Design an algorithm to find the weighted average of four test scores. The four test scores and their respective weights are give
n in the following format: testscore1 weight1 ... For example, the sample data is as follows: 75 0.20 95 0.35 85 0.15 65 0.30 The user is supposed to enter the data and press a Calculate button. The program must display the weighted average.
This is python algorithm for finding average weight. To get average weight, you sum up all data involved and divide that amount by the number of data provided.