Programming

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?...)

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. PROGRAMMING

    PLS, I NEED TO BE GUIDED ON HOW TO WRITE A SIMPLE PROGRAM IN BASIC THAT WOULD PROMPT 3 LEVELS OF AUTHENTICATION WHEN UNAUTHORISED LOG-ON IS EFFECTED. You are not going to be able here to get detailed help on the program code, as there …
  2. Computer Information

    A __________ provides the tools that a programmer uses to create software. a)compiler b) interpreter c)code d)a programming language In a way, don't all of these help a programmer to create software?
  3. Programming

    I need your help to write a program using visual basic 2010 for the following:- write a program that calculates the average of up to 50 numbers input by the user and stored in an arrey. The program should use a class named Statistics …
  4. Programming (Visual Basic)

    Im seem to be having trouble with this Exercise. Would you mind helping me please?
  5. visual basic programming

    Write a Visual Basic program that will calculate the assessment marks of a student taking the Computer Programming subject in College. The program must be able to determine the total result and finally display the grade of that student. …
  6. c programming

    a student designed a program to accept the age of an employee and then compute the employees retirement year and display the same in a statement on the screen required. a) write out the pseudo-code for the program above b) write the …
  7. Computer Literary

    Which of the following is Not an example of debugging A)Looking for errors in programming code B)Fixing misspelled commands in programming code C)Solving faulty logic in programming code D)Upgrading to improve the programming code
  8. basic programming principles

    2.Write only the select case statements for the following problem statement. The marital code of a person is stored in the variable called marCode. Display the corresponding description on the screen. Provide for an incorrect marital …
  9. VISUAL BASIC PROGRAMMING

    3. WRITE A VISUAL BASIC PROGRAM TO CALCULATE THE SIMPLE INTEREST ON A LOAN AMONUT OF 50000 GHANA CEDIS AT AN INTEREST RATE OF 30% FOR A NUMBER OF YEARS WHICH WILL BE SPECIFIED BY THE USER.
  10. science

    Write a java program using classes and object to read the em[loyee code (Integer), Imployee name (string), Basic salary )double), Category (Character)then calculate the bonus(double)and the total salary(double)eligible for each employ. …

More Similar Questions