Answer:
Answer has been attached to this response as a source code file saved as "examAverager.java". Kindly download the file to get the answer.
Explanation:
Explanation has been added to the file source code in form of comments. It is as explanatory as possible. Kindly go through the comments in the code.
Hope this helps!