Java - Accumulate test scores
This project requires a basic GUI with a somewhat complicated action listener.
Operation •The user enters test scores one at a time and then clicks the Enter Score button. •For each entered score, the application adds one to the number of scores, calculates the average score, and determines what the best score is so far. Then, it displays the number of scores, average score, and best score in the three disabled text fields. •The user can click the Clear button to reset everything to zero. •When the user closes the frame or clicks the Close button, the application exits. Specifications •The average score is the sum of all scores divided by the number of scores. •Assume valid data is entered. Hint •If you have trouble getting the labels and text fields to line up properly, try adjusting the frame size. When you use the Flow layout manager, the width of the frame affects how components you add to the frame are lined up. Enhancement •Add data validation by catching the exception that's thrown when the user enters invalid data.