PDA

View Full Version : Omg Hax0r



DarkShinjaru
Sep 18, 2003, 09:34 PM
'Sup?

Nai_Calus
Sep 19, 2003, 12:46 AM
OMG LIES.

i r teh l337. Ok, not really. But I actually managed to beat the pathetic excuses for programs I had to write for CIS115 into submission.

And because I feel evil, and this -is- Fresh Kills, I'm pasting the source code for a couple of them in here for you to laugh at and be blinded by. I indent these so they're more readable, but the board doesn't want to show it. :0

import TerminalIO.KeyboardReader;

public class MinutesYear {
public static void main(String [] args) {
KeyboardReader reader = new KeyboardReader();
double days;
double minutes;

System.out.print("365 or 366 days in year? ");
days = reader.readDouble();

minutes = (days * 24.0) * 60.0;

System.out.print("The number of minutes in a year is ");
System.out.println(minutes);

reader.pause();

}
}

Whee.

import TurtleGraphics.StandardPen;

public class DrawML {
public static void main(String [] args) {

// Instantiate a pen object
StandardPen pen = new StandardPen();

// Lift the pen, move it into position, and
// lower it back down.
pen.up();
pen.move(10);
pen.turn(90); pen.move(30);
pen.down();

// Draw M?-Lyer illusion

// Horizontal sections

pen.turn(180); pen.move(55);
pen.up();
pen.turn(90); pen.move(25);
pen.down();
pen.turn(90); pen.move(55);

// Brackets on upper line, left side

pen.turn(135); pen.move(10);
pen.up();
pen.turn(135); pen.move(15);
pen.down();
pen.turn(135); pen.move(10);

// Move to right side

pen.up();
pen.turn(135); pen.move(55);
pen.down();

// Brackets on upper line, right side

pen.turn(135); pen.move(10);
pen.up();
pen.turn(135); pen.move(15);
pen.down();
pen.turn(135); pen.move(10);

// Move to lower line, right side

pen.up();
pen.turn(225); pen.move(25);
pen.down();

// Brackets on lower line, right side

pen.turn(45); pen.move(10);
pen.up();
pen.turn(135); pen.move(15);
pen.down();
pen.turn(135); pen.move(10);

// Move to left side

pen.up();
pen.turn(315); pen.move(55);
pen.down();

// Brackets on lower line, left side

pen.turn(45); pen.move(10);
pen.up();
pen.turn(225); pen.move(15);
pen.down();
pen.turn(225); pen.move(10);

}
}

Firocket1690
Sep 19, 2003, 12:54 AM
I have no idea WTF he just typd ...

looks like soem code for something ....

oh, and Ian, Welcome to Fresh Kills http://www.pso-world.com/psoworld/images/phpbb/icons/smiles/anime1.gif

*gives Ian handful of gummie bears*
Asuka left....

http://www.pso-world.com/psoworld/images/phpbb/icons/smiles/icon_razz.gif

Nai_Calus
Sep 19, 2003, 01:00 AM
On 2003-09-18 22:54, Firocket1690 wrote:
I have no idea WTF he just typd ...

looks like soem code for something ....

oh, and Ian, Welcome to Fresh Kills ^^

*gives Ian handful of gummie bears*
Asuka left....

:P



Actually, it was half typing and half cut and pasting.

It's Java source code. The first is a program that queries for whether there are 365 or 366 days in the year, and then calculates and outputs the number of minutes in the year. The second draws the Mueller-Lyer illusion, which looks something like:

<---->
>----<

The lower line is supposed to appear longer than the upper. Obviously it doesn't here, because that is very bad ASCII art.

I've been here before. :-P

I was not aware of that. Who was she again? >P

:-P

prismsub5
Sep 19, 2003, 03:11 AM
On 2003-09-18 22:54, Firocket1690 wrote:
*gives Ian handful of gummie bears*
Asuka left....

http://www.pso-world.com/psoworld/images/phpbb/icons/smiles/icon_razz.gif


that was my job

DarkShinjaru
Sep 19, 2003, 07:03 AM
Noooo, you guys jacked my thread.

Obscenity
Sep 19, 2003, 08:15 AM
Your thread needed to be jacked.

Dime
Sep 19, 2003, 11:02 AM
Just like your mom.






I tried to resist, but it was too easy.

Miller
Sep 19, 2003, 11:18 AM
On 2003-09-19 09:02, Dime wrote:
Just like your mom.






I tried to resist, but it was too easy.



So simple yet so funny....

DarkShinjaru
Sep 19, 2003, 04:41 PM
Well, jack it back the way it was, fool!

Firocket1690
Sep 19, 2003, 05:37 PM
On 2003-09-19 14:41, DarkShinjaru wrote:
Well, jack it back


that sounds so wrong ... http://www.pso-world.com/psoworld/images/phpbb/icons/smiles/icon_wink.gif