In this exercise, create a form that accepts one or more scores from the user. Each time score added the score total, score count, average score and letter grade calculated and displayed....

In this exercise, create a form that accepts one or more scores from the user. Each time score added the score total, score count, average score and letter grade calculated and displayed.


Figure 1Score Calculator Form


1. Start a new project named ScoreCalculator.


2. Add labels, text boxes, and buttons to the default form and set the properties of the form and its controls so they appear as shown above. Controls are to have meaningful names.


3. Rename the form to frmScoreCalculator. When ask to modify any references to the form, click the Yes button.


4. When the user presses the Enter key, the Click event of the Add button should fire. When the user presses the Esc key, the Click event of the Exit button should fire.


5. Declare two class variables to store the score total and the score count.


6. Create an event handler for the Click event of the Add button. This event handler should get the score the user enters, calculate, and display the score total, score count, average score, letter grade, and move the focus to the Score text box. It should provide for integer entries, but you can assume that the user will enter valid integer values. The letter grade ranges are:
























Letter grade



A



B



C



D



F



7. Create an event handler for the Click event of the Clear Scores button. This event handler should set the two class variables to zero, clear the text boxes on the form, and move the focus to the Score text box.


8. Create an event handler for the Click event of the Exit button that closes the form.


9. Test the application to be sure it works correctly.


10. Include a header and meaningful comments throughout your program. The header includes your first and last name, date program completed, and a summary of the program. Example in Figure 2.





Figure 2 Header using block comments


11. Zip the entire project folder before submitting to the drop box. Do not go inside the folder created when the project created. To zip right click on the folder -> Click Sent to -> Click Compressed (zipped) folder. Do not go inside the zipped folder to run the program the program compressed. To run the program again, go back to the original folder not zipped.



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here