Help Please homework question lost :S

I am very lost on how to do this. ive attempted it for a long time period and i stil cant get it. This is what i have to do.
This does not require an array! An elastic rope starts out with length 100 meters. The start of the rope is fixed to a pole and a worm is placed on the rope at the start and the worm starts crawling towards the end. Each day the worm crawls 6 meters along the rope. Each day the rope is stretched by 100 meters. After how many days does the worm reach the end of the rope?
Sample Output
Day = 0 Million. Distance from end = 0 Million meters.
Day = 1 Million. Distance from end = 19 Million meters.
Day = 2 Million. Distance from end = 30 Million meters.
Day = 3 Million. Distance from end = 39 Million meters.
Day = 4 Million. Distance from end = 45 Million meters.
Day = 5 Million. Distance from end = 49 Million meters.
SO far i have
import java.util.Scanner;
public class WormProblem
     public static int DISTANCEPERDAY = 6;
    public static void main(String[] args)
   Scanner keyboard = new Scanner(System.in);
        int countOne = 0;
       int count = 0;
    int ropeLength = 100;
    int distanceFromStart = 0;
    int distanceFromEnd = 0;
    while (distanceFromEnd >= 0)
         distanceFromEnd = ropeLength - distanceFromStart;
         distanceFromStart =+ DISTANCEPERDAY;
         ropeLength = ropeLength + 100;
         count++;
         if(count==1000000)
              System.out.println("Day ="+countOne+" million"+" Distance from end: "+distanceFromEnd+" Million Meters");
              countOne++;
}It just doesnt print properly at all. PLEASE someone help

Double posting twatface!
http://forum.java.sun.com/thread.jspa?threadID=783814&tstart=0
NO HELP FOR YOU!

Similar Messages

  • I really need help, please! I lost my phone, help to know my imei

    Hi. I lost my phone today, he is very important to me. I live in Russia, so sorry for mistakes. I have number under the barcode. Is it help me to find my imei ? Please, i am really upset. it is Lenovo K900

    with instaling new wdm driver from http://www.nvidia.com may be your problem solved
    thanks alot

  • HELP please - i've lost most of my contacts

    I've just updated my iphone5 to i0s7.1.2 and now I've lost most of my contacts. I cant do a back up from a older 'backup' as iTunes is only listing the backup done today - I desperately need to get my contacts back, can anyone help me please :-(

    Had the same problem. Freaked me out since I am away from my computer. Go to Settings, iCloud, and turn ON Contacts. Presto! Within a few minutes, your contacts will return (as long as you had them backed up to iCloud).

  • HELP PLEASE-- flashing question mark on startup, none of remedies working

    I'm using my Powerbook one night, everything is working fine. I wake up, go to use it and I get the spinning color wheel; tried to close an application by force quit and I get no response, so I restart using the power button, and the flashing question mark / mac OS icon pops up.
    I immediately did some research on what to do; I put the OS cd in, tried restarting holding the C key and later the X key; nothing. Tried resetting PRAM, didn’t solve the problem. Tried holding command-S to check disk/repair, didn’t work. I then held the option key to choose the location to boot off: and neither the HD nor cd showed up: just the circular arrow to re-scan, and the straight arrow to enter the selection.
    I have 2 install discs: I'm not sure if they are the same or not; I may have put the wrong one in. So I tried to eject it and now it wont eject.
    Firstly, how to eject the cd? I tried holding the eject button, F12, command + . , as well as the trackpad. I don’t see a place to put a pin or paperclip in like some cd drives have to force it open.
    Secondly, what else can I try to get my computer working? I'm no expert, but it sounds like this might be a hardware problem aside from the HD, being that the computer is not recognizing neither HD nor cd. However, the cd I have is a copy of the OS disc I made, and it may or may not be the right install disc, or properly made copy.
    How difficult is it to open up Powerbooks and replace the HD? I'd like to have it up and running as soon as possible, but most importantly I hope that my data is still safe. And no, unfortunately I hadn't backed up my data. Please advise.

    Maybe the copy of that disk is not bootable. Do you have the original or can you get it?
    Here's a faq to remove disks.
    DALE

  • Help please Stupid Question on startup password

    Hi there. I am new here, bought a used Emac and have been using it for several months now. It came with an administrator account and I had the password and everything was fine. Today my husband was "cleaning out files" and restarted the computer. Upon startup, a screen comes up with my name on it asking for a password. Now he swears he never set up an account for me and I know I never did. He must have done something in the settings that he doesn't remember. The password that was used for the administrator account doesn't work there. I have no clue what the password would be. There is no other user option that comes up. The original administrator is gone. I can't get into my computer! This is very very bad as I use it for business. Does anyone have any idea what could have happened or how I can fix it? Unfortunately when I purchased the computer, I didn't get any software with it so I can't go that route to fix it. Please help!

    Welcome To Discussions sweetmissjulie!
    Even if you are successful in resetting the password, you really must obtain a set of system install disks.
    You could call Apple customer service, and ask if you could purchase a copy of the original discs that shipped with the eMac, or you could opt to purchase a Full Retail Version of OS X. This would also enable you to upgrade the eMac to the current version Tiger.
    Tiger is available for purchase at The Apple Store (U.S.).
    Panther, is no longer available directly from the Apple Online Store, as Tiger 10.4.x is the most up to date OS.
    If you know what to look for, a Full Retail Version, of the Panther Install CDs, or a Full Retail Version, of the Tiger Install DVD, can also be purchased rather inexpensively, at some online Apple retailers, Amazon, eBay, FastMac, AppleRescue, etc.
    Be sure not to purchase grey, upgrade or machine specific CDs or DVDs.
    Panther is only on CDs, not DVDs.
    Unless purchased from AppleRescue, the discs should look exactly like the images in the above links, and not say Upgrade, CPU Drop-in DVD, or "This software is part of a hardware bundle purchase - not to be sold seperately." on them.
    Additional info in these links.
    Using OS X Install CDs/DVDs On Multiple Macs
    What's A Computer Specific Mac OS X Release
    Software Update, Upgrade: What's The Difference?
    Once Panther 10.3.x is re-installed, you can use the 10.3.9 Combo Update, to upgrade to the final version.
    If your Mac meets the Tiger System Requirements, you could also consider installing that, and then use the PPC 10.4.9 Combo Update, to upgrade to the current version.
    Additionally, "Tiger ships on a DVD, but if your Mac doesn’t have a built-in DVD-ROM player, you’ll need CD media. When you buy Mac OS X Tiger, you qualify to purchase Tiger CDs for only $9.95."
    Download the Media Exchange Program Order Form Here. Note that the date on that form is March 19, 2007, but the program was extended to reflect Orders must be mailed by June 22, 2007.
    I suggest that if you choose that route, call Apple to ensure that is is still available.
    AppleRescue, also sells a Tiger installation set on CD.
    Shop Carefully, Examine All Documentation, And I Wish You Success!
    ali b

  • Urgent help please, export question

    I only recently started using Speedgrade and need to export my sequence back to Premiere but it's only giving me a bunch of individual files, not a sequence I can open in Premiere. I searched through the forums but could not find a detailed answer.
    From my sequence in Premiere I selected "send to speedgrade"
    I applied color grading to the clips
    For output I selected DPX baseline, this just spit out every clip as a dpx file but no sequence to maintain the edits. I don't see an option for DPX sequence anywhere.
    I would be very grateful for some immediate help as I have a deadline soon.
    Thanks.

    SpeedGrade is a different beast. To answer you last question: Adobe had less then half a year to develop any integration with the Creative Suite.
    Regarding your first question see this tutorial:
    http://www.video2brain.com/en/lessons/exporting-to-speedgrade

  • Someone help please!  I lost $90 worth of itune cards

    I bought an ipod for my daughter and tried to get an apple ID.  I entered my info. and it asked for a credit card so I entered all the itune cards she got for Christmas ($90).  Hit the submit button and then realized I didn't type the email address correctly.  Since I can't get the verification code from the email, I tried it again using the CORRECT email and verified my account, but it won't let me use the gift cards.  I tried going to yahoo and opening an account in the name I sent (the mispelled on) but yahoo said I couldn't use that email name.  I thought maybe it was because it was already in use, so I email the adress what I did wrong and asked her to verify my account for me and than I would erase her email off my account, but the message came back to me (not an address) So now what do I do?  I called Apple support and the guys there had no idea!  Hoping someone out there does!!!  PLEASE HELP!!!

    If it were me I would contact: Apple Store Customer Service at 1-800-676-2775

  • Need help please!  (Question around syncing, getting a new iphone & content

    Hi Folks,
    Hope someone can answer some questions for me.
    1. I attempted to sync my iphone last night and it says it is sync'd to another computer. I tried all of my computers in my home and all of them say this. If I sync it with the computer it says it will erase data. What does it erase? just songs? I'm really worried about my contacts and downloaded (paid for) content.
    2. I ordered a 3GS and am excited to have it. How do I transfer all my content over to the new phone?
    3. I am also wondering about the purchased content on my iphone will I be able to transfer my licenses?
    4. Can I use my iphone for anything after I disconnect the service?
    thanks!

    Yes, you can transfer the SIM if the used phone you purchase is either an AT&T iphone or an unlocked GSM iPhone.
    Yes, you can remove the SIM with the power on.
    Be careful in buying that used iPhone from eBay. If it is Activation Locked you will never be able to use it: http://support.apple.com/kb/ht5818

  • Help Please - Bookmarks Question

    I am using Acrobat Pro X on a PC with Windows 7.
    I have pdf files I created in InDesign with Bookmarks.
    More times than not when I export the files to a pdf, open the file in Acrobat, Click on a bookmark, it takes me to another location. They work just fine within InDesign.
    Is there something more I need to be doing?
    Thanks for any assistance.
    Brad

    A possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    * http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox

  • HELP PLEASE(TDM question! )

    Hi, recently i got an iMac 27' 2013(lvy) w/ gtx660m as a present and I'm think I'm going to get a Alienware X51(i3 model) next week, will TDM works for it?Target Display mode. I already did some research, and here it is:
    "Target Display mode Requirements:
    What are the requirements for TDM?
    A Mac notebook or desktop with a Mini DisplayPort or ThunderBolt connection
    A ThunderBolt or Mini DisplayPort cable 
    A supported iMac with OS X 10.6.1 or later. The table below shows iMac computers that support TDM, the required cables, and the port of the computer to which you are connecting the iMac.
    iMac Model
    Cable Supported
    Port on Source Computer
    iMac (27-inch Late 2009)
    Mini DisplayPort to Mini DisplayPort
    Mini DisplayPort or Thunderbolt
    iMac (27-inch Mid 2010)
    Mini DisplayPort to Mini DisplayPort
    Mini DisplayPort or Thunderbolt
    iMac (21.5-inch, Mid 2011)
    Thunderbolt to Thunderbolt
    Thunderbolt
    iMac (27-inch, Mid 2011)
    Thunderbolt to Thunderbolt
    Thunderbolt
    iMac (21.5-inch, Late 2012)
    Thunderbolt to Thunderbolt
    Thunderbolt
    iMac (27-inch, Late 2012)
    Thunderbolt to Thunderbolt
    Thunderbolt
    So all i have to do is to get a Thunderbolt cable, isn't it?Will a converter(HDMI to Thunderbolt) works?
    Sorry for my POOR english
    If not is there any way to make it works?Coz I don't want to spend any money on monitor

    Niel wrote:
    Target Display mode is supported on a late 2013 iMac.
    Thanks. Then, their Oct '13 article http://support.apple.com/kb/ht3924 is out of date.

  • When i turn on my macbook pro it goes to white screen with picture of folder with ? on it help please

         can't log on to macbookpro goes to flashing file with ? in middle help please

    A flashing question mark or globe appears when you start your Mac
    Question (?) Mark, Blinking Folder, or Gray Screen at Startup
    These are related but not identical issues. Their causes are outlined in Intel-based Mac- Startup sequence and error codes, symbols. Solutions may be found in:
    A flashing question mark appears when you start your Mac
    Mac OS X- Gray screen appears during startup
    In most cases the problems may be caused by one or more of these:
    a. Problem with the computer's PRAM - See Resetting your Mac's PRAM and NVRAM.
    b. Boot drive's directory has been corrupted - Repair with Disk Utility.
    c. Critical system files are damaged or deleted - Reinstall OS X.
    d. The disk drive is physically non-functional - Replace the hard drive.
    Note that the information I have provided is what Apple recommends, If other users suggest different solutions than found here, then be sure what they recommend does not impact on your warranty, if any, or ability to get continuing Apple service.
    Please don't start removing drives or changing cables unless you know what you are doing and have exhausted other non-invasive alternatives outlined here. If you perform any work yourself that is unapproved by Apple, then you will void any warranty you may have and lose all further Apple Support.
    Repair the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    The main difference if you are using Lion or Mountain Lion is that you must first boot from the Recovery HD. Simply boot from the Recovery HD to perform the above.
    Reinstall Snow Leopard Without Erasing The drive
    1. Repair the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    2. Reinstall Snow Leopard
    If the drive is OK then quit DU and return to the installer.  Proceed with reinstalling OS X.  Note that the Snow Leopard installer will not erase your drive or disturb your files.  After installing a fresh copy of OS X the installer will move your Home folder, third-party applications, support items, and network preferences into the newly installed system.
    Download and install Mac OS X 10.6.8 Update Combo v1.1.
    Reinstalling Lion/Mountain Lion Without Erasing The Drive
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu.
    Reinstall Lion/Mountain Lion: Select Reinstall Lion/Mountain Lion and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.

  • I downloaded some music a friend gave me and it will not transfer to my phone. It is sitting in the "not on this iPhone" tab with grey circles next to it. It is also sitting in my iTunes library but will not transfer. Help please!

    Help please! Question is in topic. I haven't been able to figure this out.

    i guess i just wasn't waiting long enough. after about a half-hour, songs began to update. i hope this is not normal and is only happening the first time.

  • Back up iPhone contact while updating IOS 3, then contact lost on iPhone & cannot restore from backup that appear on iTunes! help please

    back up iPhone 3G contact while updating IOS to IOS 6.1.3
    then contact lost on iPhone
    & cannot restore contact from last backup that appear on iTunes-files!: it is grayed (not pickabble!)
    this is scary ! not ipressed by mac for once!
    help please!

    Well Hello,
    maybe 3GS as your question indicates that only S update should work, and it  works, but now only my name appear in contact! wao!

  • I  used to have an OLD Photoshop cd but it has been lost and my program is no longer on cd. I talked with some photographer friends and this is what one of them told me to get: Adobe Photoshop Lightroom and CS CC... HELP please?

    I  used to have an OLD Photoshop cd but it has been lost and my program is no longer on cd. I talked with some photographer friends and this is what one of them told me to get: Adobe Photoshop Lightroom and CS CC... HELP please?

    If you still have your serial number, look at OLDER previous versions http://www.adobe.com/downloads/other-downloads.html
    Otherwise, the US$ 9.99 plan is what is current at Cloud Plans https://creative.adobe.com/plans

  • Help Please. Lost my music Ext Hard Drive.Using my Back Up on a new Hard Drive. Itunes cant fins songs

    HI there, i need some help please .....
    I had a hard drive failure, external one, the i use to have all my music collection ( 550 gigas of music )
    I got a new external HD and put there all the music the i had it back it up, .... same folders name, same HD name ... and i get The song “Point 0” could not be used because the original file could not be found. Would you like to locate it?
    Under itunes preferences i uncheck always " copy files to itunes media folder when adding to library "
    Becouse i work with music, i created for many years playlist and also rate songs, info the i dont wanna lose, and it will be really really hard to re load all the tracks manually back agein, if i just drag my music folder on the eternal HD to itunes agein ......
    My question is, why itunes wont see my music if everything its under the same folders, and folders names .. ( all my music was backed up as it was ), i just put it back on a new HD ..... how can i fix this keeping in mind the i really need to keep all my playlist songs, and raiting tags ??
    Thank you so much .....

    Thank you for your time and help guys,.... to check the path i use to have, i select a song with the ! mark, and comand I  to get hte info and inone of the info tabs, you can see where the file was located at,... and i realice i had a missing space in the folder name where my music was. Made the change, restarted itunes and the problem was fixed.
    Thank you !

Maybe you are looking for

  • How do I convert an Imovie to wmv file?

    I created a imovie and tried to upload to you tube but the file type was not compatible with you tube applications.  Wmv files are, is there a way to convert imovie to wmv?  If not, is there a proceedure to upload an imovie so that it will work on yo

  • Java Error by installation of NetWeaver 7.01 ABAP Trial Version

    If i try to install "New SAP NetWeaver 7.01 ABAP Trial Version" on Windows XP SP2 in 3 seconds after start I get this errormassage : Java.lang.noclassdeffounderror: run Exception in thread "main" and then is installer dawn. What is to do? Plaese help

  • Maintaining a website with Dreamweaver 8 vs. CS3

    Hi there! Please bear with me . . . I am squeaky new to Dreamweaver and website building in general. I have a website that I need to maintain that was created in Dreamweaver 8. I was planning on purchasing the newest version when the original develop

  • TS3276 Please help me with setting up the email.

    I have set up a new email.  The message states it cannot use the port 995.  Please help me with this.  Thank you

  • Help : IEEE 1394 failed to work in W2K (code 10 error)

    Hi all, My KT4 Ultra FISR c/w IEEE 1394 and been trying to get it work under Win2K & XP. So far managed to get USB 2.0 working under Win2K but IEEE 1394 always failed with code 10 error in 'hardware manager'. Anybody got experienced before ?