Question: Only in Visual basic Create a project that saves the scores the user enters in an array and then lets the user display the sorted

Only in Visual basic Only in Visual basic Create a project that saves the scores the

Create a project that saves the scores the user enters in an array and then lets the user display the sorted scores in a dialog box.

  1. Create a Form similar to the image seen above.
  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 module-level variables to store the score total and the score count.
  4. Declare a module-level variable for an array that can hold up to 20 scores.
  5. Add a Click event handler for the Add button so it adds the score thats entered by the user to the next element in the array. To do that, you can use the score count variable to refer to the element.
  6. Add a Clear Scores button as shown above. The Click event handler for this button so it removes any scores that have been added to the array. The easiest way to do that is to create a new array and assign it to the array variable.
  7. Add a Display Scores button that sorts the scores in the array, displays the scores in a dialog box, and moves the focus to the Score text box. Be sure that only the elements that contain scores are displayed.
  8. Test the application to be sure it works correctly.

Create a project that saves the scores the user enters in an array and then lets the user display the sorted scores in a dialog box. X o Score Calculator Sorted Scores Score: 98 Add Score total: 472 89 92 Score count: 5 Average: 94 Display Scores Clear Scores Exit OK 1. Create a Form similar to the image seen above. 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 module-level variables to store the score total and the score count. 4. Declare a module-level variable for an array that can hold up to 20 scores. 5. Add a Click event handler for the Add button so it adds the score that's entered by the user to the next element in the array. To do that, you can use the score count variable to refer to the element. 6. Add a Clear Scores button as shown above. The Click event handler for this button so it removes any scores that have been added to the array. The easiest way to do that is to create a new array and assign it to the array variable. 7. Add a Display Scores button that sorts the scores in the array, displays the scores in a dialog box, and moves the focus to the Score text box. Be sure that only the elements that contain scores are displayed. 8. Test the application to be sure it works correctly

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!