454,276 Members | 1,424 Online
Need help? Post your question and get tips & solutions from a community of 454,276 IT Pros & Developers. It's quick & easy.

# Need help i am new in perl...

 P: 1 I have to write a programme. Whic is like this: You are write a program whcih uses the quadratic equation to solve second-order polynominal. wchich is a x**2 + b x + c =0 and use the quadratic equation, when given value for the coefficient a, b and c, to find the value of x for which the equation is true the quadratic equation is -b +- sqrt (b**2 -4ac) X = -------------------------------------------- 2a program should prompt for the value of cofficients a, b and c from the user and the output the solutions. The interaction with the user might look like this: Input value for the cofficient a: 2 Input value for the cofficient b: 5 Input value for the cofficient c: 1 The possible value for x are : -0.219223593595585 -2.28077640640442 please help me out thankx in advance mk Feb 19 '08 #1
5 Replies

 Expert 100+ P: 410 Kindly provide the code that you have tried and tell where you are facing problems. Providing answers for Homework is against the policies of the forum. Please go through Posting Guidelines Feb 19 '08 #2

 Expert 2.5K+ P: 4,059 Kindly provide the code that you have tried and tell where you are facing problems. Providing answers for Homework is against the policies of the forum. Please go through Posting Guidelines This makes at least two forums this question is posted on. I expect the count to rise as I check other forums. Feb 19 '08 #3

 Expert Mod 2.5K+ P: 3,503 Kindly provide the code that you have tried and tell where you are facing problems. Providing answers for Homework is against the policies of the forum. Please go through Posting Guidelines I fully agree! We cannot do your homework for you, but we can help you if you get stuck. You have to do the coding legwork though. Regards, Jeff Feb 19 '08 #4

 Expert 100+ P: 971 Sorry dude, I failed math... :) --Kevin Feb 19 '08 #5

 Expert 2.5K+ P: 4,059 Sorry dude, I failed math... :) --Kevin He's forum shopping for the answer, posting the same question on multi-forums (up to three now that I have seen). I recommend you delete this thread, this person does not want help, he wants the answer coded and ready to turn in for a grade. Feb 19 '08 #6