For the last portion of this assignment (question 5) its asking to do the following
For the last portion of this assignment (question 5) its asking to do the following:
Modify the code to allow the user to enter any number of pairs and calculate the average. In other words, the user could enter any number of pairs as long as the weight is positive. (Hint: You can prompt the user for how many they want to enter. Or; you could use a sentinel value to trigger when the user has completed entering values).