Logic problem
-
You have two hourglasses, one measures 7 minutes and the other measures 4 minutes, now you want to measure 9 minutes, how do you do it?
Well getting to 10 minutes is easier. OK :-O
-
You have two hourglasses, one measures 7 minutes and the other measures 4 minutes, now you want to measure 9 minutes, how do you do it?
Frankly, I'd take both back to the merchant for replacement. Neither 7 minutes nor 4 minutes are anywhere near an hour. You were robbed. And while you're there getting the 60 minutes worth of sand per glass that you originally paid for, I'd spend a couple of extra bucks and get some minuteglasses while you're at it. In fact, you might even be able to get him to throw one in for free, for your trouble... Chistopher Duncan Author - The Career Programmer: Guerilla Tactics for an Imperfect World (Apress)
-
You have two hourglasses, one measures 7 minutes and the other measures 4 minutes, now you want to measure 9 minutes, how do you do it?
Chris Maunder wrote: you want to measure 9 minutes, how do you do it? A watch...or that little clock in the bottom right of your screen. [edit]Now, can you stick your tongue out and touch your forhead?[/edit]
"If you just say porn then you get all manner of chaff and low grade stuff."
- Paul Watson, Lounge 25 Mar 03
"If a man is standing in the middle of the forest speaking and there is no woman around to hear him, is he still wrong?"
- Anon
Jonathan 'nonny' Newman Homepage [www.nonny.com] [^]
-
You have two hourglasses, one measures 7 minutes and the other measures 4 minutes, now you want to measure 9 minutes, how do you do it?
I don't do your homework problems! :-D Marc Help! I'm an AI running around in someone's f*cked up universe simulator.
Sensitivity and ethnic diversity means celebrating difference, not hiding from it. - Christian Graus
Every line of code is a liability - Taka Muraoka
Microsoft deliberately adds arbitrary layers of complexity to make it difficult to deliver Windows features on non-Windows platforms--Microsoft's "Halloween files" -
You have two hourglasses, one measures 7 minutes and the other measures 4 minutes, now you want to measure 9 minutes, how do you do it?
Hehehe... Lots of free time and hourglass rolling on your screen... My latest article: GBVB - Converting VB.NET code to C#
-
You have two hourglasses, one measures 7 minutes and the other measures 4 minutes, now you want to measure 9 minutes, how do you do it?
-
You have two hourglasses, one measures 7 minutes and the other measures 4 minutes, now you want to measure 9 minutes, how do you do it?
-
Chris Maunder wrote: you want to measure 9 minutes, how do you do it? A watch...or that little clock in the bottom right of your screen. [edit]Now, can you stick your tongue out and touch your forhead?[/edit]
"If you just say porn then you get all manner of chaff and low grade stuff."
- Paul Watson, Lounge 25 Mar 03
"If a man is standing in the middle of the forest speaking and there is no woman around to hear him, is he still wrong?"
- Anon
Jonathan 'nonny' Newman Homepage [www.nonny.com] [^]
Now, can you stick your tongue out and touch your forhead?
I can't - but Heidi Hamilton can - "a beautiful, blonde bomb shell with an 8-inch tongue". She is a Los Angeles radio "on air personality". Recently had a tongue-off with Kiss's Gene Simmons and won...here is the competition[^] Steve
-
You have two hourglasses, one measures 7 minutes and the other measures 4 minutes, now you want to measure 9 minutes, how do you do it?
Chris Maunder wrote: You have two hourglasses, one measures 7 minutes and the other measures 4 minutes, now you want to measure 9 minutes, how do you do it? Flip the 4 minute hourglass. When the 4 minute hourglass is halfway down, flip the 7 minute hourglass. Did I miss a better solution? -Nick Parker
-
Chris Maunder wrote: You have two hourglasses, one measures 7 minutes and the other measures 4 minutes, now you want to measure 9 minutes, how do you do it? Flip the 4 minute hourglass. When the 4 minute hourglass is halfway down, flip the 7 minute hourglass. Did I miss a better solution? -Nick Parker
-
Now, can you stick your tongue out and touch your forhead?
I can't - but Heidi Hamilton can - "a beautiful, blonde bomb shell with an 8-inch tongue". She is a Los Angeles radio "on air personality". Recently had a tongue-off with Kiss's Gene Simmons and won...here is the competition[^] Steve
:omg::wtf::omg: I'll have to think twice before making that joke again
"If you just say porn then you get all manner of chaff and low grade stuff."
- Paul Watson, Lounge 25 Mar 03
"If a man is standing in the middle of the forest speaking and there is no woman around to hear him, is he still wrong?"
- Anon
Jonathan 'nonny' Newman Homepage [www.nonny.com] [^]
-
Hehehe... Lots of free time and hourglass rolling on your screen... My latest article: GBVB - Converting VB.NET code to C#
Nice article Daniel, although your link didn't work, I found it here: http://www.codeproject.com/csharp/GBVB.asp[^] I'm a VB.NET programmer, what I'd really like to see is a conversion / comparison chart of VB.NET versus C# I often find nice examples of things I need to do, but the code is in C#, and I have difficulty converting it to VB.NET! Things like, where to put the 'inherits' keyword, how to declare constructors, how 'namespace' is used in VB.NET, the structure of classes in VB.NET versus C#, how to declare functions/subs and parameters/return values in C# versus VB.NET I always get caught out by the 'reverse' way of declaring types in VB versus C++, e.g. in VB.NET you can say Dim myStr as String, in C# it's something like String myStr; (the other way around!) Okay, that's enough... I don't want to start a programming thread in the Lounge!... :-O John. www.silveronion.com[^]
-
Nice article Daniel, although your link didn't work, I found it here: http://www.codeproject.com/csharp/GBVB.asp[^] I'm a VB.NET programmer, what I'd really like to see is a conversion / comparison chart of VB.NET versus C# I often find nice examples of things I need to do, but the code is in C#, and I have difficulty converting it to VB.NET! Things like, where to put the 'inherits' keyword, how to declare constructors, how 'namespace' is used in VB.NET, the structure of classes in VB.NET versus C#, how to declare functions/subs and parameters/return values in C# versus VB.NET I always get caught out by the 'reverse' way of declaring types in VB versus C++, e.g. in VB.NET you can say Dim myStr as String, in C# it's something like String myStr; (the other way around!) Okay, that's enough... I don't want to start a programming thread in the Lounge!... :-O John. www.silveronion.com[^]
John Honan wrote: in VB.NET you can say Dim myStr as String, in C# it's something like String myStr; Thats C++ based languages for you.* No silly keywords found here. *No lets not get into a discussion about what C++ is based on
"If you just say porn then you get all manner of chaff and low grade stuff."
- Paul Watson, Lounge 25 Mar 03
"If a man is standing in the middle of the forest speaking and there is no woman around to hear him, is he still wrong?"
- Anon
Jonathan 'nonny' Newman Homepage [www.nonny.com] [^]
-
You have two hourglasses, one measures 7 minutes and the other measures 4 minutes, now you want to measure 9 minutes, how do you do it?
Get 7 min and 4 min hourglass going. When the 4 min hourglass has ran out flip it over (we marked 4 min). When the 7 min hourglass has ran out flip over the 7 min hourglass (we no have a 7 min mark). Bear in mind that the 4 min hourglass will still run for another 1 min. When the 4 min hour glass has finnally run out flip 7 min hour glass at this instant (we marked 8 min). At this point the 7 min hourglass has only run for 1 min and by flipping it over again we will have it run out in exactly 1 min. Hence, the 8 + 1 = 9 min. Problem solved. Happy Coding :) Marat Kagetsya dogd' nashinaetsya :)
-
Chris Maunder wrote: you want to measure 9 minutes, how do you do it? A watch...or that little clock in the bottom right of your screen. [edit]Now, can you stick your tongue out and touch your forhead?[/edit]
"If you just say porn then you get all manner of chaff and low grade stuff."
- Paul Watson, Lounge 25 Mar 03
"If a man is standing in the middle of the forest speaking and there is no woman around to hear him, is he still wrong?"
- Anon
Jonathan 'nonny' Newman Homepage [www.nonny.com] [^]
Sure.... what do you want me to touch my forehead with? My left hand, or my right hand?:-D And they still ran faster and faster and faster, till they all just melted away, and there was nothing left but a great big pool of melted butter "I ask candidates to create an object model of a chicken." -Bruce Eckel