AboutAlex Barry Expertise I have been a qbasic programmer since 2000, creating games, minor libraries and various small programs. I have experience using interrupts, graphics, file input/output, the mouse cursor, and using libraries. I have also learned FreeBASIC, c/c++, python, php and html.
I do not claim to be an absolute authority in any language, but I don't mind looking things up and learning with you.
Experience Hobby programming since 2000
I no longer belong to any community programming groups, but do have knowledge of *basic dialect and C/C++
Expert: Alex Barry Date: 5/30/2008 Subject: QBASIC
Question i wan to write a simple program in BASIC to calculate the following
i. mean - efx/n
ii. mean deviation
iii. standard deviation
iv. variance.
Test your program with n-5, i.e numbers of observations
i am completely novice in qbasic
Answer Hi, Joe,
I'll help you out a bit, but...
- This is definately homework, so I won't give you the answers, but I'll help if you show an honest effort
- Your information means absolutely nothing to me.
I realize you are doing a program that calculates the averages of sets of numbers. Presumably, if this is homework, your text book/teacher will have a math formula for each situation, or your math text book will in any case. All you have to do is to think about what you would do if you had the problem, and figure out how to get the computer to do it. For instance, to find the average, you have to be able to compare each number, which can be done in QBasic using arrays and FOR/NEXT loops.
So, once you have more information, and show me your work so far, I might be able to make some improvements or suggestions,