Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CODE IN C# In this exercise, you'll create a form that accepts one or more scores from the user. Each time a score is added

image text in transcribed

CODE IN C#

In this exercise, you'll create a form that accepts one or more scores from the user. Each time a score is added the score total score count, and average score are calculated and displayed. Score Calculator Score: 981 Add Score total 472 Score count: 5 Average 94 Clear Scores Exit 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. 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. 3. Declare two class variables to store the score total and the score count. 4. 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, and average score 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. 5. 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. 6. Create an event handler for the Click event of the Exit button that closes the form. 7. Test the application to be sureit works correctly and submit it to the Chapter 4 - Score Calculator dropbox on iLearn. 1 of 1 100% GIV

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Repairing And Querying Databases Under Aggregate Constraints

Authors: Sergio Flesca ,Filippo Furfaro ,Francesco Parisi

2011th Edition

146141640X, 978-1461416401

More Books

Students also viewed these Databases questions