Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Project 4-2 Accumulate test score data In this assignment, you'll create a form that accepts one or more scores from the user. Each time a

image text in transcribed

Project 4-2 Accumulate test score data In this assignment, 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: 98Ado Score total: 472 Score count: 5 Average: 94 Clear Scores 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. Include ReadOnly, TabStops and TabIndex properties where appropriate. a. When the user presses the Enter key, the Click event of the Add button should fire b. When the user presses the Esc key, the Click event of the Exit button should fire. Declare two module-level variables to store the score total and the score count. Create an event handler for the Click event of the Add button. This event handler should a. get the score the user enters b. calculate and display the 3. 4. i. score total ii. scOore count average score move the focus to the Score text box c. d. It should provide for integer entries, but you can assume that the user will enter valid integer values. e. The code that calculates the average should always round numbers that end in 5 up to the nearest whole number 5. Create an event handler for the Click event of the Clear Scores button. This event handler should a. set the two module-level variables to zero b. clear the text boxes on the form c. move the focus to the Score text box Create an event handler for the Click event of the Exit button that closes the form Test the application to be sure it works correctly 6. 7

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

Advanced MySQL 8 Discover The Full Potential Of MySQL And Ensure High Performance Of Your Database

Authors: Eric Vanier ,Birju Shah ,Tejaswi Malepati

1st Edition

1788834445, 978-1788834445

More Books

Students also viewed these Databases questions