Question
I NEED THIS ONLY IN VISUAL BASIC Calculate Average Score Operation The user enters a score and clicks the Add button or presses the Enter
I NEED THIS ONLY IN VISUAL BASIC
Calculate Average Score
Operation
The user enters a score and clicks the Add button or presses the Enter key.
The application calculates and displays the score total, score count, and average score.
If the user clicks on the Display scores button, the application sorts the scores and displays them in a message box.
Specifications
Use a one-dimensional array to store the scores. To do that, youll need to declare the array without an initial size and then use the Redim statement to resize the array each time a score is added.
The first time the user adds a score, the Redim statement should resize the array so it contains one element. After that, the Redim statement should increase the size of the array by one.
To determine when the user is adding the first score, you can use the Is expression to test the array variable for a value of Nothing.
Assume that the user enters valid data.
Calculate average score Score: 95 Score total: 351 Score count: 4 Add Average: 87.75 Display scores ExitStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started