Results 1 to 5 of 5
  1. #1
    jpnym15 is offline Member
    Join Date
    Nov 2007
    Posts
    19
    Rep Power
    0

    Default Quadratic Equation

    Can anyone help me out with doing a program which solves the quadratic equation?
    I also need to use 3 user defined methods which produce one answer, I know there are a lot of tutorials online for this, but i can't seem to find a good one.

    Can anyone help me out?

    **UPDATE**
    Actually, the program has to have 1 value returning method, and 3 void methods
    Last edited by jpnym15; 11-11-2008 at 03:02 PM.

  2. #2
    Nicholas Jordan's Avatar
    Nicholas Jordan is offline Senior Member
    Join Date
    Jun 2008
    Location
    Southwest
    Posts
    1,018
    Rep Power
    8

    Default

    Sounds like an assignment. Producing results as you describe is simple matter of study beginner programs, such as hello world, then put some very simple arithmetic operators in the code. Obtaining the results is not overly difficult, what books or sites have you looked at?
    Introduction to Programming Using Java.
    Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor

  3. #3
    jpnym15 is offline Member
    Join Date
    Nov 2007
    Posts
    19
    Rep Power
    0

    Default

    I've just looked at various tutorials online, but they all seemed to be too advanced. Can you refer me to some good places?. Possibly for beginners
    I do have the java book (tony gaddis), and also java for idiots.

  4. #4
    Nicholas Jordan's Avatar
    Nicholas Jordan is offline Senior Member
    Join Date
    Jun 2008
    Location
    Southwest
    Posts
    1,018
    Rep Power
    8

    Default

    Not to be superior or anything, it is much like Ivor Horton says - It is not a difficult science, it is just that there is so much of it.

    IOW - write some code, write some more code, write some more code, write some more code,.....

    continue until code works.

    post occasional question, try first.
    Introduction to Programming Using Java.
    Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by jpnym15 View Post
    Can anyone help me out with doing a program which solves the quadratic equation?
    I also need to use 3 user defined methods which produce one answer, I know there are a lot of tutorials online for this, but i can't seem to find a good one.
    Are you looking that how to implement quadratic equation in a Java class? What methods are you talking about.

Similar Threads

  1. Quadratic GUI
    By ryn21 in forum New To Java
    Replies: 1
    Last Post: 10-30-2008, 06:58 AM
  2. Help with an equation in java
    By coco in forum New To Java
    Replies: 1
    Last Post: 07-31-2007, 08:47 AM
  3. Help with quadratic equation in java
    By paul in forum New To Java
    Replies: 1
    Last Post: 07-25-2007, 09:23 PM
  4. Problem with equation in my algorithm
    By romina in forum New To Java
    Replies: 2
    Last Post: 07-20-2007, 08:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •