Qbasicnews.com
August 21, 2018, 02:37:39 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: HELP  (Read 4732 times)
gbengazzee
New Member

Posts: 1


« on: December 15, 2008, 08:02:21 PM »

Hi, everyone.

I'm new to this forum. I need help on this program.

Basic Program to compute and print a root of a general quadratic equation of the form ax^2 +bx + c = 0, considering when the discriminant is

I = 0
II > 0
III< 0

Assist please.
Logged
Tia
Member
*
Posts: 37


« Reply #1 on: December 15, 2008, 08:55:18 PM »

Like has been said to me before, please display the code so that everyone can see exactly what you are trying to do and even make improvements.  By saying help and giving us the base of the program and no code, is code for, please code this for me.  From what I have seen in my brief period of being on these forums is that people will help as long as you provide what you have done so that we can see you have tried to do it yourself and really are having trouble.

I can not help you atm because vista hates QuickBasic and getting it onto my laptop is a problem when all I have is my laptop at school.  I am only here for a few more days so when I go home I can help but like said before please show up code or give us a .bas/.txt file so that we are able to see what you have tried.

Logged
Skyler
Ancient Guru
****
Posts: 564



« Reply #2 on: December 15, 2008, 10:13:06 PM »

Like Tia said, we'll help if you already have tried to put some effort into it and have some code to prove it.

Secondly, though, this looks like homework, and it's a standing policy not to do people's homework. Is it?

Skyler
Logged

In the beginning, there is darkness the emptiness of a matrix waiting for the light. Then a single photon flares into existence. Then another. Soon, thousands more. Optronic pathways connect, subroutines emerge from the chaos, and a holographic consciousness is born." -The Doctor
Tia
Member
*
Posts: 37


« Reply #3 on: December 21, 2008, 05:50:53 AM »

Like Tia said, we'll help if you already have tried to put some effort into it and have some code to prove it.

Secondly, though, this looks like homework, and it's a standing policy not to do people's homework. Is it?

Skyler

If they have tried we can lead them towards the correct answer, but yea I don't think we are able to say, oh just do (qb skills a little low atm so just deal with the if then/any syntax I have a little wrong)

if x<0 then
print "loop again"
x = x +1
end if

but we could say something like, ok from what you have stated you start at a number that is lower than 0 like -51 for example and you need x = 0.  So to do this you need to perform a loop that will loop (for lack of a better term) until x=0.  You can do this many ways and some of the most popular choices are if then or for next.

See we gave the person who at least tried it a starting point but didn't give a direct answer.
Logged
Ralph
Ancient Guru
****
Posts: 544


« Reply #4 on: December 22, 2008, 01:45:09 PM »

I can
t help but post this Greek saying:
"The gods help those who help themselves".  For this forum, the saying is:
"We help those who help themselves".

Another old saying is,
"Gos alwyas helps; He does the last part".  Or, for here:
"We always help;we do the last part".

Etc., etc.
Logged

Ralph, using QuickBASIC 4.5 and Windows XP Home Edition and Service Pack 2, with HP LaserJet 4L printer.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!