I dont know what the error is.

double computeAngle (double a, double b, double c)
      angleA = acos ((b*b + c*c - a*a) / 2(b*c));
     angleB = acos ((a*a + c*c - b*b) / 2(a*c));
     angleC = acos ((a*a + b*b - c*c) / 2(a*b));
     }In this code im trying to To find the measure the angle in radians using the acos method of Java
i keep getting this ')' error and am not sure why. Also any help if im missing parts in that method.

Yup, it works perfect. Now only 1 other question. 'unexepected type'
in this line of code here.
     double computeDistance (int x1, int y1, int x2, int y2)
         int blah,blah2;
         (x1-x2)*(x1-x2) = blah;
         (y1-y2)*(y1-y2) = blah2;
     }i think what happens is im givin the x and y values at the end of the code for the user to input so im not sure if its recongnizing it as 0 or what not.

Similar Messages

  • The iphone has been acting weird. my iphone doesnt charge whenever it is switched On. When I switch OFF the phone, it charges for 2 mins then comes back On and stops charging. I dont know what the problem is. trust me, the problem isnt from d charger

    the iphone has been acting weird. my iphone doesnt charge whenever it is switched On. When I switch OFF the phone, it charges for 2 mins then comes back On and stops charging. I dont know what the problem is. trust me, the problem isnt from d charger. PLS anyone with any solution

    @wetdro
    If your device has been jailbroken during the warranty, Apple will not service it.
    Maybe you missed that in this article:
    Inability to apply future software updates: Some unauthorized modifications have caused damage to iOS that is not repairable. This can result in the hacked iPhone, iPad, or iPod touch becoming permanently inoperable when a future Apple-supplied iOS update is installed.
    Apple strongly cautions against installing any software that hacks iOS. It is also important to note that unauthorized modification of iOS is a violation of the iOS end-user software license agreement and because of this, Apple may deny service for an iPhone, iPad, or iPod touch that has installed any unauthorized software.
    copied from Unauthorized modification of iOS can cause security vulnerabilities, instability, shortened battery life, and other issu…

  • Ok i have been trying to download albums, songs, apps, etc. and my itunes keeps asking me for the security question and for the life of me i cant remember the answers. I dont know what the email is that receives the question reset.

    ok i have been trying to download albums, songs, apps, etc. and my itunes keeps asking me for the security question and for the life of me i cant remember the answers. I dont know what the email is that receives the question reset. is there anything i can do to fix this or am i screwed?

    If you have music that was purchased on different iTunes accounts than the one you use, then you must provide the password, otherwise the tunes are not considered yours.  You can turn off iCloud and just use the usual USB sync method.  But I wonder whether you'll have the same problem?

  • HT1926 Does anyone know what the error message "ErrorDomainWinSockerror10054" mean?

    Does anyone know what the error message "ErrorDomainWinSockerror10054"mean? This is the second tine in 41/2 hours my download of the upgrade of itunes has stopped with this error message. Any ideas?

    Alternatively, contact Apple Service, iMac Service or Apple's Express Lane. Do note that if you have AppleCare's protection plan and you're within 50 miles (80 KM) of an Apple repair station, you're eligible for onsite repair since yours is a desktop machine.

  • Does anyone know what the error code 4mot/4/40000003:HDD-1246 means

    Does anyone know what the error code 4mot/4/40000003:HDD-1246 means

    Alternatively, contact Apple Service, iMac Service or Apple's Express Lane. Do note that if you have AppleCare's protection plan and you're within 50 miles (80 KM) of an Apple repair station, you're eligible for onsite repair since yours is a desktop machine.

  • TS3694 I have an unknown error labeled -42210. I don't see it anywhere in the list and I have no clue what it does either since everything seems to run just fine. Does anyone know what the error means?

    I have an unknown error labeled -42210. I don't see it anywhere in the list and I have no clue what it does either since everything seems to run just fine. Does anyone know what the error means?

    Try the following user tip:
    iTunes for Windows 11.0.2.25 and 11.0.2.26: "Unknown error -42110" messages when launching iTunes

  • Dont know what this error message means

    hi
    while running the file i get this error whick i dont really know what it means
    dragon% java Text2Bin
    Exception in thread "main" java.lang.NumberFormatException: For input string: "true"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    at java.lang.Integer.parseInt(Integer.java:426)
    at java.lang.Integer.parseInt(Integer.java:476)
    at Text2Bin.main(Text2Bin.java:35)
    [dragon:cosc1309/Assignments/Assignment1] dragon%
    my code
    public class Text2Bin implements Serializable {
    public static void main(String[] args) throws IOException{
    String name;
    BufferedReader in = null;
    //PrintWriter out = null;
    Text2Bin p2b = new Text2Bin();
    PizzaEater myPizzaEater = new PizzaEater();
    FileReader frin = null;
    String line;
    try {
    in = new BufferedReader (new FileReader ("in.txt"));
    while ((line = in.readLine()) != null) {
    line = in.readLine();
    myPizzaEater.setName(line);
    line = in.readLine();
    myPizzaEater.setMslices (Integer.parseInt(line));
    line = in.readLine();
    myPizzaEater.setVslices (Integer.parseInt(line));
    line = in.readLine();
    myPizzaEater.setTslices (Integer.parseInt(line));
    line = in.readLine();
    myPizzaEater.setHalal (Boolean.valueOf(line).booleanValue());
    frin.close();
    in.close();
    catch (IOException ioe) {
    System.out.println(ioe.getMessage());
    catch (NegativeNumberException nne) {
    System.out.println ("NegativeNumberException message was: " +
    nne.getMessage());
    try {
    FileOutputStream out = new FileOutputStream ("out.bin");
    ObjectOutputStream outs = new ObjectOutputStream (out);
    outs.writeObject(myPizzaEater);
    outs.flush ();
    catch (IOException ioe) {
    System.out.println(ioe.getMessage());
    }

    thanks i worked it out i read a line in twice at the beginning of the loop which put me 1 line down from where i wanted to be

  • Does anyone know what the Error 1428 means?

    Itunes keeps saying that The IPod"IPOD"can't restore any suggestions

    OK, I don't know in response to what you get this error message but tonight I fixed my problem.
    I was getting the error 1428 when I tried to restore my iPod. It wouldn't restore and gave me this error message instead.
    I was a bit leery of iTunes 7 because my problems only really started when I downloaded iTunes 7 so I started wondering what were the major differences between iTunes 6 and one of them was album art.
    So I killed anything to do with downloading or playing album art, then tried restoring. This time it restored no problems, so I flashed the iPod using the AC charger, reloaded the music and.....no more problems (touch wood).
    Hope this helps. It should be easier than this.

  • Uploading my new 96pg photo book - keep getting "error has occurred" - but I don't know what the error is or how to fix it.  Please advise if you know.

    I need help sending my iphoto book for printing.  When it is uploading, the bar reaches approx. 3/4 of the way, then an "error message" comes up suggesting I cancel or retry.  I've retried several times but it still won't go.  What can I do?

    set the wake-on lan on the main computer
    The laptop's too far away from the router to be connected by ethernet. It's all wifi.
    No separate server app on the laptop, it's all samba
    The files are on a windows laptop and a hard drive hooked up to the windows laptop. The windows share server is pants, so I'd need some sort of third party server running. Maybe you weren't suggesting to use Samba to connect to the windows share though?
    I'm glad that you've all understood my ramblings and taken and interest, thanks The way I see it, I can't be the only netbook user these days looking for this kind of convenience, and I certainly won't be once chrome and moblin hit the market.
    Last edited by saft (2010-03-18 20:38:08)

  • HT201195 I scratched off the redeem code on my iTunes gift card, and now I dont know what the code is because the whole thing came off. What do I do?

    Question is really self-explanatory. I got and an iTunes gift card for my birthday and when I tried to scratch it off, the whole thing came off and now I cant even see the code. What should I do, if I even can do anything?

    You need to contact iTunes store support. 
    Contact iTunes Support
    http://www.apple.com/lae/support/itunes/contact/
    Follow the link for Gifts & Codes (I think).

  • I have ipad 1 how do i move my library from my very old computer to my new laptop i dont know what the difference is in mac or pc either and i havent backed up my library on the old one because its so slow

    i have an ipad 1 how do i move my library (for old ipod nano)( this a brand new ipad i hvaent synced yet) thats on a 2001 computer to my new laptop i got last christmas. i havent backed up anything cause the old computer is too slow. i tried home sharing but it just wont work. the help gave me an option of moving everything on my ipad and then moving it to the laptop. im just afraid that it will delete everyhting cause it doesnt mention ipad

    I found this article some time ago when I was trying to help someone else in this same situation. This is a copy and paste from the website. The website is provided below for you to read before you try this.
    Plug your phone into iTunes
    Click setup as a new device
    Immediately unplug your phone from the computer
    Give it about 30 seconds and iTunes will give a message (I don’t remember the specific, but regarding you unplugging the device and it not completing)
    Plug your phone back in
    Viola! no restore occurred and you can access everything again
    This computer has previously synced with an iPhone or another iOS device.

  • When i play a video on youtube or facebook there is no sound but there is video, i dont know whats the problem i tried everything in the suggestions but nthing worked .. please i need help

    I always used internet explorer but after i downloaded windows vista service pack 2 i had a problem with the sound while playing any video , there is no sound but there is video so i switched to firefox and the same problem occurs.
    == This happened ==
    Every time Firefox opened
    == today

    Video works, but no sound. Sound works in media players, chrome, etc.

  • TS3297 im playing ninja royal but i cant buy mobacoints dont know what the prb isim playing ninja royal but i cant buy mobacoints dont know what the prb is

    hi im playin ninja royal but way cant i buy moba coins. and it says to kontakt the itunes support to finesh the translaition plz help

    Hi...
    Even if this was a free app, it's more than likely you need a credit or debit card on file to purchase the coins.
    iTunes Store: About In-App Purchases

  • I have a macbook pro 2010, And my display will show up as blue until i tap the back of it excessively. I dont know what the problem is. Any ideas?

    Is this a fixable problem that wont cost more than the computer is worth?

    It may be a faulty display connection cable.  Only an Apple store genius bar will be able to definitively diagnose the issue and provide you with the actual repair costs.
    Ciao.
    If it is the cable, that should be relatively inexpensive.  If it is the display, that will not be inexpensive.
    Message was edited by: OGELTHORPE

  • My iphone has an alert that I cannot find to change in settings. I dont know what the alert is for

    My I phone has an alert sound (duck) that goes off all the time.  I cant find in settings under SOUNDS a corresponding alert sound of DUCK associated with any ringer or alert. Its making me crazy!  Its not listed under sounds where else could it be?

    must be coming from an apps. Try closing all the apps

Maybe you are looking for