Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: need help plzz in solving this Question

  1. #1
    Junior Member
    Join Date
    Apr 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post need help plzz in solving this Question

    To evaluate a nth degree polynomial for a given value of x using JAVA PRG.
    Eg. 5x^7 + -2x^5 + 6x^3 + 1x^0 at x=2

    The program must read in the number of non-zero terms in the polynomial followed by the co-efficient and power of each term. The value of x is read from the used and the program display the results of the evaluation of the polynomial. Use array list to represent the polynomial.

    Test Case 1:
    Input: No of terms: 4
    Term n-1 to 0 (both coeffient and power )
    5 7
    -2 5
    6 3
    1 0
    x = 2 (say)

    Output :
    625


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,085
    My Mood
    Mellow
    Thanks
    184
    Thanked 653 Times in 640 Posts

    Default Re: need help plzz in solving this Question

    Welcome to the forum! Please read this topic to learn how to post code in code or highlight tags and other useful info for new members.

    What have you tried?

  3. #3
    Member
    Join Date
    Apr 2012
    Posts
    161
    Thanks
    0
    Thanked 27 Times in 27 Posts

    Default Re: need help plzz in solving this Question

    What exactly is your question?

  4. #4
    Junior Member
    Join Date
    Apr 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: need help plzz in solving this Question

    Quote Originally Posted by Parranoia View Post
    What exactly is your question?
    I want some one to give me the code for the above question mentioned

  5. #5
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,085
    My Mood
    Mellow
    Thanks
    184
    Thanked 653 Times in 640 Posts

    Default Re: need help plzz in solving this Question

    This forum and most like it don't work that way.

    Thread closed.

Similar Threads

  1. I need help solving my question in my homework
    By mazin757 in forum Java Theory & Questions
    Replies: 1
    Last Post: March 26th, 2014, 08:19 AM
  2. need help solving this question asap plzzzzzzzzzz
    By rana_marie in forum What's Wrong With My Code?
    Replies: 12
    Last Post: December 17th, 2012, 09:43 AM
  3. Exception problem...plzz help
    By Arati2512 in forum What's Wrong With My Code?
    Replies: 5
    Last Post: April 26th, 2012, 12:38 PM
  4. can someone help me debug plzz
    By andys in forum Object Oriented Programming
    Replies: 1
    Last Post: November 27th, 2010, 04:37 PM
  5. plz help me with this.....plzz....
    By renny in forum Java Theory & Questions
    Replies: 25
    Last Post: May 18th, 2010, 08:19 AM

Tags for this Thread