My Iphone 3g is so slow, can anyone help by giving suggestions on how to improve speed?

Can anyone help?My Iphone 3g is so slow and can you help by giving suggestions?

hi guys...i have managed to do this but i think there is still something wrong...can any kind soul point out the mistakes? thanx!
class Lab_04
     public static int wrongans = 0;
     public static int score = 100;
     public static double probability1 = 0.81;
     public static double probability2 = 0.3;
     public static double probability3 = 0.95;
     public static double probability4 = 0.13;
     public static double probability5 = 0.79;
     public static double probability6 = 0.83;
     public static double probability7 = 0.32;
     public static double probability8 = 0.68;
     public static void main(String[] args) {
          if (Math.random() >= probability1) {
System.out.print("O");}
else {
     wrongans++;
System.out.print("X");
          if (Math.random() >= probability2) {
System.out.print("O");}
else {
               wrongans++;
System.out.print("X");
          if (Math.random() >= probability3) {
System.out.print("O");}
else {
               wrongans++;
System.out.print("X");
          if (Math.random() >= probability4) {
System.out.print("O");}
else {
               wrongans++;
System.out.print("X");
          if (Math.random() >= probability5) {
System.out.print("O");}
else {
               wrongans++;
System.out.print("X");
          if (Math.random() >= probability6) {
System.out.print("O");}
else {
               wrongans++;
System.out.print("X");
          if (Math.random() >= probability7) {
System.out.print("O");}
else {
               wrongans++;
System.out.print("X");
          if (Math.random() >= probability8) {
System.out.print("O");}
else {
               wrongans++;
System.out.println("X");
     System.out.println ("Score (out of 100):" + (score-(20*wrongans)));
}

Similar Messages

  • Hi All, I have the latest version of iTunes, however since upgrading I can no longer get iTunes to recognise that any devices (iPhone / iPad) are connected? Can anyone help please. Paul

    Hi All, I have the latest version of iTunes, however since upgrading I can no longer get iTunes to recognise that any devices (iPhone / iPad) are connected? Can anyone help please. Paul

    Try holding down CTRL as you launch iTunes to see if it will repair the drivers.
    Or try Cerbu's post here.
    Or see TS1538: iOS: Device not recognized in iTunes for Windows, in particular section 5, forcing a driver update.
    Please let us know which approach works for you...
    tt2

  • When I open iTunes, this window pops up. "A required component is not installed. Please reinstall iTunes. (-42076)" I have not been able to sync my iPhone after restoring it. Can anyone help?

    When I open iTunes, this window pops up. "A required component is not installed. Please reinstall iTunes. (-42076)" I have not been able to sync my iPhone after restoring it. Can anyone help?

    Download iTunes 11 from the Apple site and reinstall. The error message was quite plain in telling you what to do to resolve the error.

  • I have another account that i can't delete off my phone because lost my recovery key and password. How do i get rid of this account? it will not let me turn off find my iphone and delete account. Can anyone help?

    I have another account that i can't delete off my phone because lost my recovery key and password. How do i get rid of this account? it will not let me turn off find my iphone and delete account. Can anyone help?

    Hello aweirandyski.1975,
    Thanks for using Apple Support Communities.
    From what you're describing appears to be Activation Lock, a security measure provided by Apple that makes it harder for people to use a lost or stolen device.  You will need to enter the password for the Apple ID the device is prompting you for.
    iCloud: Activation Lock
    http://support.apple.com/kb/PH13695
    Take care,
    Alex H.

  • My macbook air has gotten slow this past week i have changed browsers and the beach ball keeps coming up all the time and on a game i play it says the network is slow can anyone help me?

    my macbook air has gotten slow this past week i have changed browsers and the beach ball keeps coming up all the time and on a game i play it says the network is slow can anyone help me

    Go step by step and test.
    Restart the router. Restart the computer.
    OS X 10.7 Lion / 10.8. Mountain Lion
    http://support.apple.com/kb/PH3915
    Start up in Safe Mode.
    http://support.apple.com/kb/PH4373
    Repair Disk
    Steps 1 through 7
    http://support.apple.com/kb/PH5836?viewlocale=en_US
    Reset SMC.
    http://support.apple.com/kb/HT3964
    Choose the method for:
    "Resetting SMC on portables with a battery you should not remove on your own".
    Increase Disk Space
    http://support.apple.com/kb/PH10677?viewlocale=en_US
    Best.

  • I have an iphone 4 just updated my iTunes and now i'm having troubles to sync my iPhone with iTunes... can anyone help me plz?

    i have an iphone 4 just updated my iTunes and now i'm having troubles to sync my iPhone with iTunes... can anyone help me plz?

    You need to do as provided. If no change after restoring as a new iPhone or not from the backup, the iPhone has a hardware problem.

  • Iphone 6Plus will not allow POP email account and cannot print to my wifi printers, I did on my Iphone 5 until I upgraded, can anyone help

    Iphone 6Plus will not allow POP email account and cannot print to my wifi printers, I did on my Iphone 5 until I upgraded, can anyone help

    I had talked with three people at Apple tech support on the phone, one person in the Apple store in Indianapolis, plus the other places I mentioned. Only the one young man in the Apple store was even able to identify the problem which was the POP vs. IMAP issue. And then like you said he was only able to say he hoped it would be fixed in the next update release. I did call him back this morning and told him about your simple solution, that I had seen it at the Apple forum, and that he might suggest bringing this topic up at the next staff meeting. I also let my Verizon rep know and an agent at Comcast. Something so simple yet it took three days and a lot of frustration to get fixed. Thanks again. You're my hero! ~ Carol Thomas
    Also forgot to mention ... I got the iPhone 6 Plus about three weeks ago and did not have this problem. But I did a backup of my iPhone 5S on the computer and then used that backup to restore to my new iPhone. The iPad I did differently and just set it up as a new iPad with no restoring from the old one. That must have made a difference on the phone because it was set up just like the 5S ... as a POP3.

  • I can't transfer music and other files from library to my iphone 4 by dragging it.can anyone help me?is there any other way to transfer files into iphone?

    i can't transfer music and other files from library to my iphone 4 by dragging it.can anyone help me?is there any other way to transfer files into iphone?

    If you want to drag and drop ( don;t know why you would do this), you will have to check manually manage music.
    Why not just sync?
    iPhone User Guide (For iOS 5.0 Software)

  • Just got second hand iphone4s. Tried to connect to iTunes on laptop running windows 8.1. Does not detect iPhone, iPod or iPad. Can anyone help please?

    Just got a second hand iPhone 4s and tried to connect to iTunes on laptop running windows 8.1 does not detect iPhone, iPad or iPod. Can any help please? iPhone is  version 7.1 and running latest itunes

    Hello HungryHoover,
    It sounds like you are not able to see any iOS devices in iTunes on your PC. I recommend the following article to help you troubleshoot that named:
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/ts1538
    Thank you for using Apple Support Communities.
    Regards,
    Sterling

  • My music keeps jumping and i cant play it on my iphone since i backed up to icloud. can anyone help me and tell me how to get my music back to normal. thanks

    my music on my uphone that i bought through itunes keeps jumping around and i cannot play it since i backed up my phone to icloud. Can anyone help me play my music again without it all jumping around. thanks

    Backing up to iCloud should have nothing to do with how your music plays.  Try force-closing the misic app:  from the home screen, double-tap the home button, locate Music in the list at the bottom, tap and hold it until it wiggles, tap to close it, tap the home button again.  Try your music again.

  • Multiple issues with my iPhone 3GS since 4.1; can anyone help?

    Hi,
    I have an iPhone 3GS 16GB which I love very much. Vital Statistics are:
    Version: 4.1 (8B117)
    Carrier: Voda AU 8.0
    Model: MC132X
    Modem Firmware: 05.14.02
    I bought it through Vodafone Australia in January this year. It’s been brilliant, it is this device which convinced me Apple sold brilliant gear, and greatly influenced me to buy my iMac 27", 17" Macbook Pro, Airport Extreme, and Time Capsule.
    I am a Senior Test Analyst with telco experience in all of Australia’s mobile phone operators (3, Vodafone, Optus, and Telstra). I now work for a global media company, and depend on my iPhone for phonecalls, emails, internet, getting access to my share trading platform, banking apps, calendar, etc.
    I went to Germany for 2 months, and I bought the unlock from my carrier, Vodafone Australia, so I could use a usim from Vodafone DE in Germany. Vodafone’s instructions were that in order to apply the unlock, I had to connect my iPhone to iTunes, where it would download an update from Apple and unlock my phone.
    I performed the upgrade to 4.1, which was a completely clean install after backing everything up.
    Unfortunately, after upgrading from 3.1.3 to 4.1 I am having no end of issues with my trusty (once) 3GS.
    Issues I am currently encountering:
    1. Dropped calls. Both in Germany, and in Australia, my iPhone is dropping calls at a rate it has never, ever done before. 1 out of ever 2-3 calls is being dropped. The voice quality is also degraded over what I remember it being (both in AU and DE), and I’m getting ‘squawks’ and ‘screeches’ in the middle of my conversations which I never had prior to upgrading.
    2. Signal strength is very poor. Before I upgraded to 4.1, I was able to make and receive phonecalls at my desk at work (right in the heart of Sydney’s CBD, right next to Hyde Park.) without issue. I was able to walk in between my company’s offices in the CBD and talk the whole way without problem. Now, I get 1 bar at my desk, and I’m lucky if I can make a phonecall 50% of the time there. I can no longer receive the volume of calls that I used to at my desk either. Walking between offices sees my phone calls drop EVERY TIME now. At home, with 3.1.3, I had no problem with reception. Now, I drop calls inside my house on a regular basis, and I often don’t have enough signal to make calls at home where prior I had no issues. My younger brother, who bought an iPhone 3GS on the same day I did, from the same Vodafone store, at the same time, is still on 3.1.2. He has no problems with reception in the house at all. He walks around taunting me holding phonecalls without issue.
    3. Internet performance has been devastated. Whereas my google maps, email, and internet access used to be fast and crisp, now it is slow and haphazard. I am also seeing the 3G symbol disappear and be replaced by an E symbol, and my phone seems to have difficulty staying on the 3G network. My brother, standing right next to me, does not have these problems. Once again, my brother’s iPhone 3GS on 3.1.2 does not have any internet problems when he is using his iPhone right beside me. We are on the same carrier (Vodafone AU), on the same plan.
    4. My iPhone battery life has been dramatically reduced. Whereas I used to be able to use it for almost a full day, with minor top ups when it got really busy, now my battery life vanishes before my eyes in half the time. This is with the device simply not being up to the task of performing the workload it used to!
    5. My iphone locks up, and crashes at random times, and I’ve been having to hard-reset it on occasion.
    6. My iPhone is far slower than it used to be. I’ve compared it to my brother’s identical 3GS on 3.1.2, and his phone flies in comparison to mine! Opening my SMS’s, email client, and internet browser is painfully slow.
    7. When calling a number, often my iPhone ‘waits’ for 20-30 seconds at the ‘calling mobile’ screen before I hear any tone from the phone indicating that it’s making the phone call. This never happened when it was running 3.1.3. This never happens on my brother’s identical 3GS.
    8. My wireless performance has decreased. I have run bandwidth tests through my wireless router numerous times from www.speedtest.net, and compared them with my brother’s results performed right before and right after mine. I’ve run this test against my brother’s 3GS more than enough times to form a statistical picture. On the whole, my wireless performance is around 10-15% worse than his 3GS.
    I work in the telco industry. I regularly chat with the radio engineers who fix up blackspots in 3G coverage for Telstra and 3 Australia. I know that the excuse offered, that of the iPhone software correctly reporting the signal now and not before is absolute rubbish. My 3GS used to work at my desk, between my offices, and at home flawlessly. It crawls along now, and it does not get the reception signal quality it used to.
    I have wiped my iPhone several times now. I have put it into DFU mode and totally, cleanly installed the 4.1 software. I have done this 4 times now.
    The clean installs have not fixed the issues above.
    I would like to know what my options are for fixing these issues?
    The prime questions I have are:
    1. How can I roll back this accursed update?
    2. Why would Apple release a software update(s) that hasn't been tested, and dramatically negatively impacts my beloved 3GS?
    3. How can I get my brilliant 3GS +*back to the way it was*+!?!?
    I’m very, very disappointed. And to be honest, the simple fact I’m taking the time out of my busy day to write this post means I’m very angry as well.
    I know the problem with my 3GS *is not a hardware issue*. It's a software issue, and I'd like to know how I can get my old, fast, reliable, brilliant 3GS back.
    Regards,
    -J

    The picture you show is normal. If you lightly double tap home button it activates reach ability mode for one handed operation. Nothing is wrong there. Another light double tap returns it to full screen. Do not press, just light touch the home button. AAs far as the other issues check the in call volume or ringer volume as it happens, just a possibility. as far as the banner not displayed on lock screen, as far as I know you need to have notifications set to alerts not banners in order for them to show up on the lock screen.

  • I am unable to import pictures from my iphone to my computer.  Can anyone help?

    I am unable to import pics. 

    It sounds like you are using an application to import. You can do it manually.
    Start > Computer (on the right) > scroll to the bottom and you will see your iPhone under Portable Devices > Open it and you will see a Drive, open that and there will be a DCIM folder. That is where your photos will be (There may be other folders each holding photos).

  • Itunes wont open after i updated my iphone 4s to ios 6, can anyone help?

    Recently i updated my iphone 4s to the ios6 system. i purchased more music and went about normal operations on my phone. when i connected my phone to my computer to update my purchased music and photos, itunes will not load. i have searched through the online community here and cannot find a relative answer (not from lack of trying - none of the similar answers work either). please someone help!!

    Yes, i'v already signed in apple & the iCloud is on as usual, but it is still not working.
    I have no problem to download the new app or redownload the apps I'v purchased before at 'search tab', but I can't get a list of my previous purchased but not installed on my iPhone Apps at the 'Updates/Purchases tab' in App Store.   I never had this problem until I updated my iPhone 4S software from iOS 5 to iOS 6.

  • My iCloud calendar won't sync with my iPhone 5 (iOS 6). Can anyone help?!

    I have the iPhone 5 and it's running iOS6. I have a calendar that I share with my wife for our family calendar. I was working just fine about a week ago and for some reason it's not working now. The calendar is from my iCloud and my wife sees it on her phone. Everything shows up fine on my iCloud but it's not showing up on my phone at all. I've exhausted all resources I could think of. I have iCloud set up on my phone. I've deleted my iCloud account on my phone and signed in again. I've refreshed my calendar, changed the time for sync (All events, Events 6 months back, etc), I've restored my phone from a back-up. It's up to date and shows changes on my wife's 4s (with iOS6), her iCloud account, and my iCloud account online. It just doesn't show up at all on my phone. In fact, the only calendar I have on my phone is my exchange calendar (for work) and my facebook calendar. I don't know what I did, but I really hope someone can help me out. This is driving me crazy. Thanks in advance!

    I feel your pain!  I too am having an issue with the icloud sync for calendars on my iphone 5.   I have an ipad, iphone5 and macbook pro retina.  My macbook and ipad are in perfect sync with the icloud.  My iphone WAS in sync but somehow is now not in sync.  Changing a TIME on an existing event in the calendar on my mac changes it in the cloud and on my ipad but NOT on my iphone5.  I have checked all settings to be sure nothing magically changed but everything is set up properly as far as I can tell.  If I delete the event and add it back - IT WORKS.  The iphone5 just doesn't seem to accept a TIME CHANGE for an existing event.  Any suggestions?

  • IOS 6.1 has totally messed up my iPhone 4 (note NOT 4S) can anyone help?

    I have read posts re the iOS 6.1 mess up... but how do I fix this? It says 6.1.1 is there to correct this problem but it is not on iTunes to download. I cannot updte apps, download apps and have had to remove apps because they keep crashing! Very angry!

    I cannot update apps, download apps and have had to remove apps because they keep crashing!
    I have turned off, removed apps, tried to reinstall them. iTunes can't download them either, the updates for them won't work.
    Never had problems with iPhones until now and this has really annoyed me... Apps have cost me money have had to go because they won't function
    the error messages say that data cannot be downloaded at this time and it is ot because I do not have free space because I have removed items to make sure there is room!

Maybe you are looking for