AllExperts > Experts 
Search      

Qbasic, Quickbasic

Volunteer
Answers to thousands of questions
 Home · More Questions · Answer Library  · Encyclopedia ·
More Qbasic, Quickbasic Answers
Question Library

Ask a question about Qbasic, Quickbasic
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Alex 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++
 
   

You are here:  Experts > Computing/Technology > Basic > Qbasic, Quickbasic > QBASIC

Topic: Qbasic, Quickbasic



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,

Alex

Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.