Clan x86

Technical (Development, Security, etc.) => General Programming => Topic started by: Hdx on September 28, 2005, 01:11:21 am

Title: Programming class
Post by: Hdx on September 28, 2005, 01:11:21 am
Well... My class sucks, were learning Java.. And we're going REALLY slow.
We're in what the 3rd-4th week and werer only to If statements -.-
If yall wana look you can find out course work here:
http://hdx.no-ip.org/Labs/
Post comments, Code, etc..etc.. anything you have to say about my shitty class :P
~-~(HDX)~-~
Title: Re: Programming class
Post by: Ergot on September 28, 2005, 01:14:02 am
Beats having no class.
Title: Re: Programming class
Post by: Sidoh on September 28, 2005, 01:16:39 am
I'll have to agree with Ergot. :)
Title: Re: Programming class
Post by: Hdx on September 28, 2005, 01:17:59 am
Not true. I'm reading the "JAVA for AP* Computer Science" book and I'm already to teh switch() cases.
~-~(HDX)~-~
Title: Re: Programming class
Post by: Sidoh on September 28, 2005, 01:20:49 am
SWITCH?! @_@  Daaammn..
Title: Re: Programming class
Post by: Ergot on September 28, 2005, 01:23:37 am
I would LOVE to have a teacher. Even the stupidest one. Independent learning is quite difficult...
Title: Re: Programming class
Post by: Hdx on September 28, 2005, 01:29:57 am
SWITCH?! @_@  Daaammn..
Shuit it, ive only read the 1st chapter -.-
Just got the book today.
Oh and stupied question, absolute value allows for deimals right? (Sorry I'm tired)
Oh and I suggest yall doo all the assighnments there easy.
~-~(HDX)~-~
Title: Re: Programming class
Post by: Sidoh on September 28, 2005, 01:51:48 am
Was just kidding. :-*
Fun. :P
Yes.  Absolute value accepts any real number.
Hehe.
Title: Re: Programming class
Post by: Hdx on September 28, 2005, 02:44:36 am
KK, was trying to decide to use a Double of an int.
Code: [Select]
public class AbsoluteValue {
public static void main(String args[]) {
double input;

System.out.print("Enter a number and I'll tell you it's absolute value: ");
input = TextIO.getlnDouble();
System.out.print("The Absolute Value is: ");
if(input >= 0)
  System.out.println(input);
else
  System.out.println(0-input);
}
}
Code: [Select]
public class Comparison {
public static void main(String args[]) {
double A, B;

System.out.print("Enter Value A: ");
A = TextIO.getlnDouble();
System.out.print("Enter Value B: ");
B = TextIO.getlnDouble();
if (A>B)
  System.out.println("The value of A is greater then the value of B.");
else if(A==B)
  System.out.println("The value of A is equal to the value of B.");
    else
      System.out.println("The Value of A is less then the value of B.");
}
}
Code: [Select]
public class DetermineAge {
public static void main(String args[]) {
int iBorn, iCur;
System.out.print("Please enter the last two digets of the year you were born: ");
iBorn = TextIO.getlnInt();
System.out.print("Please enter the last two digets of the current year: ");
iCur = TextIO.getlnInt();
if (iBorn >= 100 || iBorn < 0 || iCur > 100 || iCur <0) {
System.out.println("Hey but muncher! Dont lie to me. Good bye!");
return;
}
int iAge;
if (iBorn >= 6)
iAge = (100 - iBorn) + iCur;
else if(iBorn == iCur)
iAge = 0;
else
iAge = iCur - iBorn;

String cModi;
System.out.print("Has your birthday already happend this year? (y/n): ");
cModi = TextIO.getlnString();
if (cModi.toLowerCase().equals("n") || cModi.toLowerCase().equals("no"))
  iAge -= 1;

System.out.println("You are " + iAge + " years old.");
}
}
So boring!
~-~(HDX)~-~
Title: Re: Programming class
Post by: drka on September 28, 2005, 05:03:36 pm
I would LOVE to have a teacher. Even the stupidest one. Independent learning is quite difficult...
it's quite simple. i learned VB C++ and C# on my own(but i dont know them perfectly)
Title: Re: Programming class
Post by: Sidoh on September 28, 2005, 05:21:25 pm
it's quite simple. i learned VB C++ and C# on my own(but i dont know them perfectly)
Exactly.  Learning on your own is always simple because you move at your own pace.  When you're in a classroom environment, however, you're often forced to move at a pace that is not synonymous with your own.  This often causes frustration, discomfort and a seemingly less productive learning environment.

Contrasty, in a independent study-type environment, you are more comfortable with the material presented to you (by yourself) because you have more time to cover reliant subjects.
Title: Re: Programming class
Post by: Joe on September 28, 2005, 05:45:17 pm
Absolute Value of -13.37 is 13.37.

EDIT -
Quote
// Task 9: Define the following terms as best you can without looking them up.
//         1.  Programmer
//         2.  Hacker
//         3.  Cracker
//         4.  Cryptography
Asuming that means what I think it means (your school teaches that hackers are not the evil guys), I'm glad to see that at least one school in the world gets it right!
Title: Re: Programming class
Post by: Hdx on September 28, 2005, 06:08:58 pm
Yup :)
well it's not the school, who teaches that. it's jsut Mr. Weddel.
He's a jew but hes the only one who actually teaches any real programming :/
I asked 150 people at my school what a hacker and a cracker were, only 3 actually said the correct answer for a cracker, everyone else said it was a white boy playin as a nigger.
~-~(HDX)~-~
Title: Re: Programming class
Post by: Sidoh on September 28, 2005, 09:24:34 pm
ROFL.  Most of my school would have probably guessed the correct answer, since we don't have a single African-American in our entire population.
Title: Re: Programming class
Post by: Hdx on September 28, 2005, 10:20:28 pm
Luckey bastard.
We have 79% Specks
14% niggers
6% asians/viets
the rest are white :/
~-~(HDX)`-~
Title: Re: Programming class
Post by: Sidoh on September 28, 2005, 10:22:09 pm
Haha, wow.  What's a speck?  Mexican?

We have probably about 90% white, 9.9% mexican/other.  We have a Chinese foreign exchange student! =D
Title: Re: Programming class
Post by: Hdx on September 28, 2005, 10:38:05 pm
speck = mexican or someone of hispanic BG.
~-~(HDX)~-~
Title: Re: Programming class
Post by: Sidoh on September 28, 2005, 10:40:38 pm
speck = mexican or someone of hispanic BG.
~-~(HDX)~-~
I see.  We just call 'em beaners around here, hehe.
Title: Re: Programming class
Post by: Joe on September 28, 2005, 10:53:16 pm
beaners, lol. If I said, yo frank, whaddup beaner, I'd be posting from the hospital

A way I remember hacker vs cracker (besides simply remembering it =p) is..

"hacking" source code is for advanced users
Cracking codes, cracking MD5's, etc, malicious stuff. Crap, wait, I'm a cracker for cracking Agarwaen's MD5 password, har.
Title: Re: Programming class
Post by: Sidoh on September 28, 2005, 11:07:38 pm
I think your definitions need revision.

The beaners call themselves beaners around here.  They don't care if we call them that.  We're a pretty tight-knit community, though.
Title: Re: Programming class
Post by: Quik on September 28, 2005, 11:27:25 pm
speck = mexican or someone of hispanic BG.
~-~(HDX)~-~
I see. We just call 'em beaners around here, hehe.

He means 'spic' which is even more racist.
Title: Re: Programming class
Post by: Hdx on September 28, 2005, 11:29:57 pm
spic speck same thing,
And have i ever said I was not raciest?
They have to earn my respect before I give it to them, Same goes for adults, and anyone else.
~-~(HDX)~-~
Title: Re: Programming class
Post by: Blaze on September 28, 2005, 11:30:39 pm
My school is like, 40% white, 20% asian, 20% Brown (They deserve thier own catagory :D), and 20% black.
Title: Re: Programming class
Post by: Ergot on September 28, 2005, 11:32:59 pm
it's quite simple. i learned VB C++ and C# on my own(but i dont know them perfectly)
Exactly.  Learning on your own is always simple because you move at your own pace.  When you're in a classroom environment, however, you're often forced to move at a pace that is not synonymous with your own.  This often causes frustration, discomfort and a seemingly less productive learning environment.

Contrasty, in a independent study-type environment, you are more comfortable with the material presented to you (by yourself) because you have more time to cover reliant subjects.

However, at my own leisure pace, it's too slow. I need the pressure and the motivation.
Title: Re: Programming class
Post by: Sidoh on September 28, 2005, 11:36:31 pm
However, at my own leisure pace, it's too slow. I need the pressure and the motivation.
That's why independent studies are often sponsored by a teacher -- so you can develop a curriculum.
Title: Re: Programming class
Post by: Newby on September 29, 2005, 12:13:43 am
Luckey bastard.
We have 79% Specks
14% niggers
6% asians/viets
the rest are white :/
~-~(HDX)`-~

You live in San Diego too?
Title: Re: Programming class
Post by: Blaze on September 29, 2005, 12:15:07 am
Actually, http://www.beaverton.k12.or.us/home/ ...
Title: Re: Programming class
Post by: Hdx on September 29, 2005, 12:19:00 am
Actually. Hillsboro.
http://www.hsd.k12.or.us/liberty/
~-~(HDX)~-~
Title: Re: Programming class
Post by: Sidoh on September 29, 2005, 12:25:42 am
http://www.meeker.k12.co.us
Title: Re: Programming class
Post by: Mythix on September 29, 2005, 03:37:23 am
I went to school with 1 black guy, but he didn't count, he was half and half.
Title: Re: Programming class
Post by: AntiVirus on September 29, 2005, 12:27:46 pm
it's quite simple. i learned VB C++ and C# on my own(but i dont know them perfectly)
Exactly.  Learning on your own is always simple because you move at your own pace.  When you're in a classroom environment, however, you're often forced to move at a pace that is not synonymous with your own.  This often causes frustration, discomfort and a seemingly less productive learning environment.

Contrasty, in a independent study-type environment, you are more comfortable with the material presented to you (by yourself) because you have more time to cover reliant subjects.
But, you also get distracted easily.. Or atleast I do.  But, when I am in class I am very focused.

Quote
I would LOVE to have a teacher. Even the stupidest one. Independent learning is quite difficult...
I agree.. Except I wouldn't want a stupid teacher.
Title: Re: Programming class
Post by: Sidoh on September 29, 2005, 05:42:41 pm
But, you also get distracted easily.. Or atleast I do.  But, when I am in class I am very focused.
Not when you have a curriculum you have to complete in order to receive a grade.

Quote
I would LOVE to have a teacher. Even the stupidest one. Independent learning is quite difficult...
I wouldn't.  Teachers piss me off when they try to teach me computer stuff.
Title: Re: Programming class
Post by: AntiVirus on September 29, 2005, 05:45:49 pm
Sidoh ?

I get distracted when I try and work alone.. When a grade doesn't matter.

But, when a grade does matter, I work a lot better..  That is why I like doing it in school. 
Title: Re: Programming class
Post by: Sidoh on September 29, 2005, 06:23:54 pm
Sidoh ?

I get distracted when I try and work alone.. When a grade doesn't matter.

But, when a grade does matter, I work a lot better..  That is why I like doing it in school. 
You realize that there are independent study courses in school when you get a grade, don't you?  That's why I said 'you develop a curriculum with a teacher.' =P
Title: Re: Programming class
Post by: drka on September 29, 2005, 06:25:23 pm
you could always buy a video that explains how to program. i think that video professor has one of these. but im not sure.
Title: Re: Programming class
Post by: AntiVirus on September 29, 2005, 06:46:58 pm
Quote
That's why I said 'you develop a curriculum with a teacher.' =P
Ah!! I see.  At our school they don't incourage that.  So, I kinda forgot about them.. :)
Title: Re: Programming class
Post by: Sidoh on September 29, 2005, 08:01:10 pm
you could always buy a video that explains how to program. i think that video professor has one of these. but im not sure.
Those kinds of things never work for me.

Quote
That's why I said 'you develop a curriculum with a teacher.' =P
Ah!! I see. At our school they don't incourage that. So, I kinda forgot about them.. :)
Most schools do.  It kinda creates a lot more work for a teacher.