View the step-by-step solution to:

when user press ,the program calculates the summation of the four grades (Grade1+Grade2+Grade3+Grade4) and print the result in the picture box...

a. when user press ,the program calculates the summation of the four grades (Grade1+Grade2+Grade3+Grade4) and print the result in the picture box (picSum)

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

(Grade1+Grade2+Grade3+Grade4)/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



Grade1=8

Grade2=9

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

Grade4=”Ab”

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


This question was asked on Mar 16, 2010.

Recently Asked Questions

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 and customizable flashcards—available anywhere, anytime.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access or to earn money with our Marketplace.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
  • -

    Flashcards

    Browse existing sets or create your own using our digital flashcard system. A simple yet effective studying tool to help you earn the grade that you want!

    Browse Flashcards