View the step-by-step solution to:

b. when the user press , the program calculates the average of the four grades by calculating the summation firstly, and then divide the summation by 4

Finally, the results have to be printed in the picture box (picAvg)

c. if the user forget to enter a value of one or more grade , or if the user entered a non-numaric value like “a”, the program must consider these unexpected values as zeros

for example: if the user enter the values

Grad3= “” (nothing: forget to enter a value)

The summation must be 8+9+0 (instead of “”) + 0 (Instead of “AB”) =17

4. if the user press button , the program must erase any value in the four Text Boxes ( txtGrade1 , txtGrade2, txtGrade3, txtGrade4), and the two picture boxes: picSum, and picAvg

### Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

### -

Educational Resources
• ### -

Study Documents

Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

Browse Documents