<M/> 170 Why so serious? Featured Poster

Granted, you fail all your other tests and quizes so getting a 100% on the final isn't going to do anything for you because you still have failed the class.

I wish i never made it in life.

<M/> 170 Why so serious? Featured Poster

Well, I'm against the death penalty, but for repeat DUI offenders I'd make an exception.

I am with the death penalty for a lot of crimes but in cases like this, it wouldn't be smart to kill them.

<M/> 170 Why so serious? Featured Poster

My sister lived about 30 years in Tustin Calif, which is just south of Disneyland. She saw it snow, twice.

Hmmm... well, then I have to wait another 15 years until I am thirty then... :(

<M/> 170 Why so serious? Featured Poster

yo momma is so ugly, she made an onion cry

cproger commented: haha +0
<M/> 170 Why so serious? Featured Poster

Granted, you presented an amazing presentation for the wrong class :D

I wish I see infrared :D

<M/> 170 Why so serious? Featured Poster

It's also a lot easier to spell.

Hahaha, yep... ;)

<M/> 170 Why so serious? Featured Poster

yo momma is so fat, her portrait fell off the wall

<M/> 170 Why so serious? Featured Poster

skyfall

<M/> 170 Why so serious? Featured Poster

warrens80, why are you trolling? the only thing that is self destructing is your ambition for whatever your aiming for on this forum...

<M/> 170 Why so serious? Featured Poster

eBay and PayPal have a reputation lately of siding with the buyer - much to the detriment of some sellers. They should make it right.

Just recently i heard that paypal fined a couple 2500 dollars because they wrote a bad review. So yeah, they are losing their rep. with the people.

<M/> 170 Why so serious? Featured Poster

You can suspend their license, they'll still drive. You can revoke their license, they'll still drive. You can impound their car, they'll drive a friend's or family member's car. Short of locking them away forever, you can't stop the multiple DUI offender.

On the bright side, you can decrease the amount of those people...

<M/> 170 Why so serious? Featured Poster

Granted, your works were burned in a fire so no one knows you :D

I wish i had morgan freeman's voice

<M/> 170 Why so serious? Featured Poster

Sure.... why not.

Violin

<M/> 170 Why so serious? Featured Poster

Is it meta? Does it mean you have no value? ;)

Yup... it does now :(

Oh the fun of reading way too much into things.

Oh, that is really fun... until the point where your english teacher gets pissed at you. One time we were talking about english related stuff and we got to a point where it said, "The man was green." The teacher was trying to say that it was describing a characteristic of him being all sinister and wicked and all but I came out of nowhere and said, "or he was green..."

Good times...

<M/> 170 Why so serious? Featured Poster

Granted, you saw an all you can buffet, so.....

I wish daniweb was spelled backwards for a day (bewinad)

<M/> 170 Why so serious? Featured Poster

<M/> - It is just the first letter of my first name within tags...

<M/> 170 Why so serious? Featured Poster

Granted, you found out she was a transgender ;D

I wish 1D, AM, & JB are dead (singers).

<M/> 170 Why so serious? Featured Poster

Heh heh, how many people are not going to peek? There are probably a few versions, but as I remember it there's a human/animal-ring transition almost half way through. Can't remember if it's 8|7 or 7|6?

I still don't get it... Am i missing the joke/riddle?

<M/> 170 Why so serious? Featured Poster

yo momma is so stupid, she went to the aquariam to buy blu ray

<M/> 170 Why so serious? Featured Poster

Granted, "Ewwww, what did i just step on?" :D

I wish aliens destroyed the world :D

<M/> 170 Why so serious? Featured Poster

12 days of Christmas song -- how many people were given to my true love?

I have no idea...

<M/> 170 Why so serious? Featured Poster

granted, he was assasinated.

i wish my dogs can talk

<M/> 170 Why so serious? Featured Poster

Yo mama is so stupid that when she went for a blood test, she asked for time to study.

<M/> 170 Why so serious? Featured Poster

@<M/> I guess you never heard of the notion of feet in prosody, nor about rhymes. Rev Jim's version is a beauty in both of these aspects. I'm just saying you shouldn't change your career path to become a song-writer just yet.

Haha nope, never heard of it until now :D I just wanted to join along! i mean why not? It's the christmas spirit, lol.

<M/> 170 Why so serious? Featured Poster

Granted, the earth exploded...

I wish i was chuck norris :D

cproger commented: :) +0
<M/> 170 Why so serious? Featured Poster

Yet their parents are so tired
fa la la la la la la la la
The young children are up all night
fa la la la la la la la la
Wondering if St. Nick exists
fa la la la la la la la la
Their parents come into their rooms
fa la la la la la la la la
Telling them that st. nick is fake
fa la la la la la la la la
Leaving their own children in tears
fa la la la la la la la la
The parents laugh in wonder
fa la la la la la la la la
What dreams are left to diminish
Ha ha ha ha ha ha ha ha ha!

(your turn :D)

Reverend Jim commented: Dude! At least make it rhyme. +0
<M/> 170 Why so serious? Featured Poster

My life experience has tought me that the "secret sauce" in the recipe of sucess is passion... not a piece of paper. That's not to say I do not value a college education, because i highly value it, but the college degree is one tool out of many that you will need in your toolbox. Without the passion, the rest of the tools are not as useful... just my two cents..

That is why a lot of tech companies are ignoring degrees and certifications... they just look at your experience.

<M/> 170 Why so serious? Featured Poster

Yo momma is so fat, hulk couldn't lift her.

<M/> 170 Why so serious? Featured Poster

Granted, Dani banned you...

I wish i was dead

<M/> 170 Why so serious? Featured Poster

A group by?

<M/> 170 Why so serious? Featured Poster

A little more believable for little kids than a fat guy sliding down the non existant chimney.

That is 'murica for you!

<M/> 170 Why so serious? Featured Poster

These are my queries for an assignment. It says that I made a mistake on query 8 and 9... problem is that I don't see any mistakes? Can someone tell me what is wrong?

#T1
SELECT * FROM `inventory`;

#T2
SELECT fruitID, sum( quantity ) FROM `inventory` group BY fruitID;

#T3
SELECT `name` FROM `fruit` ORDER BY name;

#T4
SELECT * FROM `fruit` ORDER BY `price` ASC;

#T5
SELECT * FROM `fruit` WHERE `price` > 1.0 ORDER BY price DESC;

#T6
SELECT * FROM `fruit` ORDER BY `fruit`.`price` DESC limit 1;

#T7
select name, sum( quantity ) as 
"Total Quantity" from `fruit` as f, 
inventory as i 
where f.fruitID= i.fruitID
group by i.fruitID 
order by sum( quantity ) DESC;

#T8
select sum( quantity ) * (select price from fruit where name like 'apple')
from inventory
where fruitID=(select fruitID from fruit where name like 'apple');

#T9
select price*sum( quantity ) from fruit as f, inventory as i where f.fruitID = i.fruitID group by i.fruitID;

#T10
SELECT * FROM `fruit` where fruitID not in ( select fruitID from inventory ); 

For query 8, i get this error:

First Difference Occurs at: byte 1, line 1
On Line 1 its column 1
Line 1 Wrong: sum( quantity ) * (select price from fruit where name like 'apple')
Line 1 Right: Value of Apples 

sdiff side by side difference your output versus solution....
sum( quantity ) * (select price from fruit where name like 'a | Value of Apples
875.00                                |
<M/> 170 Why so serious? Featured Poster

"Santa is very jolly because he knows where all the bad girls live."

lol

<M/> 170 Why so serious? Featured Poster

This is proof that you don't even need to go to school to be great. This kind of makes you question the existance of school... There are a handful of people that have made it in similar conditions as he is in but I find the one man in the story a bit more interesting because instead of getting rid of what he got for money he instead decided to make the best use of it and was pretty successful at it (he is already a lot better than me...).

People that are like him include: John Paul Dejoria, Chris Gardner, Michael Oher, Carnegie (i think), and many more...

That is truely amazing. Not that he can write code, because realistically, anyone can do that given the time and resources...but that someone was willing to give him a chance, that's inspirational.

Very true.

<M/> 170 Why so serious? Featured Poster

I once saw santa at the gym, heck look at him now!

<M/> 170 Why so serious? Featured Poster

gentlemen, lets not forget about the tooth fairy...

<M/> 170 Why so serious? Featured Poster

According to my professor's program, it says that the snippet of code that i wrote has a syntax or runtime error.

This is my code:

#S3 display fruit name, inventory quantity sum, price and sum quantity*price displayed as value for each row in fruit
SELECT name, sum(quantity), price, price * sum (quantity) AS "value"
FROM inventory
RIGHT JOIN fruit ON inventory.fruitID = fruit.fruitID
GROUP BY fruit.fruitID;

What is wrong with it?

<M/> 170 Why so serious? Featured Poster

Granted, your throat got soar and now you sound like Justin Bieber.

I wish i had no wish :D

<M/> 170 Why so serious? Featured Poster

Deal, oooops it popped. I don't want it anymore.

12 chihuahas?

<M/> 170 Why so serious? Featured Poster

yo momma is so old, her first car was a velociraptor.

<M/> 170 Why so serious? Featured Poster

I think your self destruct failed... you may need to go for a 2nd test.

<M/> 170 Why so serious? Featured Poster

Well it didn't fix yours, I presume it is spelling not grammar :)

Lol, i never use it ;D I am too lazy to click the green check and edit ;D

<M/> 170 Why so serious? Featured Poster

@Mike Askew, i have cousins who live in UK and they say it is great weather to play rugby, lol (London). I guess they are just used to the cold...

<M/> 170 Why so serious? Featured Poster

@kal_crazy, i am personally not in the favor of the heat but I am thankful for what we have in Southern California than what other places suffer from... but lets be honest, California is the only state where you can go surf and snowboard in the same day :D

<M/> 170 Why so serious? Featured Poster

@stultuske, hmmmmmm if that is what i am supposed to do, i am going to expirement with that for a little bit :D

Thanks and goodnight (until morning :D)

<M/> 170 Why so serious? Featured Poster

Don't see the point, would most likely be a drain on the servers and most people would do dev in an IDE.

Well, i guess your right about that.....

<M/> 170 Why so serious? Featured Poster

Oh sorry about that, i thought i shared enough that was needed.

Well here are the instructions:

Read in integer numbers, one integer number per line, stop reading when you input 0, you will output the number integers read. You will first prompt the user with the string "Enter an integer, the input ends if it is 0: ".

Sample Run 1:

Enter an integer, the input ends if it is 0: 2
1
-2346
8534
9
0
The number of integers is 5

Sample Run 2:

Enter an integer, the input ends if it is 0: 0
You only submitted 0

Consistency Notes Repeated...
Output lines are always newline terminated. The string for only 0 entered is "No numbers were entered except 0\n";

I think i got most of it, i hope...

<M/> 170 Why so serious? Featured Poster

Okay, last question of the night.

My program is to have a program collect a number, double it, and reverse. I am having problems with reversing it...

Here is my code:

import java.util.Scanner;
import java.text.DecimalFormat;
public class ReverseNumber {

   public static void main(String[] args) {
       Scanner s = new Scanner(System.in);
       System.out.print("Enter a positive integer: ");
       long input = s.nextLong();
       long result = reverse(input);
       DecimalFormat myFormatter = new DecimalFormat("#,##0");
       System.out.println(myFormatter.format(input) + " doubled is " + myFormatter.format(input*2) + " and then reversed is " + myFormatter.format(reverse(result)));
   }

   public static long reverse(long n) {
       long result = 0;
       long rem;
       while (n > 0) {
           rem = n % 10;
           n = n / 10;
           result = result * 10 + rem;
       }
       return result;
   }
}

Here is the error log (1):

First Difference Occurs at: byte 75, line 1
On Line 1 its column 75
Line 1 Wrong: Enter a positive integer: 240,340 doubled is 480,680 and then reversed is 24,034
Line 1 Right: Enter a positive integer: 240,340 doubled is 480,680 and then reversed is 86,084 
You have only a First Line Error

sdiff side by side difference your output versus solution....
Enter a positive integer: 240,340 doubled is 480,680 and then | Enter a positive integer: 240,340 doubled is 480,680 and then

Octal Dump Difference
0000100   v   e   r   s   e   d       i   s       2   4   ,   | 0000100   v   e   r   s   e   d       i   s       8   6   ,  

Octal Dump Your output...
0000000
<M/> 170 Why so serious? Featured Poster

@James, I see what you mean but if I am not counting them, what would I be doing? What should be displayed is just all the numbers the users have submitted until they hit 0...

<M/> 170 Why so serious? Featured Poster

Maybe we should get an automatic grammar fixing device also :D

Dani has already made that, it is on your toolbar (the green checkmark)