HardQuor's forum posts

Avatar image for HardQuor
HardQuor

1282

Forum Posts

0

Wiki Points

23

Followers

Reviews: 2

User Lists: 0

#1 HardQuor
Member since 2007 • 1282 Posts
[QUOTE="HardQuor"]

Yeah, i'm aware of the Yucca Mountain project. It's in my practically in my backyard, i live in Las Vegas. I think it's worth mentioning that the initial moisture tests that they ran to assure that Yucca Mountain is a dry enough environment to safely store the waste (seeing as any amount of moisture could lead to run off, and therefore possible contamination of surrounding areas and water supplies), were "inconclusive". Why? because all of their instruments suffered water damage.

I'm looking for soures now.

DeeJayInphinity
Here you goAnd here's another
As for this post.. I find that very hard to believe but you can view the list of current issues with Yucca Mountain here. Some of which include corrosion of storage materials and as you mentioned, contamination of surrounding areas.

I'm not sure if you're disagreeing with me here, but I'll go ahead and make my bottom line opinion. Nuclear waste is extremely dangerous, infinitely toxic, and much longer lasting than we are. When talking about nuclear waste, our main method for getting rid of it is storage. Storage until someone comes up with a way to fix it permanently. The problem with this is that no one knows when that solution is going to come, or if it ever will, for that matter. We're talking about hundreds of thousands of years before this stuff's radioactive properties become safe. HUNDREDS OF THOUSANDS. No human government has ever lasted much longer than a thousand. No human structure has lasted longer than ten. Essentially, when we're talking about nuclear waste, if we're not talking about REAL solutions, we're talking strictly in unknowns.
Avatar image for HardQuor
HardQuor

1282

Forum Posts

0

Wiki Points

23

Followers

Reviews: 2

User Lists: 0

#2 HardQuor
Member since 2007 • 1282 Posts

Don't use a double; it'll end up being a decimal instead of the integer you want. Use a long int instead (ex. long int term3 = 0;).

Otherwise, it looks pretty good. :D

OrkHammer007
no good, it's still giving me the same answer. I tried unsigned as well, that didn't work either :(

I just don't understand what is going on here. At least i know it's not just me this time..
Avatar image for HardQuor
HardQuor

1282

Forum Posts

0

Wiki Points

23

Followers

Reviews: 2

User Lists: 0

#3 HardQuor
Member since 2007 • 1282 Posts
I was reading an article that was suggesting that we bail them out, but in turn, force them to churn out nothing but green vehicles. I hate the idea of bailing out all these failing businesses, but seeing how much we rely on them, I think this is a good idea. But only in the scenario where we absolutely must bail them out.
Avatar image for HardQuor
HardQuor

1282

Forum Posts

0

Wiki Points

23

Followers

Reviews: 2

User Lists: 0

#4 HardQuor
Member since 2007 • 1282 Posts

Heh, i know it's silly, but a do..while loop reads more humanely than for loops do to me. Again, i'm sure it's just my inexperience speaking.

anywho, i've got another problem with the second project euler problem. (oy. at this rate, i'll NEVER get all 217 :()
The problem asks for the sum of all the even numbers that are less than 4 million that appear in the Fibonacci sequence. The following is my code.

do
{
term3 = term1 + term2;
if( term1 % 2 == 0 )
{
sum = term1 + sum;
}
else if( term2 % 2 == 0 )
{
sum = term2 + sum;
};
term1 = term2;
term2 = term3;
}while( term3 < 4000000 )

I have a feeling that my integers need to be doubles but when i do that, i get a compile-time error telling me that i cant use a binary operator (%) on double integers...

Avatar image for HardQuor
HardQuor

1282

Forum Posts

0

Wiki Points

23

Followers

Reviews: 2

User Lists: 0

#5 HardQuor
Member since 2007 • 1282 Posts

Try this instead:

for(checking = 1; checking < 1000; ++checking)
{
   if(checking%3==0||checking%5==0)sum=sum+checking;
}

I guess C++/Java doesn't agree with GS.

OrkHammer007
Yeah, i know how to code a for loop, it's just that the do-while loop that i posted was the first thing that came to mind. Thanks for the help, though :) And i might just be resurrecting this thread in the very near future again. Problem 2 is looking a lot more complicated O_o;
Avatar image for HardQuor
HardQuor

1282

Forum Posts

0

Wiki Points

23

Followers

Reviews: 2

User Lists: 0

#6 HardQuor
Member since 2007 • 1282 Posts
well, that all makes sense, i suppose. I think it's just my inexperience preventing me from seeing the obvious. also, before this thread dies, are either of you familiar with Project Euler? I'm just curious as to how far you guys have gotten or can get, whichever the case may be.
Avatar image for HardQuor
HardQuor

1282

Forum Posts

0

Wiki Points

23

Followers

Reviews: 2

User Lists: 0

#7 HardQuor
Member since 2007 • 1282 Posts

You have a semicolon after the end bracket of the if statement, which causes the if statement to execute a null command and causes the stuff in the brackets to execute unconditionally.

You're also using a do...while when a for loop would be better, but that doesn't affect functionality. :P

GabuEx
OMG. I hate you so much right now, Gabu. This WHOLE time it was just that stupid semicolon. I had no idea that could or would do that. Aside from that, you both agreed that do-while loops were disagreeable.. why? one of my points of confusion is concerning the different loops and why some are more useful in different situations. It seems to me like a while, do-while, and a for loop can each be coded to do the same things. so where's the distinction?
Avatar image for HardQuor
HardQuor

1282

Forum Posts

0

Wiki Points

23

Followers

Reviews: 2

User Lists: 0

#8 HardQuor
Member since 2007 • 1282 Posts

So I'm pretty new to C++, and I'm in need of a little help trying to understand the way my code is being interpreted. I'm not completely clueless, as I've read a few texts at decent length; but my problem is that i've got very little experience in application. I've successfully programmed simple things like a program to change pennies into dollars, quarters, nickels, and dimes.

Anyhow, I read about this Project Euler thing and I thought it was a perfect chance for me to get some practice. But I've failed on the very first problem many times already, and i've approached the problem in many ways, yet nothing i do seems to work. Anyone else fluent in C++ that can point out where I've screwed up?

The problem asks for the sum of all the multiples of 3 and 5 that are less than 1000. The following is my code.

do{
checking++;
     if( (checking % 3) == 0 || (checking % 5) == 0 );
          {
               sum = sum + checking;
          };
    }while(checking < 999);


---edit---
Glitchspot is not agreeing with me today :(

Avatar image for HardQuor
HardQuor

1282

Forum Posts

0

Wiki Points

23

Followers

Reviews: 2

User Lists: 0

#9 HardQuor
Member since 2007 • 1282 Posts
Zune 80, never looked back :)
Avatar image for HardQuor
HardQuor

1282

Forum Posts

0

Wiki Points

23

Followers

Reviews: 2

User Lists: 0

#10 HardQuor
Member since 2007 • 1282 Posts

[QUOTE="OmegaCookie7"]May contain traces of soy.Meeeko

 

In fact, I'm 99.9999% soylent green.

nice 8)