HELP NEEDED PLEASE

Hi everyone
Programming help needed here. Any advice would be greatly appreciated!!!
I have been assigned some work for a program called Processing 1.0 availale at http://processing.org/download
I was give the 9 individual programs I needed to make however they were converted to Java files from .pde files. The program is based on Java but only runs .pde files and NOTHING else!
I decompiled the files and got the source code, but it is a slight variation of the original someone made in processing, and needs some tidying to get it to run.
I think the programs are very simple for a programmer, although I AM NOT.
CODE is BELOW
// Decompiled by DJ v3.10.10.93 Copyright 2007 Atanas Neshkov Date: 02/05/2009 13:15:00
// Home Page: http://members.fortunecity.com/neshkov/dj.html http://www.neshkov.com/dj.html - Check often for new version!
// Decompiler options: packimports(3)
// Source File Name: Assign2_1.java
import processing.core.PApplet;
public class Assign2_1 extends PApplet
public Assign2_1()
SquareSide = 20;
Rank = Nums.length;
Side = SquareSide * Rank;
Green = color(0, 255, 0);
Yellow = color(255, 255, 0);
BG = Yellow;
public void setup()
size(Side, Side);
background(BG);
fill(Green);
for(int i = 0; i < Rank; i++)
rect(i * SquareSide, 0.0F, SquareSide, SquareSide * Nums);
public static void main(String args[])
PApplet.main(new String[] {
"--bgcolor=#ece9d8", "Assign2_1"
int Nums[] = {
6, 14, 8, 9, 2, 3, 4, 2, 8, 3,
9, 2, 0, 5
int SquareSide;
int Rank;
int Side;
int Green;
int Yellow;
int BG;
Edited by: chevy1 on May 2, 2009 7:32 AM

HELP NEEDED PLEASEShouting is a good way ensure you don't get help. Also you should give a meaningful subject.
Any advice would be greatly appreciated!!!I suggest you ask a question after providing enough information to be able to answer it.
Also use CODE tags when posting code as it make the code more readable.
We are more likely to help people who are trying to learn Java rather than someone who might be looking for an easy way out of doing an assignment.

Similar Messages

  • Help needed please.. how do I remove my credit card from itunes? just discovered over $450 of charges when I looked at my email... Kids had no clue they were using our money and not their gift cards

    Help needed please.... I just discovered over $450 charges to my credit card from Itunes. The kids had no idea they were using our credit card and not their itunes gift cards and 4 year old just clicks on anything! I didnt save my credit card details so am a bit miffed at this... I cant find anywhere in itunes to remove it. Edit.. but not remove. Editing does not remove it.. HELP

    To Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact
    Accepted forms of payment  >  http://support.apple.com/kb/HT5552
    Changing Account Information  >  http://support.apple.com/kb/HT1918

  • Help needed please, with Iphone stuck with apple picture and progress bar after software update attempted

    Help needed please, everytime I try to update the software version on my iphone it comes up with a message saying it could not be completed and is now frozen with the apple picture and progress bar on it. Do I unplug it and hope the macbook pro sees it again, I also stupidly did not back up before starting the download which I realise I will have to go back to the previous back up. This keeps happening, everytime I do this type of update, I'm starting to think I should just give up on updating my software on the Iphone. I thought it was happening because I was using a window based computer to do the updates, this time I used my Macbook Pro. Please somebody help

    ljm17 wrote:
    ...This keeps happening, everytime I do this type of update, I...
    Then you should know what you need to do... If you don't remember...
    See Here  >  http://support.apple.com/kb/HT1808

  • I recently had to restore my Iphone 4s and ever since I cannot double click the home button whilst the phone is locked and change my music. The controls come up and I can adjust the volume but I cannot change the songs. Help needed please!!

    I recently had to restore my Iphone 4s and ever since I cannot double click the home button whilst the phone is locked and change my music. The controls come up and I can adjust the volume but I cannot change the songs. Help needed please!!

    Have you guys been able to activate your iphone yet? I bought an iphone 4s from eBay and it worked fine, but the previous user had left some data on it, so last night I used the "erased all content and settings" to restore it to factory setting so I can start fresh and restore my backup. But now I'm stuck at the activation screen (I get the same "the activation server is temporarily unavailable")  and can't get it to activate, even if I use my old deactivated AT&T sim card (I'm on straighttalk now).
    I might try activating it with an active AT&T sim card from my fiancee's phone when she gets home, so I'll let you know how that works outs.
    If it's true that the server is down; anyone know when it will be back up again? Thanks in advance.
    iPhone 4s iOS 5.1.1 (9B206)
    Carrier AT&T 12.0
    Modem Firmware 2.0.12

  • New Hard drive, can't access certain aspects. Help needed please

    Hi everyone.
    I have an HP Pavilion dv6-6052ea laptop.
    I've been having problems with the hard drive so got a new one installed.
    My main issues are since getting it back, I can't access any of the original HP installations etc (I've downloaded all the drivers I know about through HP).
    The 2 main things I'm missing are 2 things that came with the laptop.
    1: Beats Audio sound system 
    2: Video Graphics: AMD Radeon HD 6490M (1 GB DDR5)
    and I have no idea how to get them back. Can anyone help. Do I need to install specific drivers? I can't find any trace that they exist on my laptop now apart from the stickers on the laptop! Any help is greatly appreciated. 
    I never had any CD back ups for the laptop. I do have the old HP back up etc saved on a USB but I don't know enough about the folders and files to know what I need to look for. (I still have the old hardrive.)
    Again, any help is massively appreciated. Thank you!
    Tony 

    If you used your HP Recovery Media, all factory install drivers and software would have been installed. If you didn't create your HP Recovery Media when you first setup your computer, please contact official HP support in your region / country, via the HP Worldwide Support Portal, to see if HP Recovery Media is available for your computer.
    If a generic Windows 7 installation disc was used, you will need to install all HP specific driver for your computer. Please try IDT High-Definition (HD) Audio Driver, Intel High-Definition (HD) Graphics Driver, and AMD High-Definition Graphics Driver to resolve your missing drivers issues. Windows 7 64-bit driver for your computer can be found on the HP Pavilion dv6-6052ea Entertainment Notebook PC Drivers page.
    If you have any further questions, please don't hesitate to ask.
    Please click the White KUDOS "Thumbs Up" to show your appreciation
    Frank
    {------------ Please click the "White Kudos" Thumbs Up to say THANKS for helping.
    Please click the "Accept As Solution" on my post, if my assistance has solved your issue. ------------V
    This is a user supported forum. I am a volunteer and I don't work for HP.
    HP 15t-j100 (on loan from HP)
    HP 13 Split x2 (on loan from HP)
    HP Slate8 Pro (on loan from HP)
    HP a1632x - Windows 7, 4GB RAM, AMD Radeon HD 6450
    HP p6130y - Windows 7, 8GB RAM, AMD Radeon HD 6450
    HP p6320y - Windows 7, 8GB RAM, NVIDIA GT 240
    HP p7-1026 - Windows 7, 6GB RAM, AMD Radeon HD 6450
    HP p6787c - Windows 7, 8GB RAM, NVIDIA GT 240

  • ITunes corrupt file message - urgent help needed please

    I have an iPod video 30GB, i downloded the latest iTunes & Quicktime version, and updated my iPod also to the latest update. When i connect my iPod and start downloading music from the library in iTunes, the iPod keeps on disconnecting and restarting by itself, and i get a message that the file iTunes.exe is corrupt. I tried Apple support and did all what they said by downloading the latest updates and versions, and also did the Chkdsk utility on Windows, but still it did not work, the iPod keep on restarting and i cannot download anything on it, i had it now for a week and did not use it at all because of this problem, can somebody with a technical background help me please, i use Windows XP.

    I have an iPod video 30GB, i downloded the latest iTunes & Quicktime version, and updated my iPod also to the latest update. When i connect my iPod and start downloading music from the library in iTunes, the iPod keeps on disconnecting and restarting by itself, and i get a message that the file iTunes.exe is corrupt. I tried Apple support and did all what they said by downloading the latest updates and versions, and also did the Chkdsk utility on Windows, but still it did not work, the iPod keep on restarting and i cannot download anything on it, i had it now for a week and did not use it at all because of this problem, can somebody with a technical background help me please, i use Windows XP.

  • MP3 burning help needed please

    Hi,
    I'm hoping someone can help me please.
    I'm wanting to burn a mp3 cd but with the songs in separate folders so that when i play them in my car i can flick between the albums instead of having to go through all the singles one after another.
    Does anyone know of a good mp3 burner that can do this, and where to get it from too.
    All and any help in this matter is greatly appreciated
    Cheers
    Paul

    You want them in separate Album folders?
    Put the songs into the playlist.
    Sort the playlist by Album then burn it as MP3* disc.
    This will put the songs into Album folders.
    Likewise, if you sort by Artist, songs will be put into Artist/Album/ folders.
    * Note that only MP3 files will be burned to the disc. If the files are not already MP3 format, they will be skipped.
    If you burn it as a DataCD, it wil work the same except it will copy the files regardless of format. I do this as my CD player will work with both AAC & MP3 formats.

  • WLC Logs!!! Quick Help needed please!

    Hello,
       My client want to check who owned a certain IP address on the WLC and from which AP he was associated. I looked at the system logs in the GUI but couldn't get beyond 6 hours. Is there a place I can download last day logs from CLI/GUI? Or Can I login via SSH and extract the logs via CLI?
    Please this is vital and I appreciate your help,
    Regards,

    Please note that the customer is using Pass-Through Web Authentication for the Guest WLAN.
    Thanks,

  • Restore help needed please.

    I need help. I got a new iPhone today and I went to iTunes, pressed restore, because I didn't know what else to do.
    And now because it was logged in under my boyfriends apple ID my iPhone is my boyfriends iPhone too.
    How do I turn it back to mine!? I need urgent help please!

    Go to Settings > General > Reset > Erase All Contents and Settings. Now this time, select Set Up as New iPhone rather than Restore from Backup.

  • Error in database reading ! help needed please.

    My project involves monitoring of ovens.
    The temperature from the oven are obtained using advantech ADAM module.
    Each material enters the oven and an alert is given to take it out after the desired time inside the oven.
    When i execute this program. an error pops up exactly 1 our after the start of the program.
    Kindly help me.
    I have attached the source code including the DB files and the error screen shot.
    username: 123456
    pass: 123456
    Thank you ina advance.
    Please help figure out the error.
    Regards
    Grugh Mike
    Success is Everything !!
    Solved!
    Go to Solution.
    Attachments:
    New Microsoft Word Document (2).doc ‏151 KB
    source.zip ‏4529 KB

    The biggest problem in your code is architectural. You need to learn about a few things like event-driven programming. As but one example you have an administrative operations VI that would be much smaller and much more efficient if it were built around an event structure and not multiple case statements. Your main application uses sequence structures - which are never necessary. As I recall, the last sequence structure I used in deliverable code was in the spring of '88.
    You also are not handling any of errors - which I suspect might be the source of your problem. It's possible that due to an error (which is going unreported) that a connection is being left open when you think it is being closed. But at this point that is just a guess.
    Fix the structural problems and you'll then be able to troubleshoot your DB problem. Shoot, in the process of fixing the structural issues, you may fix the DB!
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • IReader installed but wont open Urgent help needed please!

    I have installed Acrobat Reader X.
    When i try to open files I get a problem saying Microsoft and Adobe have encountered a problem and need to close.
    I get an option to Debug, Send error report or Dont send.
    The information which comes up when I look for more information is the following::
    error signature
    Appname. Acrord32.exe. Appver 10.0.1.434 Modname acrord32.dll
    Modver 10.0.1.434  offset 001869666
    It was previously working then the next time I came to use it I got this.
    Desparately need help

    1. camera loading - have you tried updating or reinstalling your firmware?
    2. keyboard - define strange
    3. slow - how much is phone memory and what apps are running in background (see taskmanager, hold menu key until it shows)? turn off theme animations. it helps.
    4.  handwriting - have you set the handwriting recognition to recognize your particular penmanship? Go to menu>settings>phone>touch input. Set writing speed to very fast, calibrate your screen and take handwriting training so the phone will recognize your handwriting.
    5. qwerty - what things? how so? have you set it to qwerty?
    6. cannot scroll in file manager - its not a problem. Thats normal for the OS. Use Nokia Photobrowser or the Gallery for viewing pictures. File manager is for managing files, not viewing them.
    7.  Motion sensors - read #3
    8. Phone feels hot - how hot? Batteries heat up when charged. Its normal. However it depends on how hot exactly.
    9. Depends maybe on how long the video is. My 5800 feels hot when watching an entire movie. Also this would be reflected on #3 as well, as the phone may be working overtime.
    10.  Music when unplug headset - Its normal for almost all Nokia phones (heck even some other brands this is normal), try to use an alternative player if you like
    11. Back cover -  Its the design
    12. Yotube - use youtube app
    13. Use Nokia Photo Browser download from ovi store. It shows pics only and looks real cool. Anyway, you can put all your videos in the gallery into a virtual folder so that it is separate. Its the way the gallery is designed, to show both pics and video. As you can see, it is written Images and Videos, so they're supposed to be together in there.
    14. Adobe still hasnt caughtup its mobile solutions for its PC solutions. Its their fault not Nokia's or anyone else's.
    15. Depends on extension. Built in office reader only reads .doc, not .docx.
    If you find my post helpful please click the green star on the left under the avatar. Thanks.

  • ? symbol in Keynote - Help Needed please !!!!

    Hi,
    New to Mac and even newer to keynote.....
    when i open a new slide there are ? symbols on the slide which appear also when i play the slides....
    is this an error or not ?
    If its an error what does it mean and if not how do i remove them ?????
    Please help as my daughters homework needs doing (by her obviously, not me)
    Thanks
    Nick

    Here are a few things you can do to troubleshoot the problem:
    - Have you tried re-recording the entire song playlist? This would be the first thing to try.
    - If it still skips, does it play OK in the Editing mode (not in Presentation mode)? If so, there may be a problem with the way you Recorded the Soundtrack.
    - Try recording just "Beautiful Day" as a Soundtrack and see if it still skips. If so, then this track itself may have some "glitches" and need to be replaced with a new copy.
    - What is the processor speed of your playback computer? With some presentations the audio will skip on slower machines, but not faster ones. (e.g. Some audio tracks will skip on my G5 desktop but not on my MacBook Pro.)
    Good luck

  • IWeb 09 and Go Daddy...Help Needed Please!

    I have read many of the posts on this question and still don't know the answer:
    Is it possible to use iWeb 09 and use the built-in FTP to upload directly to my Go Daddy site?
    I've tried and keep getting a "Testing failed. The directory/path couldn't be found."
    So, my question is, can someone who has successfully uploaded from iWeb 09 to Go Daddy please tell me what to enter in the FTP Server Settings of iWeb? I would like to know the following:
    SERVER ADDRESS (do you just use your site name, such as www.mysitehere.net or ??)
    DIRECTORY PATH (some folks say "http://" but this doesn't work for me)
    Also, do we just use PROTOCOL "FTP" or another?
    I am very appreciative of any help here! I basically bought iLife 09 so I could update my site directly from iWeb. In the past I used Fetch, which worked but is a bit of a rigamarole. So, if we can do it directly with iWeb 09 it would be great.
    Thanks for any help here! I'm very grateful!

    I just did this last night for the first time. Watch the FTP loading tutorial for iweb, it helped.
    Publish to FTP
    Put your site name in (what ever you want to put down)
    Server address is your domainname.com (no www)
    User name
    password
    no directory/path
    FTP
    Put your full website URL www.yourdomainname.com
    This will get it onto your go daddy site. It will put all of the files in a folder called whatever you called your site name above. Your website will look funny but that is iWeb FTP for you. It will look like www.yourdomainname.com/www.yourdomainname.com/home.html
    To fix that (I was told last night by go daddy) that I needed to log into godaddy and go to hosting on the left menue. then to manage account highlighted next to your domain name you want to manage. Then go into the folder with the site name you put in iweb and move everything in that folder to the root directory. Copy over anything in the root directory. When I did that the duplication of domain names went away and you are left with www.yourdomainname.com/home.html
    If you have problems call godaddy. They can walk you through it. Only do that after you tested successfully.
    Roger

  • Urgent webcam help needed please

    i didnt know where else to put this post. Anyway i just got a logitech fusion webcam which they sell on the apple store. i plugged it in and set it up. whenever i speak to anyone on skype(its the only one i use). they always say that around every 20 seconds they get a noise their end that sounds like wind noise. ive opened up the sound box in preferences and can see it happening form the noise indicator. but dont know what it is or how to stop it.. any ideas i really need help.. thanks in advance. the webcam by the way has a built in mic and i have the output coming through my speakers. ive also moved the speakers away from the webcam in case of interference but no joy.. please help..

    Hi-
    Checking the Skype forums reveals a concensus that the problem is most likely within the Skype software.
    http://forum.skype.com/index.php?s=6b9ae6327268168f5c1291d17df06400&showforum=15
    Some suggest disabling the mic, and using a seperate mic. This is because some believe the hardware combo (camera/mic) over USB is the problem. Others suggest using the macam driver. Others still, claim there was no noise before 2.5. There are even problems with the Windows version, apparently.
    A new Skype for Mac beta was released today- 2.7. You can download it from the following link:
    http://forum.skype.com/index.php?act=announce&f=15&id=38
    Would be adviseable to report the current bug to Skype. Include all system details, software and OS versions. The more people that report the problem, the sooner a fix will come about.

  • Multiple problems - help needed please

    I've got so many problems that I've completely confused myself. So, if anyone can help….
    I was previously using a D-Link D-320T DSL modem on BT Broadband in the UK. The modem was set up in bridge mode, and hooked up via ethernet to my Airport Extreme (n). The AEBS would use PPPoE and successfully connected to the internet, as well as handling all my network needs.
    Everything worked and everything was fine, allowing screen sharing and file sharing between my Mac Mini, MacBook and MacBook Pro.
    Earlier this week, the internet connection dropped and I couldn't find the cause. Resetting the router and hooking it up directly to my Mac Mini, I connected to it (192.168.1.1) and had it connect to the internet itself.
    It did so, and distributed IP addresses to the Mac Mini…but after 30 seconds my internet connection dropped, and looking in network preferences, I found that the modem had jumped from a router address of 192.168.1.1, to an 82.xx.xx.xx address, which was clearly the public IP address forwarded by my ISP. So it seemed like it was working in a sort of bridge mode still.
    I reset the router numerous times, tried switching it into full bridge mode etc, but the AEBS was unable to use it to connect via PPPoE as before, because the D-Link would play nice for 30 seconds, then jump around with addresses.
    Very strange, but I assumed the modem was just broken.
    I dug out my spare router, being the Netgear DG632.
    I managed to get this hooked up to the internet really quickly, and using an ethernet connection to the Mac Mini, it all appeared fine. However, as I started looking around the internet, I noticed that although google.com would open up, any subsequent links, and indeed any other domains I tried to visit would not open.
    Resetting the router seemed to solve this.
    I then hooked up my AEBS to the Netgear and, after pondering which way to use it, I found the only way I could get it to play nice was to have the AEBS in bridge mode itself, meaning that the Netgear would do all the routing work.
    The MacBook connected to the airport, and all seemed okay….
    …However, I then noticed that the internet connection would randomly drop. Web pages would not open (in any browser), and downloads which were under way could be seen in the Safari download manager to suddenly crash.
    The same was true on the Mac Mini - web browsing stopped at random. I had however hooked this up to the airport via an ethernet cable, I noticed that, although the "internet" wasn't working, other connections like torrents were still active.
    Reconnecting the Netgear router directly to the Mac Mini allowed me to see in its diagnostics that it still held a connection to the ISP and still had an external IP address.
    Again, a reset of the router seemed to resolve things….but only for a few hours. And whilst the Mac Mini seemed resilient, the airport connection to the MacBook was terrible. (I haven't even tried using the MBP yet).
    Furthermore, I noticed that networking between devices had severely been crippled. Although the Mac Mini and MacBook were visible to each other in the shared devices section of finder, clicking the link meant waiting literally four minutes for a connection to establish, and screen sharing timed out, from either direction.
    I then tried assigning everything static IP addresses, but this seemed to confuse matters with the router.
    Under the impression that the Netgear clearly couldn't handle the job of routing my network, I tried to set it up in bridge mode and use the AEBS as before.
    Reading around the internet (on my iPhone at this stage), I realised there was no obvious "bridge mode" option, but I was told to set the device mode as router, and then say "no" when it asks if there are any login details for the ISP (under Basic Router Settings). This was done.
    However, setting up the AEBS with PPPoE had no success, and the connection was never made.
    At this stage, I'm living with a crippled network and two routers, neither of which do what I want.
    Can anybody advise me on a solution to fix either router/modem?
    I want to use the modem in bridge mode and have the AEBS handle everything as before, as it was perfect.
    At this stage, which a frazzled brain (after messing with everything for several hours), something step-by-step would be great.
    Help! (and thanks)

    I have also recently developed problems with my airport network. I was playing my air tunes when it started freezing so i reset my airport extreme and expresses. When I tried to setup my networks again I en counted problems like airport utility couldn't find the extreme base station or when it did it couldn't read the setting. I eventually managed to create a network then when i tried to connect to the network it either asks for the password (even though its saved in keychain) When I enter the password it keeps saying "connection time out". I then turn airpot off & on and it the sometimes reconnects automatically without requiring a password.
    My internet then will sometime start working again but then drop out completely or take an age to load.
    The network will then sometimes disappear from the network list and I'm unable to see it at all.
    No matter how many time i reset the base station it doesn't make a difference.
    I my broadband modem is also a wireless router and Im experiencing similar problems with that. I took my laptop to work and tried to connect to the network at work and it seems to work ok except it did ask for a password the time out but did it only once.
    I did download a security update recently but im not sure if its that that is causing it
    please help me as well as I'm stuck without my network

Maybe you are looking for

  • How to do Mapping for the following Scenario

    Hi All, I am doing File 2 File Multimapping Scenario with out using BPM Concept but, My result was Struck at Message Mapping. Source                          Target Message                       Message1     Details                                Det

  • SG100D-08 vs SG200-08

    I need an 8 port switch to mange 6 web servers and while I haven't been able to decide whether or not I need a managed switch, I have recieved conflicting answers from sales reps with respect thier construction. In a 24/7 environment, is an SG100D-08

  • Combine PDF is no longer working.  What do I do?

    After a number of unrelated application add/deletes, I no longer have the function of certain Adobe functions such as combine PDF and printing as a PDF is no longer an option on programs such as Internet Explorer and AutoCAD. I have already tried rel

  • How to use dreamweaver to check scripts.

    I am both new to scripting and in using dreamweaver, I n eed to be able to copy an asp code and paste in dreamweaver and c ontinue with it, can anyone please help me on how to do this? , I a m testing dream weaver cs4

  • GP attachment

    Hi, all, In the GP, we can add attachments in the runtime through the attachment link at the top area. But i want to retrive those attachments even if the process is finish. Where can i find all attachments? Can those files store in the KM repository