Help: Dosen't work...

This is giving me bad errors:
import javax.swing.*;
public class payEmployee
public static void main(String args[])
String strbooks;
String strmovies;
String strcd;
double books = 0;
double movies = 0;
double cd = 0;
double sum = 0;
double parseNum = 0;
strbooks = JOptionPane.showInputDialog("Please enter how many dollars in books were sold.");
//make those values doubles.
parseNum = Double.parseDouble( strbooks );
books = parseNum;
//get info for movies sold.
strmovies = JOptionPane.showInputDialog("Please enter how many dollars in movies were sold.");
//make movie dollars double.
parseNum = Double.parseDouble( strmovies );
movies = parseNum;
//get cd money in str format
strcd = JOptionPane.showInputDialog("Please enter how many dollars in cd's were sold.");
//format cd to double
parseNum = Double.parseDouble( strcd );
cd = parseNum;
double iArray[] = { books, movies, cd };
for ( int counter = 0; counter <= iArray.length; counter++)
sum += iArray[counter];
sum *= .9;
sum += 200.00;
JOptionPane.showMessageDialog( null, sum, "Testing.." );
System.exit(0);
}

Cross-post
http://forum.java.sun.com/thread.jspa?threadID=596205&messageID=3153525

Similar Messages

  • My computer broke, so I had to change the hardisk(?). Now iTunes dosen't work anymore. It says that the program is either lockes, on a locked unit or I don't have the right to open the library? Help please? :)

    My computer broke, so I had to change the hardrive-hardisk(?). Now iTunes dosen't work anymore. It says that the program is either locked, is on a locked unit or I don't have the right to open the library? Help please?

    Sometimes a restart can fix this issue, but sometimes you have to fix the iTunes Library.itl file.
    Try quitting iTunes, renaming the itunes file "iTunes Library.itl" to "iTunes Library Old.itl"
    then open itunes again
    This should generate a new library file.
    From this point you can try two different avenues.
    1. Re-add everything to your library by going to the iTunes file menu, and selecting "add to library"
    2. You can try deleting the iTunes Library.itl you created, changing the name of the old file back to iTunes Library.itl
    I hope this helps. I did something like this a while back and it worked for me.

  • Hi i need help one of my key on the keyboard dosen't work for some reason please help

    hi i need help one of my key on the keyboard dosen't work for some reason please help

    try smc reset
    http://support.apple.com/kb/ht3964
    and Pram reset
    http://support.apple.com/kb/ht1379
    (Try pram a few times to get correct sequence)
    Check what you have selected in
    system preferences/system/accessibility/keyboard
    and system preferences/hardware/keyboard  (keyboard and keyboard short cuts tabs)

  • It dosen't work to atctivate my iphone,pleas help me!

    I had jailbreak instaled in my iphone 4 and now my iphone dosen't woork my english may be bad because I live in Sweden.
    Now I have restored my iphone and it dosen't work to activate it pleas can some one help me!!!

    No, no one in an Apple hosted forum can help you with a jailbroken phone. It won't activate BECAUSE it is jailbroken.

  • My Home button dosen't work sometimes ,HELP!!!

    My Home button dosen't work sometimes ,HELP!!!

    You don't need to post multiple times.  Please see the answer posted in your most recent post.

  • Photoshop elem 12 + mac os = dosen't work, HELP!!

    Hello !!! I bought on amazon adobe photoshop elements 12, I have a mac os and when I inserted the CD to install the program and clicked on install it dosen't work !!!!!! what happens is that I press on install, it start loading but then when he almost finished it stops and says I need to download adobe support advisor but the link that they give dosen't work so I can not finish installing the program... what should I do?! any suggestions ?!

    copy the installation files to a desktop directory.  install from that directory.

  • MacBook Pro Microphone dosen't work!

    Internal Microphone dosen't work suddenly. Please help me!

    Your appointment at the genius bar for an evaluation is FREE, in warranty or out. These guys put their hands on these computers all day every day, and they are good at physical problems like this one.

  • NetInstall dosen't work for intel machines

    When booting the machines in my lab while holding down the OPTION key, only the G5 and earlier machines are giving me the icon for NetInstall. NetInstall works great on the G5 and earlier, but dosen't work at all on any intel machine I've tried. The image is marked as "Universal" in Server Manager, and is an image from an intel MacBook.
    Leopard Server 10.5.1
    I have 20 new iMac's in route. I really need NetInstall to work for them. Any help would be appreciated.

    You say that your NetInstall was taken from an Intel MacBook. Was its OS Leopard? If it is Leopard then you do have a bizarre problem on your hands as it is Universal. Tiger client, on the other hand, is not Universal.
    How new are the target clients? Could they have been shipped with a build of Leopard newer than the one you've based this NetInstall on?

  • Netflix dosen't work with website restrictions switched on.  What urls need to be defined ? thanks !

    Trying to get Netflix app to work on daughters ipad while using restrictions.  However, when websites are limited to defined URL Netflix app dosen't work.  Does anyone know what urls need to be defined to allow the netflix app to function with web restrictions switched on.  Thanks !

    I have the same issue. Tried all kinds of variations of the netflix urls (movies.netflix.com, signup.netflix.com, http://www.netflix.com, https://netflix.com etc....) couldn't get it working right... Did a mess of google searching and this thread is the only one I could find that addressed my exact issue. Called netflix and Apple. Apple was able to get it working (sort of, or temporarily....) They had me uninstall the app, then go under Settings -> General -> Reset -> Reset All Settings (make sure you know your network password for your wi-fi router before you do this, because you will need to reconnect to wi-fi because the password will get wiped out of the system memory) Supposedly, this will not remove any data, just reset to factory settings. After that was done, they had me shut down the iPad, then restart the iPad. Then reconnect to wi-fi and re-set all of the Restrictions settings I had set up originally. I left in five variations of the netflix urls because when I tried these steps with just one url it wouldn't work. I tried some testing, but couldn't figure which ones were needed so I left all five in the allowed websites section under restrictions. (movies.netflix.com, signup.netflix.com, http://www.netflix.com, https://www.netflix.com, https://movies.netflix.com). Then I re-installed the netflix app and viola! it worked! I did a shutdown and restart of the iPad while I had the apple technician on the phone to make sure the app would still work after a restart and it did! Awesome.... but, after playing with the iPad some, the app would not work again! UGGGGGGGHHHHHH! I don't think I did anything specific to cause it to stop working and repeated the procedure at least 4 times with the same result, so I'm not sure what the problem is and I don't have days to spen on this.... So, I then did a bunch more testing and here's something that seems to work all the time, although it's a bit of a pain in the arse... When the netflix app is not working, go under Settings -> General -> Restrictions -> Websites and set the "Allowed Websites" to All Websites. Then close out of settings and launch the netflix app. (give it a couple of minutes to get past the red screen with spinning wheel if it doesn't open right away). Now, once the netflix app has been launched, go back and set the "Allowed Websites" back to Specific Websites Only and the netflix app will work at least until the next reboot of the iPad... The only problem with this is that you will lose your list of Specific Websites everytime you do this... For me it's not a huge problem, because my son is only 7 and doesn't really "Surf" the web, so I don't really have to add websites all the time. Hope I helped some Stecun... Hopefully netflix and apple will take steps to make this work better in a future update.... If anyone out there has a more permanent solution, it would be greatly appreciated! Where's all the computer science moms and dads at out there?
    For reference, I'm using an iPad mini (not retina) running ios7.0.4 (11B554a). There were no other apps installed besides netflix and the factory installed ones at the time of my testing....

  • Handoff dosen't work between Macbook pro Retina Mid 2012 & iPhone 6

    My Macbook Pro Retina Mid 2012 dosen't work in handoff with my iPhone 6 or my new iMac late 2012,
    Handoff option in the system preferences is allowed and i log in with the same iCloud in all my devices ,
    and its only work with the phone calls and messages but not for the safari or iWork's apps.
    Help plz!

    Your MBP is too old to support a 4k display:
    http://support.apple.com/kb/ht6008
    Ciao.

  • The sound chip dosen't work, i need to repair...

    i have an 4s iphone, and the sound chip dosen't work, i need to repair...
    is it possible a solution? If I leave it in the apple store, can they resolve the problem?

    If you have not done so already, try the usual steps: restart, reset, restore.
    http://support.apple.com/kb/HT1430
    http://support.apple.com/kb/HT1414
    If you try restoring from a backup and that doesn't fix the problem, try restoring to factory settings and, if the problem goes away, then sync back your apps and content. You'll lose the app data and settings, but if the problem is due to a corrupt cache or settings file, that should cure it.
    If none of that helps, your device may have developed a hardware fault and will need to be take or sent to Apple. They will replace the iPhone; they do not repair yours.
    Regards.

  • Downloading/updating apps dosen't work

    downloading and updating apps dosen't work. all apps i want to download/update are labled by "Warten..." (german - i think its "waiting" in english).
    a turn off an on manually or by pushing the home and lock-button dosen't help. The wifi-connection works without problems (i'm still able to use mail or safari).
    do you have any ideas?
    thanks

    ... first time that problem appears was on updating seven apps by clicking the button "update all" in the app store of the ipad - meanwhile i delete this seven apps but that doesn't help.

  • My microphone dosen't work when i call !! the caller can not hear me !! Any answer to this probleme ??

    my microphone dosen't work when i call !! the caller can not hear me !! Any answer to this probleme ??

    HI there,
    Please see the video link below to learn how to remove the pairing from your iPhone, powercycle the phone, reset the BlueAnt Q2 (please check which BlueAnt device you have and reset as approopriate) and then pair with iPhone again.
    http://www.myblueant.com/support/videos/Q2/iPhone/remove_and_reset/
    If this does not resolve your problem please contact our customer support team on +1 855 9 BLUEANT or +1 855 9 2583 268.
    Hope this helps
    Scott

  • My iphone dosen't work or recharged because of completed electricity

    i have iphone 5c 16G with an updated system iOS 8.1.2
    i used it until it's bettery charging completed, then when i try to rechrge it, it dosen't work.
    only the apple appear on the screen then disappeare
    please help me,
    what can i do?

    Hello wadhahfromsanaa,
    Welcome to the Apple Support Communities!
    I understand that your iPhone will not power on past the Apple logo and will not charge. In this situation, I would recommend reading over and working through the steps provided in the attached article. 
    If your iOS device restarts, displays the Apple logo, or powers off while you're using it - Apple Support
    Have a great day,
    Joe

  • I have a search bar in the middle of my homepage that dosen't work

    a firefox searchbar in the middle of my homepage dosen't work.

    Hi,
    You can try deleting '''chromeappsstore.sqlite''' in the [http://kb.mozillazine.org/Profile_folder Firefox Profile Folder] after exiting Firefox.
    To open the profile folder via Firefox: '''Help''' ('''Alt''' + '''H''') > '''Troubleshooting Information''' > '''Show Folder'''.
    [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder & Files]
    If the problem persists, you can try to Reset Firefox and start afresh.
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

Maybe you are looking for