Wyo VB Ch4Proj1 Specs   

Write a program to calculate & display the test average of three integer test scores, each being between or including 1 and 100. The program must also calculate and display the letter grade in a separate label. Use the typical grading scale of 90% or better earning an A, 80% - 89% earning a B, and so on with the grade of E for failing. Only when the user has inputed valid test scores between or including 1 and 100 into all 3 text boxes should the next press of the Enter key cause the outputted test average and letter grade to appear in the appropriate labels. Also, the program should include as much input validation as possible. For example, if the user types anything other than a valid digit such as a letter or a symbol, your program should clear out that particular text box entry and warn the user not to input letters or symbols.

Provide Clear and Exit command buttons as well but the Clear command button should only be visible to the user when there is one or more text boxes that contain an entry. Your program must use one or more variables and/or constants where appropriate, even though this program could be written without using variables. Remember that is very important for your code to be easy-to-understand and easy to upgrade.

Your program must follow the Coding Standards. You could lose many points for violating the Coding Standards (e.g. poor spacing, incorrect indentation, incorrect prefixes, etc.) Save the form (frmMain.frm) and project (Ch4Proj1.vbp) files in a newly created folder named Ch4Proj1. If you create the Excel test plan at school, save it in the same Ch4Proj1 folder.

Preconditions:

Staple your printouts in the following order:

  1. VB code
  2. MS Excel test plan - follow specified format
  3. Interface Design Planning Sketch - sketch as neatly as possible & show Captions
  4. Objects & Properties Planning Form - include all property settings made during Design Time
  5. Event Procedures Planning Form - be sure to identify ALL steps

Sample Test Plan Cases

 

Possible Inputs

Expected Outputs

Reason
 

intTest 1

intTest 2

intTest 3

average

grade

 

1.

83

94

88

88.33

B

normal inputs

2.

13

75

99

62.33

D

one low test, one average test, one high test

3.

0

0

0

0

E

lower boundary

4.

80

90

70

80

B

even multiples of 10

5.

100

100

100

100

A

upper boundary

(The test plan must be typed into MS Excel, must include at least 10 test cases, but be sure to include all the boundary and the special cases that you can think of.)