Reference no: EM1389393
a. when user press, the program computes summation of four grades (Grade1+Grade2+Grade3+Grade4) and print the result in the picture box (picSum)
b. when user press, program computes average of four grades by computing summation firstly, and then divide the summation by 4
(Grade1+Grade2+Grade3+Grade4)/4
At last, results have to be printed in the picture box (picAvg)
c. if user forget to enter value of one or more grade, or if user entered non-numaric value like "a", the program must consider these unexpected values as zeros
for example: if user enter the values
Grade1=8
Grade2=9
Grad3= "" (nothing: forget to enter a value)
Grade4="Ab"
Summation should be 8+9+0 (instead of "") + 0 (Instead of "AB") =17
4. if user press button, program should erase any value in four Text Boxes ( txtGrade1 , txtGrade2, txtGrade3, txtGrade4), and two picture boxes: picSum, and picAvg.