Page 8 of 23

Re: Study Buddies (AKA NOW LET US ALL NOT FAIL CLASSES AND S

Posted: Fri Mar 02, 2012 9:06 am
by D-vid
Binary has decimal points too. it goes to the right as 1/2, 1/4, 1/8 and so on.

Re: Study Buddies (AKA NOW LET US ALL NOT FAIL CLASSES AND S

Posted: Fri Mar 02, 2012 7:31 pm
by Syobon
Huh, never saw that. Are they still called decimal points then?

Re: Study Buddies (AKA NOW LET US ALL NOT FAIL CLASSES AND S

Posted: Fri Mar 02, 2012 7:36 pm
by D-vid
I don't know. We just say comma, even though it's periods in binary. For decimal numbers we use commas.

Re: Study Buddies (AKA NOW LET US ALL NOT FAIL CLASSES AND S

Posted: Fri Mar 02, 2012 8:13 pm
by Tetrunes
Like how the Euro is written

19,95€?

Re: Study Buddies (AKA NOW LET US ALL NOT FAIL CLASSES AND S

Posted: Fri Mar 02, 2012 8:14 pm
by D-vid
yeah.

Re: Study Buddies (AKA NOW LET US ALL NOT FAIL CLASSES AND S

Posted: Thu Mar 22, 2012 1:12 pm
by Sollix
Writing a sinple calculator program and I have no fucking clue what to do.

You're all smart.
How do I do this.

Re: Study Buddies (AKA NOW LET US ALL NOT FAIL CLASSES AND S

Posted: Thu Mar 22, 2012 1:19 pm
by D-vid
What class do you use for input?

Re: Study Buddies (AKA NOW LET US ALL NOT FAIL CLASSES AND S

Posted: Thu Mar 22, 2012 1:24 pm
by Sollix
Uhhhhhhhhhh............i dont even fucking know.

Re: Study Buddies (AKA NOW LET US ALL NOT FAIL CLASSES AND S

Posted: Thu Mar 22, 2012 1:25 pm
by D-vid
Well maybe you should pay attention then :I

Re: Study Buddies (AKA NOW LET US ALL NOT FAIL CLASSES AND S

Posted: Thu Mar 22, 2012 1:26 pm
by Sollix
I do! ;A; This stuff is fucking confusing!

Plus I cant really see the board that well but i hate sitting up front because I cant see...

Re: Study Buddies (AKA NOW LET US ALL NOT FAIL CLASSES AND S

Posted: Thu Mar 22, 2012 1:31 pm
by D-vid
Since I don't know the input class you're using (our professor gave us a self made) I can't really help you.
What you want to do is choose which mathematical operation you want to use, depending on how many you have to do, plus, minus or whatever, you can do that by just saying "if you put in p it's plus, m is minus and so on" and have an IF function to distinguish, then put in the numbers you want to do the thing with, then make the functions for the operations, like
if(operation=p){solution=number1+number2;}
else{if(operation=m){solution=number1-number2;}
and so on.
or a CASE function... which I forgot how it works.

Re: Study Buddies (AKA NOW LET US ALL NOT FAIL CLASSES AND S

Posted: Thu Mar 22, 2012 9:06 pm
by kaizokuxraven
Finals are killing me.

I've finished 2, but I still have another 2 to go. I've been studying in the library for 10+ hours a day, and I've started to act a little loopy because of it. My friends are telling me that once I've finished that I need to be re-integrated back into society before I can act normally again. It probably doesn't help that I've cut myself off from all social media and fun internet sites (this is my first time on a non-academic website in a while), am alone every night because my roommate left, and blast electro-synth music for endless hours while studying.

Pain is temporary - GPA is (sort of) permanent. I'M GETTING THAT 4.0 THIS QUARTER, DAMMIT. I despise A-'s...

Re: Study Buddies (AKA NOW LET US ALL NOT FAIL CLASSES AND S

Posted: Sat Mar 31, 2012 8:51 pm
by SaintCrazy
Hmmm, my Teaching and Learning professor is trying to convince me that for my lesson-plan-writing assignments, I should do the same lesson content in different teaching styles but I don't like this lesson's content....

It's like an "intro" lesson, so it has like no actual content or standards to it, just "alright class the next few days we're gonna learn about this, let's start by doing research on your own"

it's pretty hard to do that in a lecture style, for instance.

Re: Study Buddies (AKA NOW LET US ALL NOT FAIL CLASSES AND S

Posted: Wed Apr 04, 2012 5:39 pm
by D-vid
Bon jour to another episode of Java for beginners, by D-vid.

Today, we will talk about loops.

First, the FOR loop. Looks like zis:

int i;
int sum=0;
for(i=1; i<=n; i++)
sum= sum+i;

What does zis mean?

first we initialized i, our count variable, then for example sum.
Now we get to our loop. There's 3 things inside the brackets behind the word for:

The first is the number you start counting at, here it's 1.

The next is for what the loop checks each time it goes through here, it checks if your counter i is smaller or equal to a variable n that you put in before. Alternatively of course you can just put a number in there, or any other check you want like i>n, or whatever you like. if the check is not true, for example when n is 3 and i is 4, then the loop ends.

The third is what is supposed to happen to your counter after each time you go through the loop. Here it's the command i++, which means that i is increased by 1. So every time you go through the loop, your i is increased by one.

Finally, after you put down your conditions for the loop, you put the command/s you want to happen each time you go through the loop. Here, it's sum= sum + i, so each time, you add whatever i is to your sum.

So say your n is 5.
You start at sum= 0 and i = 1
1<=5, yes, so sum = 0 + 1; i= 1+1
2<=5, yes, so sum = 1 + 2; i=2+1
3<=5, yes, so sum = 3 + 3; i=3+1
4<=5, yes, so sum = 6 + 4; i=4+1
5<=5, yes, so sum = 10 + 5; i=5+1
6<=5, no, end of the loop.

So you had a loop that adds all numbers from 1 to n.
An easier one would just be counting.

for(i=1; i<=n; i++)
System.out.println(i);

System.out.println(something) is the standard command to show on your screen in a new line whatever is in the brackets, if it's a variable, it shows you the variable, if you put text in "" it shows you the text you write.

So here it simply does

1<=5, yes, so show on screen 1 ; i=1+1
2<=5, yes, so show on screen 2 ; i=2+1
3<=5, yes, so show on screen 3 ; i=3+1
4<=5, yes, so show on screen 4 ; i=4+1
5<=5, yes, so show on screen 5 ; i=5+1
6<=5, no, end of the loop

That would look like this:

1
2
3
4
5

And that's that. I hope I could help somehow.

LETS DO MATHZ WITH MSPAINT

Posted: Wed Apr 25, 2012 11:10 pm
by Sol Reaper
Quoted from Unimportant Topics
Flicky wrote:>NJ ASK testing
>How do you turn a rectangle with the dimensions of 15 x 22 inches into a cylinder, and what would the volume of said cylinder be?
>What would the dimensions of the rectangle have to be to double the volume?

Image

I HATE FINAL EXAMS

WHY ARE WE EVEN HAVING FINAL EXAMS IT'S APRIL SCHOOL DOESN'T END UNTIL JUNE

AAAAAAAAAAAAAAAAA
LETS DO MATHZ WITH MSPAINT
By Sol Reaper

Image
We start off with our rectangle. Simple enough.

Image
Now we wrap it around to create a cylinder with a height of 15 (the same height as the rectangle) and a circumference of 22 (the length of the cylinder)
The equation for Circumference is "C = 2(pi)radius". Using reverse solving we can figure out what the radius is. I'm going to use 3.14 for pi as I've been taught.
"22in = 2(3.14)r" is our new equation, after putting everything into place. The image above shows the rest of the steps.
Since the variable we need to find is "r", we need to isolate it. Since 6.28 is attached to r (married, if you will; r is trying to become single), we must divide 6.28 from both sides (divorcing) as required to keep the equation balanced. We end up with "r = 3.50" as 22/6.28 is 3.50.

Image
Now that we have our radius it's just a simple cylinder volume equation. V = Bh, or Volume = Area of the Base multiplied by the height of the cylinder.
Since the base is a circle, we use "(pi)r^2" for our B. Thanks to PEMDAS, we square 3.50 before doing any multiplication within the parentheses.
Then we multiply the result of that by pi (or 3.14) and then further multiply the product of that by 15, or our cylinder's height.
You now have the volume of a cylinder from a rectangle.