Qbasicnews.com

Full Version: Please Help, need help wiv QBASIC
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Please help wiv the following

1) Write a basic programme for finding the roots of a quadraic equation

2) Write a basci programme for finding the inverse of a 3 by 3 matrix(is there anyway of telling the program(qbasic) to store the nom in rows and column i.e in matrix style)

3) Write a basic programme for finding the standard deviation of the ages of a set of DiplomaII students

4) wRITE a basic programme for computing the GPA of a Diploma Student

I have done the No.4 part but i'm having problems with the rest and i am submitting pretty, any form of help will be greatly appreciated.
Thanks
The first one can be solved with "the quadratic formula". Simply get a & b & c and put it in the formula twice (one for - and one for +).
regarding no.2, you can store the matrix in a 3x3 array.

eg. dim arr(3, 3) as integer
arr(1,1) refers to the 1st element in the 1st column

regarding no.3, its simple. all you need to do is use the right formula. But you gotta try yourself. This looks like an assignment. We wont just give you code. But if you show some effort then we will certainly help you get it working Wink.