Still need some help.. Please!

I´ve tried to do the tree component transparent so that
I can see the background thru it but it doesn´t seem to work.
Do any one know how to do??

cSource3D=thisComp.layer("Light"); //reference a 3D light as source
cSource2D=cSource3D.toComp([0,0,0]); //convert to screen coordinates
cMiddleX=thisComp.width*0.5; //midpoint X
cMiddleY=thisComp.height*0.5; //midpoint Y
cDiffX=cSource2D[0]-cMiddleX; //position difference X
cDiffY=cSource2D[1]-cMiddleY; //position difference Y
cAngle=Math.atan2(cDiffY,cDiffX); //find angle
cOffset=200; //distance from middle
X=cMiddleX+Math.sin(cAngle)*cOffset;
Y=cMiddleY+Math.cos(cAngle)*cOffset;
[X,Y]
Yes, simply copy&paste the above code ( I corrected the typos) to your secondary element and adjust the cOffset variable to suit (you could tie it to a slider, if needed; negative values move in opposite direction). Make sure to adjust the reference to the light in your comp (or your 3D Null). If you use an expression Point control or the Lensflare effect on a solid, you don't need the first line and the second line would then look something like that:
cSource2D=thisComp.layer("Lensflare").effect("Lens Flare")("Flare Center")
Mylenium

Similar Messages

  • Inverse Position Expression...still need some help please!!

    Following up a post from a few days ago....
    Im creating a hand made anamorphic lens flare and I want to control the position of the elements in it with a null
    Mylenium kindly pointed me to his site which has great projects to download but its beyond my math capabilities and I havent been able to get my head around it and apply it to my project.
    I have this expression which has got me started
    pRef=thisComp.layer("null 1").position;
    X=thisComp.width-pRef[0];
    Y=thisComp.height-pRef[1];
    [X,Y]
    But if I want to add additional lens flare elements that move at a different relative position, this expression wont do it. Its only good for one element.
    I only want a few elements in the flare
    Can anyone suggest a simple way to do this? Im only looking at having 2 or 3 flare elements in it...nothing heavy.

    cSource3D=thisComp.layer("Light"); //reference a 3D light as source
    cSource2D=cSource3D.toComp([0,0,0]); //convert to screen coordinates
    cMiddleX=thisComp.width*0.5; //midpoint X
    cMiddleY=thisComp.height*0.5; //midpoint Y
    cDiffX=cSource2D[0]-cMiddleX; //position difference X
    cDiffY=cSource2D[1]-cMiddleY; //position difference Y
    cAngle=Math.atan2(cDiffY,cDiffX); //find angle
    cOffset=200; //distance from middle
    X=cMiddleX+Math.sin(cAngle)*cOffset;
    Y=cMiddleY+Math.cos(cAngle)*cOffset;
    [X,Y]
    Yes, simply copy&paste the above code ( I corrected the typos) to your secondary element and adjust the cOffset variable to suit (you could tie it to a slider, if needed; negative values move in opposite direction). Make sure to adjust the reference to the light in your comp (or your 3D Null). If you use an expression Point control or the Lensflare effect on a solid, you don't need the first line and the second line would then look something like that:
    cSource2D=thisComp.layer("Lensflare").effect("Lens Flare")("Flare Center")
    Mylenium

  • Hi! I got movies on my external hard drive that are AVI kind and won't play on my macbook pro? need some help please!!

    Hi! I got Movies on my external hard drive that are AVI kind and won't play on my macbook pro? When I start playing the movie a message pops up and says "a required codec is not available". I tried flip4mac, xvid, divx already and still not playing my video. need some help please!! thanks.

    Although vlc mentioned above is a much more powerful and better player you could try installing Perian if you insist on using the quicktime player.  It may supply the codec it needs.
    Not sure why you wouldn't be able to play straight avi files though in quicktime.

  • Remote App on iPad connects but drops after about  20 mins. Need to turn  off wait about 1 minute then turn on wifi on iMac before it can reconnect. Need some help please.

    Remote App on iPad connects but drops after about  20 mins. Need to turn  off wait about 1 minute, then turn on wifi on iMac before it can reconnect. Need some help please.
    Already gone through troubleshooting guide a zillion times. Thanks.

    This worked for me... A little time consuming but once you get rolling it goes GREAT... Thanks....
    I got my artwork and saved it to my Desktop
    Opened up Microsoft Paint and clicked on "File" and "Open" and found it to get it on the screen to resize it
    Clicked "resize" and a box for changing it opened up
    Checked the box "Pixels" and "Unchecked maintain aspect ratio"
    Set Horizontal for 640 and Vertical for 480
    Clicked on "OK" and went back to "File" and did a "Save As" and chose JPEG Picture
    It came up "File Already Existed" and clicked "OK" (really did not care about the original artwork I found because wrong size)
    Went to iTunes and on the movie right clicked on "Get Info", clicked on "Details", then "Artwork"
    Go to the little box on the top left that shows your old artwork and click on it to get the little blue border to appear around it and hit "Delete" to make it gone
    Click on "Add Artwork" and find it where you put the one from above on your Desktop and hit "Open" and OK and your new artwork is now there and all good.
    Sounds like a lot of steps to follow but after around 5 or so you will fly through it. This worked perfect on my iPhone 6 Plus and I have artwork on my Home Videos now.

  • Ok I got my iPod from my brothers friend and my IPod says "iPod is disabled connect to iTunes" then my computer says cannot get onto iPod because I need the iPod passcode and of course I cannot put it in so I need some help please

    Ok i got my iPod from my brothers friend and my IPod says "iPod is disabled connect to iTunes" then my computer says cannot get onto iPod because I need the iPod passcode and of course I cannot put it in so I need some help please

    Try placing in DFU mode and then restoreing.
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings

  • I am the biggest "Newb" on this site,  and I really need some help please..

    Ok, the short of it.... I started training on Database programming about 2 weeks ago. I still don't really know a thing, or even understand the concepts. Now, my boss wants me to fix a bug in Oracle, and I haven't a clue. The ONLY help I've gotten was a link to this forum, and a speech about how I need to help myself. I told him I have the same chance of fixing anything, as monkeys typing hamlet. Anyone up for a challenge?
    When I go to Application System, then Application Entry and enter the password a dialog box appears.... "FRM-40039: Cannot attatch library Empower while opening from APPUSRAPP."
    That's what I have to fix. I have no clue. I don't even really know how to click around in this program. Please help, someone.
    UPDATE: I've been told that everyone's pretty much going to be a jerk to me for asking this, and I'm currently searching old threads and can't find a way to delete this one I posted. So, you could just ignore the post, or jump in and be the internet tough-guy and tell me what I already know.... I'm a newb.
    Edited by: user11033020 on Apr 14, 2009 11:41 AM

    As this appears to be a Forms error (the error begins with FRM) you might get a better response by posting this in the Forms forum:
    Forms
    The Community Feedback forum isn't meant for product-related questions (as it says in the title).
    Still, you should consider searching Metalink as well. If you've paid for support, you have every right to use it.

  • 2100 WLC 1130 APs - need some help please

    It's been about 5 years since I took my CCNA course and could use some help on a wireless set up for church.
    We have a Catalyst 3550 that is running fine, just a few VLANs, including 30 for public wireless.  I've then got a 2100 WLC and (3) 1130 AP's.  After much head banging, I've got the WLC set up correctly (i believe)
    VLAN 30 is a 10.0.3.x segment
    switch is 10.0.3.1
    WLC mgmt interface is 10.0.3.20 - connected to the switch on port 1
    WLC ap mgmt interface is 10.0.3.21
    APs pull 10.0.3.30, 31,32. - they are plugged directly into the switch
    I can obviously see the APs while in the WLC GUI. 
    The AP's SSID don't show up wirelessly.  The AP's circle is red/orange
    The detail on the AP in the WLC shows them operationally down.
    What additional information can I provide?
    Much thanks.

    flashfs[0]: 28 files, 8 directories
    flashfs[0]: 0 orphaned files, 0 orphaned directories
    flashfs[0]: Total bytes: 15998976
    flashfs[0]: Bytes used: 6973952
    flashfs[0]: Bytes available: 9025024
    flashfs[0]: flashfs fsck took 28 seconds.
    Base ethernet MAC Address: 00:0a:b8:12:30:3c
    Initializing ethernet port 0...
    Reset ethernet port 0...
    Reset done!
    ethernet link up, 100 mbps, full-duplex
    Ethernet port 0 initialized: link is up
    Loading "flash:/c1130-k9w8-mx.124-23c.JA4/c1130-k9w8-mx.124-23c.JA4"...#########
    File "flash:/c1130-k9w8-mx.124-23c.JA4/c1130-k9w8-mx.124-23c.JA4" uncompressed a
    nd installed, entry point: 0x3000
    executing...
                  Restricted Rights Legend
    Use, duplication, or disclosure by the Government is
    subject to restrictions as set forth in subparagraph
    (c) of the Commercial Computer Software - Restricted
    Rights clause at FAR sec. 52.227-19 and subparagraph
    (c) (1) (ii) of the Rights in Technical Data and Computer
    Software clause at DFARS sec. 252.227-7013.
               cisco Systems, Inc.
               170 West Tasman Drive
               San Jose, California 95134-1706
    Cisco IOS Software, C1130 Software (C1130-K9W8-M), Version 12.4(23c)JA4, RELEASE
    SOFTWARE (fc1)
    Technical Support: http://www.cisco.com/techsupport
    Copyright (c) 1986-2012 by Cisco Systems, Inc.
    Compiled Fri 27-Jan-12 19:52 by prod_rel_team
    Proceeding with system init
    Proceeding to unmask interrupts
    Initializing flashfs...
    flashfs[1]: 28 files, 8 directories
    flashfs[1]: 0 orphaned files, 0 orphaned directories
    flashfs[1]: Total bytes: 15740928
    flashfs[1]: Bytes used: 6973952
    flashfs[1]: Bytes available: 8766976
    flashfs[1]: flashfs fsck took 4 seconds.
    flashfs[1]: Initialization complete....done Initializing flashfs.
    Radio0  present A506 7100 E8000000 A0000000 80000000 3
    Radio1  present A506 6700 E8000100 A0040000 80010000 2
    This product contains cryptographic features and is subject to United
    States and local country laws governing import, export, transfer and
    use. Delivery of Cisco cryptographic products does not imply
    third-party authority to import, export, distribute or use encryption.
    Importers, exporters, distributors and users are responsible for
    compliance with U.S. and local country laws. By using this product you
    agree to comply with applicable laws and regulations. If you are unable
    to comply with U.S. and local laws, return this product immediately.
    A summary of U.S. laws governing Cisco cryptographic products may be found at:
    http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
    If you require further assistance please contact us by sending email to
    [email protected].
    cisco AIR-LAP1131AG-A-K9   (PowerPCElvis) processor (revision A0) with 27638K/51
    20K bytes of memory.
    Processor board ID FTX1027T1S2
    PowerPCElvis CPU at 262Mhz, revision number 0x0950
    Last reset from power-on
    LWAPP image version 7.0.230.0
    1 FastEthernet interface
    2 802.11 Radio(s)
    32K bytes of flash-simulated non-volatile configuration memory.
    Base ethernet MAC Address: 00:0A:B8:12:30:3C
    Part Number                          : 73-8962-09
    PCA Assembly Number                  : 800-24818-08
    PCA Revision Number                  : A0
    PCB Serial Number                    : FOC102618H2
    Top Assembly Part Number             : 800-25544-06
    Top Assembly Serial Number           : FTX1027T1S2
    Top Revision Number                  : A0
    Product/Model Number                 : AIR-LAP1131AG-A-K9
    % Please define a domain-name first.
    Press RETURN to get started!
    *Mar  1 00:00:05.580: %SOAP_FIPS-2-SELF_TEST_IOS_SUCCESS: IOS crypto FIPS self t
    est passed
    *Mar  1 00:00:07.185: %SOAP_FIPS-2-SELF_TEST_RAD_SUCCESS: RADIO crypto FIPS self
    test passed on interface Dot11Radio 0
    *Mar  1 00:00:08.783: %SOAP_FIPS-2-SELF_TEST_RAD_SUCCESS: RADIO crypto FIPS self
    test passed on interface Dot11Radio 1
    *Mar  1 00:00:08.860: %LWAPP-3-CLIENTEVENTLOG: Read and initialized AP event log
    (contains, 135 messages)
    *Mar  1 00:00:08.889:  status of voice_diag_test from WLC is false
    *Mar  1 00:00:10.995: %LINK-3-UPDOWN: Interface FastEthernet0, changed state to
    up
    *Mar  1 00:00:11.052: %SYS-5-RESTART: System restarted --
    Cisco IOS Software, C1130 Software (C1130-K9W8-M), Version 12.4(23c)JA4, RELEASE
    SOFTWARE (fc1)
    Technical Support: http://www.cisco.com/techsupport
    Copyright (c) 1986-2012 by Cisco Systems, Inc.
    Compiled Fri 27-Jan-12 19:52 by prod_rel_team
    *Mar  1 00:00:11.053: %SNMP-5-COLDSTART: SNMP agent on host CenterHall is underg
    oing a cold start
    *Mar  1 00:00:11.133: %CAPWAP-5-CHANGED: CAPWAP changed state to DISCOVERY
    *Mar  1 00:00:11.312: %SSH-5-ENABLED: SSH 2.0 has been enabled
    *Mar  1 00:00:11.312: %LINK-3-UPDOWN: Interface Dot11Radio0, changed state to up
    *Mar  1 00:00:11.312: %LINK-3-UPDOWN: Interface Dot11Radio1, changed state to up
    *Mar  1 00:00:11.552: %LINK-5-CHANGED: Interface Dot11Radio1, changed state to r
    eset
    *Mar  1 00:00:11.552: %LINK-5-CHANGED: Interface Dot11Radio0, changed state to r
    eset
    *Mar  1 00:00:11.999: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthern
    et0, changed state to up
    *Mar  1 00:00:12.316: %LINEPROTO-5-UPDOWN: Line protocol on Interface Dot11Radio
    0, changed state to down
    *Mar  1 00:00:12.316: %LINEPROTO-5-UPDOWN: Line protocol on Interface Dot11Radio
    1, changed state to down
    *Mar  1 00:00:19.436: %DHCP-6-ADDRESS_ASSIGN: Interface FastEthernet0 assigned D
    HCP address 10.0.3.30, mask 255.255.255.0, hostname CenterHall
    *Mar  1 00:00:29.995:  status of voice_diag_test from WLC is false
    *Mar  1 00:00:30.070: Logging LWAPP message to 255.255.255.255.
    *Mar  1 00:00:30.123: %CDP_PD-2-POWER_LOW: All radios disabled - HIGH_POWER_CLAS
    SIC_NOT_CONFIGURED WS-C3550-12T (000a.8a97.f785)
    *Mar  1 00:00:31.123: %SYS-6-LOGGINGHOST_STARTSTOP: Logging to host 255.255.255.
    255 started - CLI initiated
    Translating "CISCO-CAPWAP-CONTROLLER"...domain server (8.8.8.8)
    Translating "CISCO-LWAPP-CONTROLLER"...domain server (8.8.8.8)
    *Feb 11 15:46:42.000: %CAPWAP-5-DTLSREQSEND: DTLS connection request sent peer_i
    p: 10.0.3.21 peer_port: 5246
    *Feb 11 15:46:43.000: %CAPWAP-5-CHANGED: CAPWAP changed state to
    wmmAC status is FALSE
    *Feb 11 15:46:44.672: %CAPWAP-5-DTLSREQSUCC: DTLS connection created sucessfully
    peer_ip: 10.0.3.21 peer_port: 5246
    *Feb 11 15:46:44.674: %CAPWAP-5-SENDJOIN: sending Join Request to 10.0.3.21
    *Feb 11 15:46:44.674: %CAPWAP-5-CHANGED: CAPWAP changed state to JOIN
    *Feb 11 15:46:45.449: %CAPWAP-5-CHANGED: CAPWAP changed state to CFG
    *Feb 11 15:46:45.718: %CAPWAP-5-CHANGED: CAPWAP changed state to UP
    *Feb 11 15:46:45.767: %CAPWAP-5-JOINEDCONTROLLER: AP has joined controller grace
    wireless
    *Feb 11 15:46:45.815: %LWAPP-3-CLIENTEVENTLOG: SSID GUMC_Guest added to the slot
    [0]
    *Feb 11 15:46:45.818: %LWAPP-3-CLIENTEVENTLOG: SSID GUMC_Guest added to the slot
    [1]
    *Feb 11 15:46:45.834: %WIDS-5-ENABLED: IDS Signature is loaded and enabled
    User Access Verification
    Username: Cisco
    Password:
    CenterHall>

  • Really really need some help please.

    lost all my audio. nothing plays anymore. cant even hear the trash empty any more. no itunes, nothing. no dvd audio. also noticed itunes wont play songs anymore, progress bar just sits there. also movies on youtube dont play anymore. when i try to turn up audio i get a zero symbol with a slash thru it. im stumped. help please. thanks

    Whatever has happened, I've assumed it just happened and is systemic.
    To start: Go to Applications/Utilities and run Disk Utility, select your startup drive, and click on the Repair Permissions button at the bottom of the window.
    If that works, you're done, if not, pull out your Tiger startup DVD, insert it, select the Installer, and Restart your Mac from the DVD. When you get to the installer screen, go to the menus at the top of the screen and select Disk Utility, and this time click on the Repair Disk button. This will check your file system integrity and repair it.
    When you've done that, post back.
    If those don't work, you may need to do an Archive & Install, from this same DVD. This will preserve your accounts/apps/data, but will require you to repeatedly run Software Update to bring everything current again.
    Good Luck...

  • Thanx Noeqplease & Bee jay but I still need some help form U or anyone out

    Answer From Noeqplease
    'Hi Teebow,
    You need to set up a simple pair of transformers, in your audio Layer.
    One transformer will feed MIDI channel 1, and one, MIDI channel 2, in your arrange page, for recording.
    First, create a simple Environment Object, and call it whatever you like (key splitter is good). This is so you can send one midi stream ot both Transformers.
    Cable this to the following two Transformers:
    The first Transformer will FILTER all notes BELOW your set parameter, ie whatever note you decide. This is the TOP of the keyboard split. Hook this up to your first Audio Instrument channel. this would be the melody instrument.
    The second transformer will FILTER all notes ABOVE your set parameter, ie whatever note you decide. this is the BOTTOM of the keyboard split.Hook this up to your second Audio Instrument channel. This would be the Bass instrument.
    In the Arrange Page, create your two instruments, and then select the TRANSFORMERS as the Instruments to be active. In other words, you'll see in the Arrange page "Transformer #1, Transformer #2" instead of the actual instruments. This is so you can record through them, and then the VIs just playback the correct notes.'
    I am not transformer savey However if you or anyone reading this could please send me a pic as to what the settings within the transformer should look like for both channels I would be grateful
    The support I have had thus far on this topic has been more frustrating than help full. One experienced member admits that this is complicated not impossible.
    I know through screen shots that the settings can be shown as this was what I saw in the original post to somebody else which drew me to pose my problem about transformer.
    As before all I need is someone who knows Transformer and is confident in its workings. I have tried but I cannot make head nor tail it would be so much more easier if I could get help with this so then I would have a correct base for getting more confidence with tying other operations.
    Cubase has a logical editor which works the same way I am coming from Cubase 3.1 from the Atari days and still I couldn't get my head around that and this was 1990. no matter how many books I read and believe me I have read quiet a few along with related manuals.
    Are there any books or DVDs on the workings of Transformer or any templates.

    Hi Teebow,
    Here's what you can do:
    Go to your Environment Layer.
    Go to the "Click & Ports" Layer.
    Create 2 new transformer objects, from the menu inside the layer window (not the main menu, but the one inside the window)
    Connect both of these between the INPUT object, and the Sequencer object.
    Now... you need to take out a notepad, and write down some settings.
    On the first transformer, you will make it FILTER out ANY MIDI from channel 2. and pass all else.
    On the second transformer, you will ONLY ALLOW MIDI data coming in from channel 2, and NOT ALLOW anything else to pass.
    Instead of trying to get you a screenshot, please just open the environment and create an EMPTY new Layer, and call it "practise layer" or the like.
    There create some new transformer objects, and FAMILIARIZE yourself with them. then you will be "transformer savvy"
    They are actually very very useful object for dealing and routing MIDI of all sorts. And since you are now needing this, it would behoove you to learn to use this feature of Logic.
    And no, it is not that I do not want to post screenshots, I am actually quite busy, and it would take me longer to have you learn through the forum, than for you to just do it. you need to stop fearing the environment, that's all...
    Cheers

  • I have a Question, I need some help Please!!!! Anyone??

    Ok let me first thank you by taking thr the time to help me. I have a question that seems like it should be simple enough but i just can't figure it out. I'm relatively new to InDesign and I own a small print advertising company. I'm trying to design a flier for a client and I need to put his logo on the page but when I insert it I can't get the white background of the box to go away. I just want to logo, it's an odd shape and I used a photo editing program call GIMP to take it from another advertisment he had and cut it out. I thought it was cut out perfectly, but when I saved it and moved to InDesign I just could figure out how to get rid of the box. It should be simple and I think I am just missing a step or a feature, but I am still learning the program. Please help me. The online guide just confuses me.

    I've never used GIMP, but I suspect you haven't save this with a transparent background. What file format did you use? Does the background appear transparent or white in GIMP?
    All of that aside, 99% of the time logos are vector illustrations, not raster images, and what you have will have severly degraded quality when it goes to print. You should ask the client to supply the original logo artwork.
    Peter

  • My first java programming - Need some help please!!!

    I have to create a simple java program which i am not good at i am ok in C but my java is quite bad. The program need to define a class called Student and with a string called StudentNAme, a integer StudentID(key), An array of 8 integers called Marks that holds the students marks for 8 modules. It also says Include appropriate accessors, mutators and constructor(s) as well as a method to update the student�s marks. Anybody please help me in this question. I prefer an simple example of this program so I can learn faster, I dont even know how to declare a class.. So sorry but please help me out and thanks in advance

    I would also suggest you try using an IDE like
    eclipse (free)
    www.eclipse.org
    This will help you get a working program much faster.But please do also tell them that if they have troubles using it, they're supposed to read the IDE manual instead of posting here.

  • Hello! I need some help please.

    Hi there! My problem is the following. As i want to turn the internet sharing on combined with a security password a little window comes up and says : system preferences wants to make changes, put your password in order to do so. The thing is that i have absolutely no idea which password is that i have to put! So now my system preferences is locked! If i want to make changes i have to unlock it! Please, it would be great if someone helped!
    Sorry for my english btw.

    No, it's quite easy to do. If you're running Lion or Mountain Lion, that is. You don't mention which version of OS X you're running. If using Lion or Mountain Lion, simply reboot and hold down the Command and R keys at startup. This will take you to your Recovery Partition.
    From the Utilities menu, select Terminal and type
    resetpassword
    A small app will open allowing you to reset the password for any user that you choose. Type in the password twice and remember to give yourself a 'hint'.
    You need an admin password to do just about anything. Maybe write it down somewhere so you won't forget it.
    Clinton

  • Really needs some help please

    Hello everyone,
    I have a line (a little white line) down the screen on my satellite laptop. It appear a little while after installing 2gs of memory. Could someone explain to me what could have cause it and if it is covered by my extended warrenty. I also  wants to know if it is covered by the warrenty if Toshiba allows me to take it to a local repair shop that is not their as i am in the caribbean and none of their repair centres are close to my island.
    Thank you in advance.

    What is the complete model number of the laptop and the complete part number of the new ram?
    As for the warranty issues, you'll need to contact Toshiba Warranty Support about that.  This is User's helping other Users and none of us would have that information.
    If you don't post your COMPLETE model number it's very difficult to assist you. Please try to post in complete sentences with punctuation, capitals, and correct spelling. Toshiba does NOT provide any direct support in these forums. All support is User to User in their spare time.

  • I have a working problem, but still need some help

    import javax.swing.JOptionPane;
    class testing
      public static void main(String args[])
        int firstNum = 0, secondNum = 0;
        int evensTotal = 0, oddsTotal = 0;
        while(firstNum >= secondNum)
          int num = Integer.parseInt(JOptionPane.showInputDialog("Enter a number"));
          if(firstNum == 0) firstNum = num;
          else secondNum = num;
        for(int i = firstNum; i <= secondNum; i++)
          if(i % 2 == 0) evensTotal += i;
          else
            System.out.println("odd number = " + i);
        System.out.println("Even numbers total = " + evensTotal);
        for(int i=firstNum; i<= secondNum; i++)
      if( i % 2 == 0 ) evensTotal=i;
         System.out.println(i+" squared is " + (i*i) );
          for(int i = firstNum; i <= 10; i++)
              if(i % 2 == 0) evensTotal += i;
          else
                  oddsTotal += i*i;
        System.out.println("Odd numbers(squared) total = " + oddsTotal);
        System.exit(0);
    }I have everything I need, but I don't want it to display the even numbers squared. I want it to display the odd numbers squared. And also at the end I need to Output all of the uppercase letters. Any ideas of what that means or how to go about it??
    By the way. The program outputs the following when I use firstNum=1 and secondNum=13:
    odd number = 1
    odd number = 3
    odd number = 5
    odd number = 7
    odd number = 9
    odd number = 11
    odd number = 13
    Even numbers total = 42
    2 squared is 4
    4 squared is 16
    6 squared is 36
    8 squared is 64
    10 squared is 100
    Odd numbers(squared) total = 165
    Edited by: mk9000 on Oct 29, 2008 9:09 PM

    import javax.swing.JOptionPane;
    class testing
      public static void main(String args[])
        int firstNum = 0, secondNum = 0;
        int evensTotal = 0, oddsTotal = 0;
        while(firstNum >= secondNum)
          int num = Integer.parseInt(JOptionPane.showInputDialog("Enter a number"));
          if(firstNum == 0) firstNum = num;
          else secondNum = num;
        for(int i = firstNum; i <= secondNum; i++)
          if(i % 2 == 0) evensTotal += i;
          else
            System.out.println("odd number = " + i);
        System.out.println("Even numbers total = " + evensTotal);
        for(int i=firstNum; i<= 10; i++)
      if( i % 2 == 0 ) evensTotal+=i;
      else
         System.out.println(i+" squared is " + (i*i) );
          for(int i = firstNum; i <= 10; i++)
              if(i % 2 == 0) evensTotal += i;
          else
                  oddsTotal += i*i;
        System.out.println("Odd numbers(squared) total = " + oddsTotal);
        System.exit(0);
    }Ok. I figured out how to display the odd numbers squared. I was forgetting to place the else after the if statement. But I still don't understand what my teacher could be talking about when she says "the last step is to output all the uppercase letters"
    Any help here? It makes no sense to me. It's all numbers. How could I output any uppercase letters?
    Edited by: mk9000 on Oct 30, 2008 5:53 AM

  • No sound with Midi.. I'm a noob, I apologize, but i need some help please!

    Ok, I have my logic pro studio, version 8.0.2. and I have a duet pedal. Now, I have my piano hooked up through the duet pedal, and then going via fire wire to my mac for recording. I opened up Logic Pro, and selected empty Midi Project to record.. it shows a piano in Logic, and says "record ready" yet when i hit record I get no sound, doesn't record anything and this freaking 1000 page book has me lost on what to do!
    I'm just trying to record midi so that I can convert and do the Notation Music to turn my music into sheet music. Can someone help me please? On another note, I did save my project so that it was saved....

    I figured out how to get the midi on there.. but now, I need to figure out how to get sound

Maybe you are looking for

  • Can't set Safari as true default browser in windows xp

    I'm running WindowsXP, and I installed the latest version of Safari. No matter what I do, it won't become the true default browser. I tried using the Safari preferences approach which only has one effect - it changes the icon at the top of the start

  • Three status lights keep flashing on the base station

    I was using my Airport extreme, it was a-ok, then the power went. When the base station came back up all three status lights starting flashing rapidly and simultaneously and since then i cannot get any signal from the base station. I've tried to unpl

  • Employee Search Eventing

    Is it possible when starting an Event via Employee Search in MSS that it can fire an iView created in Visual Composer?

  • I can't install any software or download anything...

    Hi all, I recently bought a nokia 3120c from my country Sri Lanka.  And there were some applications already in the phone. When I tried to open it I got a error saying certificate not in the phone. There was opera mini browser as well. At first set u

  • Mainstage is reading my buttons together instead of separate.

    I use the M-Audio Oxygen 88 MIDI controller with Mainstage 2.  When I try to assign a screen control to a button on my MIDI controller, it reads the buttons together so that every button performs the same action.  I don't know if the problem is with