Wyo VB Ch4Proj2

Write a program that allows the user to enter a sequence of test scores individually through a text box. Do not allow the user to input test scores over 100 or less than -1. When the user enters the sentinel value -1, the text box and its associated Submit button must disappear. The following buttons must also be present to allow the user to perform the following statistics after he/she has inputted all of his/her test scores.

The Sum button computes and displays the sum of all points earned on all tests
The Average button computes and displays the test average in a label. The average must be rounded to the nearest tenths place using normal rounding, not Banker's Rounding. (Each test is out of 100 points.).
The Find Max button computes and displays the highest test score.
The Display button displays all of the test scores in a label separated by spaces.
The Are You Feeling Lucky button replaces all of the test scores within random integers from 50 to 100.
The Clear button clears all of the labels above.

You must have a File/Exit menu command and include a menu named Statistics with the following submenu commands:

Sum
Average
Find Max
Display
Are You Feeling Lucky
Clear

You must use a module-level array to store all of the test scores and you must efficiently use loops to compute all statistics. You should also use call statements and your own methods where approriate if it is possible to reuse any of your code.

Preconditions:

  • The user will input less than 100 test scores.
  • The user will only input integers as possible test scores, although he/she may attempt to enter numbers over 100 or less than -1.

Your program must follow standard Windows conventions as well as our school's Visual Basic Coding Standards. Name your project Ch4Proj2.

Staple your printouts in the following order:

  1. VB code
  2. Interface Sketch drawn on paper to show the exact placement of your buttons and labels. You do not have to show the menu.