I need help solving this problem!!

Hi, i'm new to java and have written only a few programs, i recently wrote one and had the following error but dont know why...........
Exception in thread "main" java.lang.NoClassDefFoundError: quadraticsolverApp
I have included my code below.....
import java.applet.Applet;
public class quadraticsolver extends Applet
public double a, b, c ;
public void init()
a=0;
b=0;
c=0;
public String getRoot1()
if (getDescriminent() < 0.0 || this.a == 0.0)
return "" + ((-b + Math.sqrt(-getDescriminent()))/(2 * a)) + " i";
else
return "" + ((-b + Math.sqrt(getDescriminent()))/(2 * a));
public String getRoot2()
if (getDescriminent() < 0.0 || a == 0.0)
return "" + ((-b - Math.sqrt(-getDescriminent()))/(2 * a)) + " i";
else
return "" + ((-b - Math.sqrt(getDescriminent()))/(2 * a));
public double getDescriminent()
return (b*b - 4 * a * c);
public void setA(double bValue)
a = bValue;
public void setB(double bValue)
b = bValue;
public void setC(double bValue)
c = bValue;
Thanks for the help
Noel
email: [email protected]

Besides that, the code is broken. For instance
return "" + ((-b - Math.sqrt(-getDescriminent()))/(2 * a)) + " i";should be
return "" + (-b/(2*a)) + " " + (-Math.sqrt(-getDescriminent())/(2 * a)) + " i";
to get correct answers... 1/2 * (-1-sqrt(3)) i (or approximately -1.36602540 i) is not a solution of x^2 + x + 1 = 0. Also, if a is small, it's better to use the formula x = 2*c / (-b +/- sqrt(b^2 - 4ac))

Similar Messages

  • I desperately need to solve this problem even geeks on call could not

    I desperately need to solve this problem
    Posted: May 17, 2006 5:29 PM Reply Email
    How to Connecti computers over the internet using IP addresses
    Posted: Mar 8, 2006 7:18 PM
    Reply Email
    No one has been able to help me solve this problem even geeks on call
    So please out there give me some good advice. This feels like a level 5
    I have three computers at three different locations. The first one is a emac at my office running classic 9.2. The second location is a power book g4 running 10.4.5. at my home. The third is a power book g3 running OS 9.2.2at a third location.
    What I am trying to do is to access my computer at my office from the other two locations. My office has two computers that are on a network and talk to each other. They are both EMAC"S. They are connected by a ethernet network which is connected to a DSL modem which keeps me on the Internet all the time.
    At the other two locations I have direcway satellite which is broadband which also stays on all the time on the internet.
    I need to be able to access a data base on my main computer at my office and run the program which is an Omnis 7 program. I have multi user capabilities for this program, so that all the computers can access the data files at the same time and reqad and write.
    So this is my dileema.
    Any help would be greatly appreciated
    powerbook g3,emac Mac OS 9.2.x also 9.2 os, and 9.22 o.s.and 10.4
    eww
    Posts: 2,224
    Registered: Jul 28, 2000
    New! Re: I desperately need to solve this problem
    Posted: May 17, 2006 6:08 PM in response to: drpresseye

    well, at any or all of the locations you may need to open up the ports through your routers to allow ARD access.
    Also, I'm wondering if you are experiencing problems between using old and new versions of remote desktop.
    In any case, when you say you have multi-user capabilities, to me that implies that from location 2 and 3 you want to open the database file directly, not open it within an RDC session on a machine at location 1. That will be a different issue. Now you are talking about file shares over TCP/IP.

  • How do I copy files onto a hard drive (device) from Mac 2 7 pc. I'm able to transfer files from device but cannot transfer files to device. Anyone had same problem or can help solve this problem? Help pls

    how do I copy files onto a hard drive (device) from Mac 2 7 pc. I'm able to transfer files from device but cannot transfer files to device. Anyone had same problem or can help solve this problem? Help pls

    Welcome to Apple Support Communities
    When you try to copy data to the external drive, what happens? If you don't see any error, the external drive is formatted in NTFS, and OS X can't write in it.
    To be able to write on this external drive, you have to use an app like Paragon NTFS. Another solution would be to format the external drive in FAT32 or exFAT with Disk Utility > http://pondini.org/OSX/DU1.html Make sure you copied all the files of the external disk to the internal disk before doing it

  • I need make icloud account but tell me the operation couldn't be completed please iam need to solve this problem necessary, Thank you

    i need make icloud account but tell me the operation couldn't be completed please iam need to solve this problem necessary, Thank you

    Why don't you use the option "Get a Free Apple ID" to create a new iCloud account with a free @icloud.com email address for all the iCloud service like Mail, Contacts, Calendars, Reminders, Notes Storage & Backup etc.?
    This would be the easiest way.

  • PLEASE HELP SOLVING THIS PROBLEM

    Our buissness will fail if we could not solve this problem.
    we have 1720 cisco router that has 2 WIC one is the backup to the other.we need to chick if the communication through one WIC to a specific router connected to it failed the other WIC could keep the route to the same router .how could we do this(what is the configuration?)and what is the suitable IOS that we could use?
    Please help.

    Abbas,
    You define two routes in the router with different Administrative distance.
    Define ip routes
    ip route 0.0.0.0 0.0.0.0 serial0
    ip route 0.0.0.0 0.0.0.0 serial1 170(Administrative distance is 170)
    The route with least administrative distance is prefered if you have two similar routes in the routing table.
    Hope this solves ur issue.

  • I made a movie on iMovie and went to burn to DVD and of course I could not...contacted Apple and they said to download an app to help solve this problem...i did..so I could finally burn a DVD, but it will not play on my DVD player...HELP!!!

    I made a movie on IMovie and went to burn it to a DVD ...I could not do this so I contacted Apple..they had me download an App and then I could make a DVD...but it will not play on my DVD player...does anyone know how I can solve this problem.. I purchased this to make DVD's and now I can not do that!!

    This is a known issue.  It really comes down to two key factors - what type of DVD are you burning to + what type of DVD player you have.
    This article will help.  It's lengthy and can be technical in some parts but should shed some light on your problem.
    http://www.media.utah.edu/dvdworkshop/pdf/DVDCompatTest.pdf

  • Need help solving this tricky connect paths problem!

    I need to convert a bunch of separate paths  in particular way so they create one single continuos path as shown in the attached PNG file.
    It has me stumped. Does anyone know of a way to do this via scripting?

    How often do you need to do this? I think that a script which would work properly may be more work than is worth the time.
    I'm sure something like this could be done, but the real problem would be what would the next group of lines that you run the script on look like? Would a script that works for this circumstance work properly for another shape?
    Here's some parameters to think about:
    How do you determine which line segments (or endpoints) in the document need to be connected? All points in the document, or will you be working with a selection?
    Once you determine the points (eliminating all that are already connected), how do you want them connected, and which point do you start with? Connect to the closest available point would seem what you want, but depending on how you determine which point to start with could give you different results.
    You might want to loop through all eligible points, and save the distance to every other point into an array. Then, loop through connecting the 2 closest available points until you've connected every point.

  • I try signing into iMessage and it takes about 45-50 seconds to do. When that happens it tells me there is a network problem. I am positive I don't have a network problem and I need help on this problem please??

    I try to sign in and it just takes forever to do I try and try and do it over and over and it brings me the same results. Created a new Apple ID and when I did it still tells me there is a network problem. But the thing is I am still able to use the Internet I need help?? And it does the exact same thing for FaceTime so I don't know what to do??

    Error -3259 is a network timeout error, usually. This article might help:
    http://support.apple.com/kb/TS2799

  • I desperately need to solve this problem

    How to Connecti computers over the internet using IP addresses
    Posted: Mar 8, 2006 7:18 PM
    Reply Email
    I Can't believe that no one can help me with this problem. There were no responses in march so I am trying again.
    I have three computers at three different locations. The first one is a emac at my office running classic 9.2. The second location is a power book g4 running 10.4.5. at my home. The third is a power book g3 running OS 9.2.2at a third location.
    What I am trying to do is to access my computer at my office from the other two locations. My office has two computers that are on a network and talk to each other. They are both EMAC"S. They are connected by a ethernet network which is connected to a DSL modem which is on a static IP which keeps me on the Internet all the time.
    At the other two locations I have direcway satellite which is broadband which also stays on all the time on the internet.
    I need to be able to access a data base on my main computer at my office and run the program which is an Omnis 7 program. I have multi user capabilities for this program, so that all the computers can access the data files at the same time and reqad and write.
    So this is my dilema.
    I really need help

    In order to establish a secure connection into your
    office network you should really consider getting a
    VPN router.
    Once your router is configured you can then use a
    PPTP client to connect to your Office VPN server.
    Do I need a special VPN server or can one of my emacs double as a VPN server ?
    OS9 does not have built in vpn client so you need to
    use something like tunel builder.
    For your OSX mac you can use internet connect to
    establish a VPN connection.
    One your connection is established you can connect to
    the computers in your office as if your a local
    machine.

  • Need to solve this Problem

    i try to read the whole text that i'm getting from the inputStream,but the text contains "\n" it means that if i use readLine to read the text, i only get the first line, If i use while (readLine() != null) i can read the whole text that i want, but the program still loop, i cannot break the application..
    How can i solve this?
    thanks guys you're the best...

    The output that i want to get is like this
    /$****************************************************************]** YOU ARE NOW WORKING ON SYSTEM -A- LIVE **]****************************************************************]
    A-IN AM/HM FQX * GA RES FQX *
    ^|
    the problem is, if i use
    int c;
    while ((c = in.read()) != -1)
    i can see i got something,but not finish to the end of text...
    if i use :
    while (bfr.readLine() != null)
    i get the whole text but my program wont end, it means the loop is still around...am i right? correct me if i'm wrong....
    The text that i want to get is contains (Carriage return)...
    Help....thanks

  • Need help solving priting problem.

    Hello,
    I'm writing because I found a problem with my Printer "hp psc 1315 all-in-one".
    It's not connected to PC, but when I press printer's power button, it's automaticly starting to print alignment page.
    After I turn it off and back to "on" It's starting to print alignment page over again.
    I'm sorry for my poor enligsh dictionary, but I hope to get some help.
    Thank you.

    Follow Step Five of THIS document.
    Make it easier for other people to find solutions, by marking my answer with \'Accept as Solution\' if it solves your problem.
    Click on the BLUE KUDOS button on the left to say "Thanks"
    I am an ex-HP Employee.

  • I buy I phone from USA and I use this I phone in Iraq I get this message  Please insert another SIM card from a supported carrier or request that this iPhone be unlocked by your carrier so I need to solve this problem

    Dear ,
    I buied I phone from USA and I sent to  Iraq to use it there but when used it I get this message :
    The SIM card that you currently have installed in this iPhone is from a carrier that is not supported under the activation policy that is currently assigned by the activation server. This is not a hardware issue with the iPhone. Please insert another SIM card from a supported carrier or request that this iPhone be unlocked by your carrier
    so I need support to resolve this problem and  procedure  and how I can  iPhone be unlocked.
    BR,
    Ammar Jumaa

    ammarjr wrote:
    ... how I can  iPhone be unlocked.
    Sorry...  but...  ONLY the US Carrier it is Locked to can unlock it.
    You need to Contact them.
    Note:  No one here will know who that Carrier is.

  • Hey guys i really need help with this problem...

    Hey guys how is everyone? I have a Soundblaster X-Fi XtremeMusic. and i am having a real annoying problem, here is how it all started. I took the time and dusted out my computer by using a can of air duster, and i think a little got on there and it turned into frost. Weird thing is it happened before and i never had this problem. I turn my computer on and crank the volume up i receive no sound what so ever. I know it has to work because i have a pair of DJ headset hooked into the jack, and i heard a little pop sound. And no audio, every last port on the card i cannot get no sound out of it except one of them, it's really annoying i hate this doing this and i have to hook my 5.1 using one jack just to get sound. And it doesnt sound good i have some really powerful 1,000 watt speakers with 2 amps. I know this is yet due to the fact i only have the lime jack in This is the only way it'll work. And i have a THX cable and it works sometime. I hope my soundcard isnt messed up. I really hope you guys can help me with this issue. I cannot contact creative cust service via email because i dont have my box no more, and my serial number is faded on the card (i think that was the serial)
    I try to explain the best way i can describe it. Below is my System Specs.
    <pre>Processor: AMD Athlon X3 425 @ 2.7GHz
    Video Card: ATI HD 5770 1GB
    Hard Drive:1TB Western Digital, 500GB Western Digital, 300GB Seagate (all SATA connections)
    Heatsink: Zalman CNPS7000C-Cu
    Power Supply: Antec 550 Watts True Power II
    Sound Card: Creative Soundblaster XI-FI Xtreme Music
    Motherboard: ASUS M4A79XTD EVO
    DVD Drives x2. Plextor DVD-RW/DL/ Sony DVD-ROM Drive via PATA connections</pre> Thanks in advance hope you all have a splended weekend.

    Hello
    Thank you for your help but unfortunately still have troubles with the soundcard.
    I upgraded my system to
    RAM: Corsair Vengeance LP 16GB DDR3
    Processor: AMD Phenom II X6 1090T Processor, Black Edition 3.3GHz
    Video Card: Sapphire 100314-3L Radeon HD 6870 1GB
    Hard Drive: 1TB Western Digital, 500GB Western Digital, 300GB Seagate (all SATA connections)
    Heatsink: Zalman CNPS7000C-Cu
    Power Supply: Corsair TX850W 850 Watt SLI/Crossfire Certified
    Sound Card: Creative Labs Soundblaster X-FI Titanium Fatal1ty Professional (getting this soon)
    Motherboard: ASUS M4A79XTD EVO (BIOS: 2102)
    DVD Drive(s): Plextor DVD-RW/DL/ Sony DVD-ROM Drive via PATA connections
    And i still run into problems i think its a matter of a hardware issue. The plugs dont really work
    only one does (where lime goes in) And the bass has toned down as well... Isn't as powerful
    as it used to be, so my best be is to upgrade to Creative Labs Soundblaster X-FI Titanium Fatal1ty Professional
    Thats my only hope...
    But again thank you for your help

  • Services disappearing? Need help solving this.

    Over the years I have created many Services (using automator and applescript), so that when you right click a folder or file you have the option to click on the service.
    However In the recent weeks it has come up where sometimes the Service field disappears. How I get them back is logging out and then logging back in.
    Does this mean I have some virus or something? Is there a way to handle this?
    Here is what is supposed to come up:
    Here is what happens sometimes:
    Thanks guys

    How often do you need to do this? I think that a script which would work properly may be more work than is worth the time.
    I'm sure something like this could be done, but the real problem would be what would the next group of lines that you run the script on look like? Would a script that works for this circumstance work properly for another shape?
    Here's some parameters to think about:
    How do you determine which line segments (or endpoints) in the document need to be connected? All points in the document, or will you be working with a selection?
    Once you determine the points (eliminating all that are already connected), how do you want them connected, and which point do you start with? Connect to the closest available point would seem what you want, but depending on how you determine which point to start with could give you different results.
    You might want to loop through all eligible points, and save the distance to every other point into an array. Then, loop through connecting the 2 closest available points until you've connected every point.

  • Need help solving a problem with recording

    hello im using a korg k49 midi controller with garagband. whenever i record the instrument becomes "poppy" and the sound cuts in and out, almost like little click noises. does anyone know a solution to this problem? help would be appreciated

    I have the same problem, except I'm trying to record guitar through a TASCAM US-122.
    My theories:
    1. Bad TASCAM drivers.
    2. Leopard bug.
    3. Garageband bug.
    Some people suggest that things are better if you turn off your airport.
    Rebooting and restarting Garageband can help.
    So far, nothing is working for me.

Maybe you are looking for

  • Electrical​/Software (LabVIEW) Design Engineer, Wiltshire, UK

    Job Title: Electrical/Software (LabVIEW) Design Engineer Job Type: Permanent Location: Malmesbury, Wiltshire, UK Job Purpose: To provide design solutions for machine control, instrumentation and data acquisition using National Instruments LabVIEW. Su

  • Importing from Lightroom

    The Lightroom file structurs consists of folders for the year in which are sub-folders for the date (month and day). I have exported the LR metadata to xmp files and I can import into Aperture using a referenced library with good results - metadata c

  • Which MS-7366 do I have

    Hi I saw another post that identified the correct motherboard so Im following the instructions laid out there. I have  MS 7366 ver 3.1 printed on the board and on the green sticker says A7366 NM7407 thanks for your help Shumit

  • Actual Over Head Calculation for process order

    hi! I have created a costing sheet for  over head, which will be based on labour activity cost. the base is labour cost for which I have given secondary cost element ( assigned in activity type for labour hours) in costing sheet and maintained over h

  • How long is the waranty?

    Hi, I am experiencing some problems with my ipod nano and, if i have to, may exchange it. I was wondering how long the warranty is for a forth generation nano chromatic (not sure if it is the same for all ipods) Many thanks, your help is much appreci