Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed image text in transcribed

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 Exit

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

Database Design Application Development And Administration

Authors: Michael V. Mannino

4th Edition

0615231047, 978-0615231044

More Books

Students also viewed these Databases questions

Question

Understand the different approaches to job design. page 184

Answered: 1 week ago

Question

1. Who will you assemble on the team?

Answered: 1 week ago