Does anyone know the value of "y" here

//What is the value of y after the following switch statement is executed?
x = 2;
switch (x + 2)
case 2: y = 2;
case 4: y = 4;
case 6: y = 6;
default: y = y * 2;
}

that sounds about right, given our relative
post-counts, which as we all know, is the
standard yardstick for competence....I'm posting as fast as I can, but I don't feel any
smarter! What am I doing wrong?concurrency issues. you need more than one browser open

Similar Messages

  • Does anyone know the best software to make a scalene triangle using 3 predefined values?

    Does anyone know the best software to make a scalene triangle using 3 predefined values?

    kitweb,
    It is not too difficult in Illustrator.
    Presuming the values are the side lengths, you may turn on the Smart Guides and:
    1) Create a circle with its centre at X=Y=0 and with its radius equalling the first side length;
    2) Create another circle with its centre at X equalling the second side length and Y = 0, and with its radius equalling the third side length;
    3) With the Pen Tool click at the centres of the circles (Smart Guides say centre), then at one of the intersections of the circles (Smart Guides say intersect), then back at the first centre;
    4) Delete the circles, and if needed Object>Transform>Rotate/Reflect/Move/whatever for the right orientation/position.
    Obviously, you may use any order of the predefined sidelengths from the beginning.

  • Does anyone know the power cord part for HP A532 printer? I need a replacement cord. THANKS!

    Does anyone know the power cord part for HP A532 printer? I need a replacement cord. THANKS!

    Here's the steps to follow if your printer isn't turning on.   
    If you've gone through all those steps and you still don't have power, there are a lot of places that sell a replacement cord and supply for that printer. 
    I am an HP employee.

  • Does anyone know the part number for the printhead for the HP Officejet 6500a

    My printer doesn't print, initally it didn't print black, then I soaked the printhead in hot water as instructed now it doesn't print at all, so I need to replace it.  Does anyone know the part number for the printhead for the HP Officejet 6500aThank You,

    Hi Temprosal,I looked up the product specifications for the HP Officjet 6500a.Here are steps for ordering a new printhead: These steps apply to the United States only.If HP replaces your printhead assembly under warranty, you receive a new printhead assembly, cleaning materials, and a full set of new ink cartridges.If your printhead assembly is no longer under warranty, you can purchase a new one online.Go to the HP Parts Store website (in English).  https://h20141.www2.hp.com/Hpparts/CountryChoice.aspxUnder Find your part(s), type CN643A in the Search by part number text box.Follow the on-screen instructions to order the printhead assembly.Jean

  • Does anyone know the cost to repair a accelermeter on. iPod touch 3th gen

    Does anyone know the cost to repair a accelermeter on. iPod touch 3th gen

    Apple will only exchange your iPod for a refurbished one for the price listed here:
    Apple - Support - iPod - Repair pricing
    Hee is one third-party place.  I do not see a listing for accelormeter replacement.  I would suspect that they would replace the logic board which is expensive but not listed.

  • I have a cracked screen, does anyone know the cost and time it take apple to repair?

    I have a cracked screen, does anyone know the cost and time it take apple to repair?

    I'd like to know too for my MacBook Pro Retina (Late 2013). Having spoken to some Apple Stores here in Sydney, I need to bring in the computer for them to tell me. I'll know more tomorrow.

  • HELP!!!! I have spent hours trying to find out how to embed an image with a link or a Microsoft Word document with a hyperlink built within the document -- not as an attachment! Does ANYONE know the secret? Can it be done, or not! My PC clients do it.

    HELP!!!! I have spent hours trying to find out how to embed an image with a link, or embed a Microsoft Word document with a hyperlink built within the document -- not as an attachment into my email -- but where it shows as the email content when opened! Does ANYONE know the secret? Can it be done, or not? My PC clients do it all the time easily. Then I want to be able to send the embedded image/document (not as an attachment, but visable within the email when opened) to many email contacts at once, BUT the individuals receiveing them DO NOT SEE the other email contacts. Cannot seem to be able to find anything on being able to do these 2 tasks.PLEASE, SOMEONE, HELP!!!

    Don't know if this applies to Lion, but read here:
    http://www.makeuseof.com/tag/create-html-announcement-mail-iweb-mac/

  • Does anyone know the official date of the iOS 7

    does anyone know the official date of the iOS 7

    KiltedTim wrote:
    Every time someone asks this question here, they move the release back by one hour... Right now, it's sometime in 2017.

  • Does anyone know the name of the application?

    Does anyone know the application that identifies your contacts who are att users(so you know who is a free call)? Thanks

    To set the path variables .
    1.right click on "My Computer".
    2.click on "Advanced" tab.
    3.click on "Environment Variables"
    4.Under the System Variables try to find a variable PATH.If it exists then select it and press "Edit". In the Variable value at the end attach ; followed by the path to the jdk library.
    For example
    Before Changing Name: PATH
    Value: c:\watcom
    "c:\watson is an example value.There might be anything."
    After Changing Name: PATH
    Value: c:\watson;c:program files\jdk1.3\...\library
    5.If u cannot find the PATH variable click on"NEW" button .In the name enter PATH and the value is the value is the path to your jdk library folder.

  • I had a code to get logics pro for free and after it installed its asking me for a serial number does anyone know what to do from here.

    I had a code to get logics pro for free and after it installed its asking me for a serial number but it never gave me one to put in, it just started downloading and then asked me. Does anyone know what to do from here.

    I really don't think that is anywhere near on track.
    Most likely the trial version was installed earlier, is that correct?

  • Outgoing Email Setup for Knology - Does anyone know the server setting?

    A friend cannot find the Knology server settings for outgoing mail...Knology company was no help.
    Does anyone know the proper settings?
    Thanks

    DBunch07,
    I was able to find this site in their support pages:
    http://support.knology.net/content/email.setup.cfm
    If the suggested setting from there smtp.knology.net, does not work, they may require different settings for when you aren't connected directly to them. For example when using EDGE or a WiFi Hotspot.
    I have found that asking email provider's tech support for what mail server settings to use while you are travelling and using a laptop will often get the correct settings to use for the iPhone. However, if they say they only offer webmail for when you are travelling, you will not be able to use their outgoing server on EDGE or at WiFi Hotspots, because they have chosen to block outgoing access when you are not on their network.
    While connected to EDGE, you can use cwmx.com to send email out. It only works while on EDGE, and does not require a username or password, since it goes off of the authentication for using EDGE with AT&T.
    AT&T's knowledge base article about cwmx.com is here:
    http://www.wireless.att.com/support/knowledgeBase.do?content=KB72769.html
    You will have to turn off WiFi when you want to send email though.
    This article discusses the issues in more depth:
    http://docs.info.apple.com/article.html?artnum=305634
    Hope this helps,
    Nathan C.

  • HT3500 My iMac (running Lion 10.7.3) is connected wirelessly to a Laserjet 2550.  This has operated fine for a long time, but now th printer cannot be found when TimeMachine back ups are taking place.  Does anyone know the cause & remedy please?

    My iMac (running Lion 10.7.3) is connected wirelessly to a Laserjet 2550.  This has operated fine for a long time, but now the printer cannot be found when Time Machine back ups are taking place - Bonjour does not show any devices being available when Time Machine is running.  Does anyone know the cause & remedy please?

    Your points match mine pretty well,though here are some thoughts:
    1. I thought about this theory myself this morning (iTunes possibly causing more issues), but I haven't been able to verify it.
    2. When I set up a new user it seemed better for a while, but the issue croppped back up. Yesterday I fully wiped the machine and reinstalled from scratch. I did not reimport my user from TimeMachine, but the problem has come back. My thinking was that I might have some really old software or prefs hanging around causing the issue. No dice.
    3. This is my current theory of the issue, so my next step will be to pull the RAM from Crucial and see how the system behves. IF that doesn't eliminate the problem, I'll pull the factory installed RAM and replace it with the 3rd party RAM. The odd thing is how many people seem to have similar issues - I know two personally, and have seen several posts on forums. I think the most common point for this happening was the 10.7.2 update, which would point to software as the culprit.
    4. That matches my experience.
    My hope is that this will be repaired in the forthcoming 10.7.3 release (current production version is 10.7.2), but otuside of what I noted above, I'm at a loss.

  • Does anyone know the default installation folder (path) for Adobe reader 11?

    Does anyone know the default installation folder (path) for Adobe reader 11?

    This forum is only for discussions on the forums themselves. The Reader one is here:
    http://forums.adobe.com/community/adobe_reader_forums

  • Does anyone know the default size for 24 in. imac display?

    I inadverently changed the display size on my 24 inch imac. The font in the toolbar at the top of the desktop is larger than I want. Also, when I open windows in different applications, they open larger than the display and have to be downsized in order to see the entire window.
    Does anyone know the default size for this display? Or is there a different way to fix my issues?
    thanks in advance.

    Hi Napamike2: The default setting for the 24" is 1920X1200. If that doesn't get you back to the proper display, maybe you have accidentally activated "Zoom". To check go to System Preferences, Universal Access. Check that Zoom is turned off.
    Stedman

  • I am moving from Southern California to Maui, Hawaii and I need to figure out the best way to get my 24 inch iMac across the ocean. Does anyone know the best way to do this?

    I am moving from Southern California to Maui, Hawaii and I need to figure out the best way to get my 24 inch iMac across the ocean. Does anyone know the best way to do this? I have found GearGrip's LCD harness so that I can do carry-on onto the plane...  Or maybe use a Pelican Case to do it as a "checked bag"? Or any other suggestions??! Please help!
    Thanks so much!!

    I don't recommend you send the iMac in a checked bag. Might get damaged.
    Check the airlines website for carry on guidelines.
    Or, if you have the original box that the iMac came in, if you have someone who can pick up the iMac for you, send it ahead Fed Ex and insure the package.
    Just make sure the display is covered to protect it. A blanket perhaps.
    Aloha ...

Maybe you are looking for