One small error but it is the same error all the way down through the if's

This program is so close to finally running after I have spent well over 8 hours trying to figure out the code now I am getting an aggravating error saying " ; " expected all the way down throughout my if statements. Can anyone please tell me what to do to get this program to run? I am so close.
Here is my code:
import javax.swing.JOptionPane;
public class CustomerStatus {
public static void main(String[] args) {
int option = JOptionPane.YES_OPTION;
int hiatustime;
int purchasenumber=1;
int loyaltime=0;
String status="";
System.out.println("Purchase Number\t Time before next purchase(months)\tTotal Customer Loyalty(months)\tStatus History");
System.out.println(1 +"\t\t " + 0 + "\t\t\t\t\t" + 0 + "\t\t\t\t" + "STANDARD");
while(option==JOptionPane.YES_OPTION){
hiatustime=Integer.parseInt(JOptionPane.showInputDialog(null, "Enter in the time between purchases(in months): "));
purchasenumber++;
loyaltime+=hiatustime;
If((loyaltime >= 10) && (hiatustime <=6))
status="PLATINUM";
If((loyaltime >= 10) && (hiatustime > 6) && (hiatustime <= 12))
status="GOLD";
If((loyaltime >= 10) && (hiatustime > 12) && (hiatustime <= 18))
status="SILVER";
If((loyaltime >= 10) && (hiatustime > 18) && (hiatustime <= 24))
status="BRONZE";
If((loyaltime >= 10) && (hiatustime > 24))
status="STANDARD";
If((loyaltime < 10) && (loyaltime >= 5) && (hiatustime <= 6))
status="GOLD";
If((loyaltime < 10) && (loyaltime >= 5) && (hiatustime <= 12) && (hiatustime > 6))
status"SILVER";
If((loyaltime < 10) && (loyaltime >= 5) && (hiatustime <= 18) && (hiatustime > 12))
status="BRONZE";
If((loyaltime < 10) && (loyaltime >= 5) && (hiatustime > 18))
status="STANDARD";
If((loyaltime < 5) && (loyaltime >= 1) && (hiatustime <= 6))
status="SILVER";
If((loyaltime < 5) && (loyaltime >= 1) && (hiatustime <= 12) && (hiatustime > 6))
status="BRONZE";
If((loyaltime < 5) && (loyaltime >= 1) && (hiatustime > 12))
status="STANDARD";
If((loyaltime < 1) && (hiatustime >= 0))
status="STANDARD";
System.out.println(purchasenumber +"\t\t" + hiatustime + "\t\t\t\t\t" + loyaltime + "\t\t\t\t" + status);
option = JOptionPane.showConfirmDialog(null, "Would you like to enter any more time between purchases(in months)? ");
}

hey duke, you're back :)
can you please enclose the whole code in a block. it's hard on the eyes                                                                                                                                                                                                               

Similar Messages

  • On my iPhone 4 the sound is all scratchy when listening through earbuds or dock.  Its any sound, music, utube videos.  If I play it through the iPhone speaker or from bluetooth it sounds fine.  It just started about 3 weeks ago.  Any suggestions?

    In the last three weeks my iPhone 4 (OS 5.1.1) the sound became all scratchy when listening through the ear buds of if I dock it.  The sound is fine listening to it from the iPhone speakers or in my car through bluetooth.  Please remember its all sound.  Whether its music, utube or a phone call.  Any suggestions?

    Mini Man, I'm glad to read you found a solution to your issue, but I don't know if your solution is going to be mine as well.
    For starters, I do not have the new Apple TV - at least, not yet. I have ordered one, but it will not be delivered until some time next week (sneering glance at Steve & Co. for abandoning that platform rather than making it AirPlay compatible).
    But that is not really my issue: my issue is that my two Airport Express units do NOT show up in the iPhone, though the DO show up on my iPad. This tells me they have been properly configured (both units have names, and are connected to the house network), so there must still be something missing from the equation.
    And, judging from the response of a few others who have chimed in here, I think it's save to say that the experience is not altogether uncommon.
    I'm surprised nobody has come back with a more direct solution to the common issue. I may have to call AppleCare someday this week...
    --PS

  • HT1725 In a download of an entire album, one song download was interrupted.  I have followed the instructions for resuming the download, but each time I attempt to resume the download the same error message appears saying the download was interrupted. Ans

    While downloading an album in from the Store, one song was interrupted.  I have followed the instructions from apple about resuming the download, but every time I do so the same error message appears saying the download was interrupted.  I am having no connection problems, have rebooted my computer, downloaded the lates version of iTunes, etc., yet nothing changes.  Has anyone else experienced this, and are there any workarounds.  Sadly the problem hit on one of the best songs of the album.

    I had the same problem so (assuming under the Purchased items in the Store you have a song stuck at 'Downloading'):
    I went to Music, then Artists.
    From there I chose the album.
    The song that failed to download had the cloud symbol next to it.
    I clicked the cloud symbol and the song completed the download for me.
    (Please note this was in iTunes for Windows - I expect it to be similar in iTunes for Apple)
    Message was edited by: UbergeekRFC - parenthetical note added
    Message was edited by: UbergeekRFC - added note about song stuck as downloading

  • I have iphone 4 os 7.04, tried updating to 7.1, but continously shows error that I dont have working internet connection, though I have one and tried via wifi and 3g same error comes. The update has been downloaded, agree pressed but no further??

    I have iphone 4 os 7.04, tried updating to 7.1, but continously shows error that I dont have working internet connection, though I have one and tried via wifi and 3g same error comes. The update has been downloaded, the page shping license agreement comes. As soon as I press agree, it asks me to wait for verification and then this error that there is no working internet connection comes, even though I have one and it works fine

    Try these steps as needed:
    Reset phone: press both the home and power buttons, releasing when the Apple logo appears
    Settings > General > Reset > Reset Network Settings.  You will have to re-enter WiFi passwords
    Connect phone to iTunes on your computer and update using iTunes
    iOS: How to update your iPhone, iPad, or iPod touch

  • When emailing from iPhoto, the recipients address comes up incorrect, even though it is correct in both my email accounts.  How do I edit it?  I have changed it, but the next time it appears it contains the same errors.

    When emailing from iphoto with a template, the recipients' address comes up incorrect (a couple of letters are wrong).  The addresses are correct in both my email accounts, including the one I am using for the iphoto email.  I have corrected the address prior to sending the email, but they come up with the same errors the next time I choose them in the iphoto 11 program.  How do I correct thes email addresses?  thank you

    In Mail Preferences/Accounts/each GMail account, set up the SMTP Outgoing Server for each account separately, going into SMTP name/edit/Advanced and specify the Username of each account.  The Outgoing servers must be two different servers, authenticated by the Username and Password of each.
    Otherwise, the GMail SMTP server will change the from address to that of the account where the SMTP server was setup.
    Ernie

  • When i try to update an app it says unable to download at this time. No matter how many time i do it. But then i tried to delete an app then redownload it to see if it will let me but i cant download it either it has the same error! HELP!!!

    When i try to update an app it says unable to download at this time. No matter how many time i do it. But then i tried to delete an app then redownload it to see if it will let me but i cant download it either it has the same error! HELP!!!

    Rebooting will not make you lose any content. Rebooting is when you hold the home button and the sleep button down at the same time until the Apple logo appears on the screen.
    You can these suggestions. One might work for you.
    Make sure that you do not have a stalled download in iTunes - a song or podcast .... if you have a download in there that did not finish, complete that one first. Only one thing can download at a time on the iPad so that could be what is causing the problem.
    If that doesn't work - sign out of your account, restart the iPad and then sign in again.
    Settings>Store>Apple ID. Tap your ID and sign out. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Go back to Settings>Store>Sign in and then try to update again. Tap one waiting icon only if necessary to start the download stream.

  • HT202159 I was downloading a app from the app store and it downloaded about 85% then gave an error message download failed but when I reopen the app store to the purchases the resume button show but when i click it the same error comes up failed to downlo

    I was downloading a app from the app store and it downloaded about 85% then gave an error message download failed but when I reopen the app store to the purchases the resume button show but when i click it the same error comes up failed to download

    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Select
    /var/log ▹ install.log
    from the hierarchical list on the left. If you don't see that list, select
    View ▹ Show Log List
    from the menu bar. Then select the messages from the last installation or update attempt, starting from the time when you initiated it. If you're not sure when that was, start over and note the time. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V).
    If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Edit it out by search-and-replace in a text editor before posting.

  • TS1398 I have an iphone 3gs and since I made the 6.01 update everytime I want to join a wireless network I get the same error "incorrect password" when I now it's correct, any one have a solution for this? Tks

    I have an iPhone 3gs and since I made the 6.01 update everytime I want to join a wireless network I get the same error "incorrect password" when I now it's correct, any one have a solution for this? Tks

    I would say that you would want to look into the "Exchange Mode" for GMail.  That would allow your iPhone to sync calendars, contacts and email with GMail just fine.  Doing the same with your outlook should also then sync those same with your PC using Outlook.  I've done teh iPhone side of this, but I since I don't run Lookout for my email client, I'm not sure how that will work on the PC side.

  • I was updating i-tunes on my windows vista but it stopped working after that.Since then i have un-installed and re-installed it a dozen times but it shows the same error (Apple error:2

    Hi
    Recently I purchased Iphone 4-s and tried to connect it to my existing i-tunes but it didnt recognise the device. So I tried updating the I-tunes to see if it made a difference but it was no good.
    Hence i followed the trouble shooting and uninstalled and re-installed i-tunes but it wont get installed properly now. Since then I have un-installed and re-installed the complete set of i-tune softwares a dozen times but it still gives me the same error- Apple Error: 2 and Windows Error :2 and report of being unable to install the Apple Application Support software. I have spent 2 1/2 hours talking to the Apple Technical Support Team regarding this but it still hasnt been resolved.( In addition, i have ensured the firewalls are disabled and also opened new user account (admin priviledges) to try and download it)
    Now not only can i use my iphone but also my ipod is out of action in regards to music and downloads.
    I would really really really appreciate anyone helping me in this matter as i am in dire straits now.
    Thank you so much in advance
    Regards

    I also have this problem. I cannot open links from a discussion board I frequent nor can I open links from my email. Also after opening my email, I cannot go to any other sites except my home page. I can then go no where else.
    When I close Firefox and try to reopen it, it does nothing! I have to bring up the Task Manager and end the Firefox process before I can get back in.
    To the best of my knowledge, this problem started with the new update to Ver. 3.6.9. I am running Windows XP Media Center 2005

  • 2 different iphones have the same Apple ID, how can I change the apple ID on one of them but not delete the other iphone's data and media?

    2 different iphones have the same Apple ID, how can I change the apple ID on one of them but not delete the other iphone's data and media?

    You don't have to do anything with the first iPod that you don't use anymore. If you are planning on keeping it, put in a drawer in your house and forget about it.
    You don't need a second account to use with the new iPod. I use one Appl e ID and iTunes library for two iPods, and two iPad. I have different content on all four devices. You can select exactly what you want to sync to each device and it can be different content on all devices.

  • I tried to sync my Macbook Pro photos in iPhoto with my iPod Touch.  I have done this numerous times, but today I got an error message saying the required file cannot be found.  At the same time all of my photos on my iPod vanished.  Can anyone help me?

    I tried to sync my Macbook Pro photos in iPhoto with my iPod Touch.  I have done this numerous times, but today I got an error message saying the required file cannot be found.  At the same time all of my photos on my iPod vanished.  Can anyone help me?

    Try deleting the photo cache from your computer and then re-try the photo sync - the location of the cache, and how to delete it, is on this page http://support.apple.com/kb/TS1314

  • Ever since updating to new OS, my iphone won't sync to itunes. When I plug in the phone to the PC, it says I need to update itunes to 10.6.3 or later. I did, but still get the same error message.

    Ever since updating to new OS, my iphone won't sync to itunes. When I plug in the phone to the PC, dialog box says I need to update itunes to 10.6.3 or later. I did that update, but still get the same error message.
    Can anyone offer suggestions?
    Thanks!

    Since it told me to update, I updated to 10.7.
    Then when I plugged in the phone again, it gave the same message that I need to update itunes.

  • I keep getting download error and it does not want to download.  I tried deleting anything that might have creative suite links and reloading but I keep getting the same error message.

    I keep getting download error and it does not want to download.  I tried deleting anything that might have creative suite links and reloading but I keep getting the same error message.

    Well... what IS the error message?
    Please read https://forums.adobe.com/thread/1499014
    -try some steps such as changing browsers and turning off your firewall
    -also flush your browser cache so you are starting with a fresh browser
    http://myleniumerrors.com/installation-and-licensing-problems/creative-cloud-error-codes-w ip/
    http://helpx.adobe.com/creative-cloud/kb/failed-install-creative-cloud-desktop.html
    or
    A chat session where an agent may remotely look inside your computer may help
    Creative Cloud chat support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html

  • TS1717 I can't open Itunes, I have an error that says says MSVCR80.dll is not found. I have tried twice to uninstall and reinstall but keep getting the same error message. Can anyone help?

    I can't open ITunes, I have an error message that says MSVCR80.dll is not found. Is anyone able to help solve this issue for me. I have tried to unistall and reinstall ITunes twice but continue to get the same error message.

    A msi file is short for microsoft installer.  It normally is for installation, removal, and maintenance for a program. So iTunes.msi would be used for the updating of the program.  For some reason it isnt finding this so we can't update, install, or remove it.
    From what I have seen windows installer cleanup utility solved related problems before. 
    I found this forum about removing and installing a new iTunes.  It was about someone who was trying to isntall iTunes, and was looking for msi file and asked for help.   Using this should allow you to be able to install iTunes.  It won't give you the msi file but will allow you to isntall iTunes over again.
    This was what was said.
    Another option in case you can't get an msi. (Or even if you can ... the msi's mentioned in the messages may be damaged rather than missing.)
    Unfortunately, this sort of trouble has gotten more complicated to deal with ever since Microsoft pulled the Windows Installer CleanUp utility from their Download Center on June 25. First we have to find a copy of the utility.
    Let's try Googling. (Best not to use Bing, I think.) Look for a working download site for at least version 3.0 of the Windows Installer CleanUp utility. (The results from mydigitallife and Major Geeks are worth checking.)
    After downloading the utility installer file (msicuu2.exe), scan the file for malware, just in case. (I use the free version of Malwarebytes AntiMalware to do single-file scans for that.)
    If the file is clean, to install the utility, doubleclick the msicuu2.exe file you've downloaded.
    Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove".
    Restart the PC, and try another iTunes install. Does it go through properly this time?

  • When I try to start my macbook it gives an error of Please restart your computer, but when i do this i get the same error.

    When I try to start my macbook it gives an error of Please restart your computer, but when i do this i get the same error. This occured after my macbook pro shut down (because of low battery) while it was installing some updates. Please Help?

    Try reinstalling OS X. What version did you have installed? If it's Snow Leopard do this:
    Reinstall OS X without erasing the drive
    Do the following:
    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 the Combo Updater for the version you prefer from support.apple.com/downloads/.

Maybe you are looking for