Post a New Question


posted by .

Here is the question that I need help to write the code for the following program in Visual Basic 2010. I am trying to write the code but it has a run time error. If your could helps me to write the code it would be greatly appreciated.
Q. Write a program that calculates the average of up to 50 numbers input by the user and stored in an array. The program should use a class named Statistics and have an AddNumber method that stores numbers into an array one at a time. The class should have a Count property that keeps track of the number of numbers stored and a method called Average that returns the average of the numbers.
Thank you for your help

  • Programming -

    If you have a run-time error, one of the following is the culprit:
    1. There is a logic error in the code.
    2. There is an exception which is not caught (a different kind of logic error).
    3. Undetected syntax error.

    The best way to find the problem is to post your code and we'll help you find the problem. Also, posting the error message would help. (array out of bound? Division by zero?...)

Answer This Question

First Name:
School Subject:

Related Questions

More Related Questions

Post a New Question