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

1 answer

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?...)
Similar Questions
  1. Which of the following is an advantage of procedural abstraction?a. Internal function updates or improvements do not break your
    1. answers icon 1 answer
    1. answers icon 1 answer
  2. which of the following is an adveantage of procedural abstractiona. program code is less complex b. all of these are advantages
    1. answers icon 1 answer
  3. QuestionA Python dictionary is: (1 point) Responses a collection of code imported into a program. a collection of code imported
    1. answers icon 1 answer
more similar questions