Clues on how to fix these errors??

I am not sure if I am should post all of my code or not, but here are the errors I keep getting and I do not know how to over come them. Also I know I should be able to build the frame and do the calculations in the the same program, but I until I get these errors worked out I can't do that. Any suggestions?
doMort.java [63:1] float cannot be dereferenced
mortgage= Float.parseFloat(mortgage.getText());
^
doMort.java [64:1] float cannot be dereferenced
interest = Float.parseFloat(interest.getText());
^
doMort.java [65:1] float cannot be dereferenced
length = Float.parseFloat(length.getText());
^
doMort.java [77:1] pow(double,double) in java.lang.Math cannot be applied to (float)
double temp1 = (1-Math.pow(1+r)-t);
^
doMort.java [78:1] possible loss of precision
found : double
required: float
float temp2 = r/temp1;
^
5 errors
Errors compiling doMort.

Hi.
You probably do not need to post all your code.
The first three errors are basically the same - let's look at the first one:
you have a variable called mortgage. You declared it to be of some type which is
not float, and you try to put a float value into it.
the fourth problem is that you are trying to use the method Math.pow, which needs
to receive two double arguments. However, you only give it one argument which is float. The
compiler doesn't like that.
The last warning tells you that you are in danger of getting a wrong answer, since you are trying
to calculate the r/temp1 - which gives a result of type double. You take this result and put it into
a variable that's declared float - and since a double can hold more precision than a float- you might
lose this precision and hence get a wrong answer there.
Nimo.

Similar Messages

  • Ihave ipod 4g and my ios is 4.3.3 and i want to update or restore it to ios 5 or 6 and my itunes version is 10.6 and i am using window 7 home premium. while restoring i am getting error 3194,1600,1601,1602,1603,1604. How to fix these error.....

    ihave ipod 4g and my ios is 4.3.3 and i want to update or restore it to ios 5 or 6 and my itunes version is 10.6 and i am using window 7 home premium. while restoring i am getting error 3194,1600,1601,1602,1603,1604. How to fix these error..... can you please help me

    See the actions for those errors located here:
    iTunes: Specific update-and-restore error messages and advanced troubleshooting

  • I get nothing but error messages, -"Your IMAP server wants to alert you to the following: 113 that mail is not available" or 364? there are hundreds stacked up.You must give answers to how to fix these when we do "search" add the error code number

    I get nothing but error messages, -
    "Your IMAP server wants to alert you to the following: 113 that mail is not available"  or  the same with:  364? 
    Now there are hundreds stacked up on my desktop.
    I cannot find the answer anywhere. You need to  give answers to how to fix these errors because when I  "search" "error code" or the number there is NOTHING. NOTHING!  Yet you give us these stupid error codes
    then you do not give us ANYTHING on how to fix these. These error codes make me so mad it makes me hate outlook, and hate the developers and hate microsoft.  How in the world can you give us ERROR codes without the explanation of what
    to do or how to fix it. You need to  add each  error code number in your "search" then explain what it is and how to fix it.  I am not a tech. I am a lawyer. I have googled the entire string of error code and nothing is clear.
    So, for the last several years, I get these error codes. Also, there is another error code that won't go away--it is the password error code that asks if I want to store the password. Yes, so I say YES. but it pops back. I am sick of this. This is the reason
    I hate Microsoft and I love google. #1 they respond to error, #2 them try to fix them you do not. I paid the full price to buy the OUtlook 2010, almost $500 just to get outlook, and all I got was error codes. I could not even open it because all I would get
    was that error codes and NO ONE knew how to fix them. WHAT IS YOUR PROBLEM that you cannot fix the stupid error codes that you imbed? PLEASE HELP

    Hi,
    I understand how frustrated you are when facing such an issue, maybe I can provide some suggestions on the problem.
    Based on the description, you should be using an IMAP account setup in Outlook. As for the error message, usually it's caused by a corrupted message on the Server. I suggest you logon the Webmail site, check if sending/receiving emails works well.
    If you find any unusual emails that cannot be read or sent, try deleting them to try again.
    I also suggest you create a new profile to setup the IMAP account:
    http://support.microsoft.com/kb/829918/en-us
    Contact your Email Service Provider to get the correct and latest account settings, since you have been using Outlook for years, some settings may have been changed while you haven't been informed.
    For the steps to setup an account in Outlook 2010, please refer to:
    http://office.microsoft.com/en-001/outlook-help/add-or-remove-an-email-account-HA010354414.aspx
    I hope this helps.
    Regards,
    Melon Chen
    TechNet Community Support

  • Installed CS6 all but Illustrator installed correctly, I received error DF024, DW063, and DW050, how can I install Illustrator and fix these errors?

    installed CS6 all but Illustrator installed correctly, I received error DF024, DW063, and DW050, how can I install Illustrator and fix these errors?
    this is the log error file I get:
    Exit Code: 6
    Please see specific errors and warnings below for troubleshooting. For example, ERROR: DF024, DW063 ...
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 4 error(s), 0 warning(s)
    ----------- Payload: {AAF0D225-F129-40F2-916E-12E28DBD19ED} Adobe Illustrator CS6 Core 16.0.0.0 -----------
    ERROR: DF024: Unable to preserve original file at "/Applications/Adobe Illustrator CS6/Adobe Illustrator.app/Contents/Frameworks/AdobeCrashReporter.framework/AdobeCrashReporter" (Seq 1649)
    ERROR: DW063: Command ARKDeleteFileCommand failed.(Seq 1649)
    ERROR: DW050: The following payload errors were found during install:
    ERROR: DW050: - Adobe Illustrator CS6 Core_AdobeIllustrator16en_USLanguagePack: Install failed
    ERROR: DW050: - Adobe Illustrator CS6 Core: Failed due to Language Pack installation failure

    hold down shift-cmd-alt while starting ai.  if done correctly, you'll see a preferences reset prompt.
    if that fails, uninstall, clean and reinstall per Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6

  • How to fix imessage error on ios8.1.2 .. Already reset network still same issue please help

    How to fix imessage error on ios8.1.2 .. Already reset network still same issue please help

    Hi ashmanryan36,
    Thanks for using Apple Support Communities. Based on what you stated, it sounds like you are having trouble with iMessage. It looks like you have already done some troubleshooting. I would recommend that you read these articles, they may be helpful in troubleshooting your issue.
    If you can't send or receive messages on your iPhone, iPad, or iPod touch - Apple Support
    You did not mention what the error was but since you are running 8.1.2 and update is available and my help. 
    Update the iOS software on your iPhone, iPad, and iPod touch - Apple Support
    Cheers,
    Mario

  • How to fix this error "this iPad is not able to complete the activation process. Please press Home and start over. If the issue persists, please visit your nearest Apple Store or Authorized service provider for more information or replacement"?

    How to fix this error "this iPad is not able to complete the activation process. Please press Home and start over. If the issue persists, please visit your nearest Apple Store or Authorized service provider for more information or replacement"? When I plugged in my iPad this popped up!

    Hi csreddy, 
    If you are receiving a message to contact an Apple Retail Store or Authorized Service Provider for help updating from iOS 3, click on the link below to initiate that support:
    Update the iOS software on your iPhone, iPad, and iPod touch - Apple Support
    http://support.apple.com/en-us/HT204204
    Update your device using iTunes
    If you can’t update wirelessly, or if you want to update with iTunes, follow these steps:
    Install the latest version of iTunes on your computer.
    Plug in your device to your computer.
    In iTunes, select your device.
    In the Summary pane, click Check for Update. 
    Click Download and Update.
    If you don't have enough free space to update using iTunes, you'll need to delete content manually from your device.
    Find out what to do if you get other error messages while updating your device.
    Last Modified: Jan 12, 2015
    Apple - Find Locations
    https://locate.apple.com
    Contact Apple for support and service - Apple Support
    http://support.apple.com/en-us/HT201232
    Regards,
    - Judy

  • HT201210 when trying to recover an iphone, anyone know how to fix an error 21?

    when trying to recover an iphone, anyone know how to fix an error 21?

    Error 20, 21, 23, 26, 28, 29, 34, 36, 37, and 40
    These errors typically occur when security software interferes with the restore and update process. Use the steps to troubleshoot security software issues to resolve this issue. In rare cases, these errors may be a hardware issue. If the errors persist on another computer, the device may need service.
    Also, check your hosts file to verify that it's not blocking iTunes from communicating with the update server. See the steps under the heading "Blocked by configuration (Mac OS X / Windows) > Rebuild network information > Mac OS X > The hosts file may also be blocking the iTunes Store." If you have software used to perform unauthorized modifications to the iOS device, uninstall this software prior to editing the hosts file to prevent that software from automatically modifying the hosts file again on restart.

  • Does anyone know how to fix an error in cc photoshop on Win8 that says puppet warp could not complete request due to program error?

    Does anyone know how to fix an error in cc photoshop on Win8 that says puppet warp could not complete request due to program error?

    Questions on using a specific program should go in that program forum
    This forum is about the Cloud as a delivery process, not about using individual programs
    If you start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • My windows(8.1 64bit) partition is read only from the mac(yosemite) side of things. Anybody have a clue on how to fix this? Also, slightly frustrating as well, windows crashes every time I attempt to open a file from the mac partition.

    my windows(8.1 64bit) partition is read only from the mac(yosemite) side of things. Anybody have a clue on how to fix this? Also, slightly frustrating as well, windows crashes every time I attempt to open a file from the mac partition.

    All Office applications will also try to open a temporary work file in the same location as the source file. This implies the source file directory also needs to be writable for this temporary file. Since the default HFS+ driver provides only read-only access, such temporary files will fail to open, and will cause the application to fail.
    As a test copy the file you want to edit, say an Excel spreadsheet from the OSX file system to the C: drive on the Windows side and try to open it. If you look in this directory, you should see two files, the source and a temporary file. You may have to force the temporary file to be opened on a read-write file system, by manipulating the folder for temporary files.

  • Lightroom crashes at start up with the error message "Lightroom encountered an error when reading from its preview cache and needs to quit".  Please advise on how to fix this error.  Thanks

    Lightroom crashes at start up with the error message "Lightroom encountered an error when reading from its preview cache and needs to quit".  Please advise on how to fix this error.  Thanks

    You probably need to delete your preview cache.  See here  
    Why And How To Clear Your Lightroom Cache - Lightroom Fanatic
    Preference and other file locations in Lightroom 5

  • How to fix this error message The backup disk image "/Volumes/AirPort Disk/FARES DEL VALLE's iMac.sparsebundle" could not be accessed (error -1).

    how to fix this error message The backup disk image “/Volumes/AirPort Disk/FARES DEL VALLE’s iMac.sparsebundle” could not be accessed (error -1).

    The troubleshooting C17 is the specific article.
    http://pondini.org/TM/Troubleshooting.html
    This is generally a Lion error.. and you will need 5.6 utility to get access to the disk area.
    So download the real utility. Run it instead of v6 toy version.
    http://support.apple.com/kb/DL1482
    Go to the manual setup, disk page and click on disconnect all users.. that will unmount all users connected to the disk and allow it to start working. But there are a number of other issues that are possible cause. Pondini lists some of them.

  • How to fix connection error on facebook via iphone 4s

    How to fix connection error on facebook via iphone 4s?

    I had the same problem for days. I reset the phone bu holding down the home button and the on off switch together. Don't swipe to turn off. Just hold down the two buttons until phone switched off then wait a few seconds and switch it back on. I can't also use Facebook on safari which I was also having problems with. Hope it helps

  • How to fix itunes error 1611 while restoring ios 4.3.2 , and when i restore to 4.2.1 the can be ok.plz help me

    how to fix itunes error 1611 while restoring ios 4.3.2 , and when i restore to 4.2.1 the can be ok.plz help me

    have a look at this support article.

  • How to fix vecter error

    how to fix vecter error  

    WB, welcome to the forum.
    When requesting help, you should always include the make/model of the computer and/or monitor. This information is necessary for us to review the specifications of the them.
    Signature:
    HP TouchPad - 1.2 GHz; 1 GB memory; 32 GB storage; WebOS/CyanogenMod 11(Kit Kat)
    HP 10 Plus; Android-Kit Kat; 1.0 GHz Allwinner A31 ARM Cortex A7 Quad Core Processor ; 2GB RAM Memory Long: 2 GB DDR3L SDRAM (1600MHz); 16GB disable eMMC 16GB v4.51
    HP Omen; i7-4710QH; 8 GB memory; 256 GB San Disk SSD; Win 8.1
    HP Photosmart 7520 AIO
    ++++++++++++++++++
    **Click the Thumbs Up+ to say 'Thanks' and the 'Accept as Solution' if I have solved your problem.**
    Intelligence is God given; Wisdom is the sum of our mistakes!
    I am not an HP employee.

  • How to fix download error on Adobe Creative Cloud

    How to fix download error on Adobe Creative Cloud, I've reinstalled like three times and it's not working.

    Quit Creative Cloud desktop application  and close All Adobe applications.
    Follow below steps :
    Step 1 :
    1) Right click on Finder icon and  select "Go-To" Folder option.
    2) You will get a text box, type-in below command and then hit 'Return' key.( Do not miss ~ symbol)
    ~/library
    3)Then navigate to Application Support>Adobe
    Right click on Adobe folder and select "GetInfo" option.
    Expand the Sharing & Permissions section.
    Click the lock icon in the lower-right corner. Enter your administrator user name and password when prompted, and then click OK.
    Please click on '+' symbol , it will open list of user accounts. Add Currently logged in user name and Administrator option,
    Then provide "Read & Write" permission to Currently logged in user name and Administrator option,.
    Click the Gear icon, and select Apply to Enclosed Item. Close the Get Info dialog box.
    Step 2:
    1) Right click on Finder icon and  select "Go-To" Folder option.
    2) You will get a text box, type-in below command and then hit 'Return' key.
    /library
    3)Then navigate to Application Support>Adobe
    Right click on Adobe folder and select "GetInfo" option.
    Expand the Sharing & Permissions section.
    Click the lock icon in the lower-right corner. Enter your administrator user name and password when prompted, and then click OK.
    Please click on '+' symbol , it will open list of user accounts. Add Currently logged in user name and Administrator option,
    Then provide "Read & Write" permission to Currently logged in user name and Administrator option,.
    Click the Gear icon, and select Apply to Enclosed Item. Close the Get Info dialog box.
    Then launch Creative Cloud desktop application and check.

Maybe you are looking for

  • How to extraxct  data from a view.

    hi,     i'm tying to extrct data from a view vbdka, with select. but i;m getting a syntax error that it anot a DB Table or DB view, pls tell me how to extract data from that view. thanks.

  • How to set the flag of the mail when I read it for POP3

    HI, All I know that POP3 does not support the flags. As per my knowledge the only flag POP3 supports is the DELETED. if i am not wrong. Now what i have to do is when i fetch the mails programmatically and once i read that I want to mark that mail as

  • Pages doesn't open the Pages document that I created

    Does anyone know what I can do to fix this problem? Is my document gone forever? I have never experienced this.  I created a Pages document and didn't open it for a long time. It's probably been a couple of years ago when I created it. Now I need it

  • Data Source Password

    Hi, is there any way to hide datasource password?. If I see the file data-source.xml I can see the user, password and database host/sid. For client pilicies I can have clear password in files. Thanks. Carlos

  • Is there any tutorial for using ARM cortex-A processors of Zynq for digital signal processing ?

    Hello, everyone. Is there any tutorial for using ARM cortex-A processors(such as A9 and A53) of Zynq to deal with digital signal processing  problems? Please tell me , thanks.