« What to do when your neighbours are inconsiderate fucks?So, our population's too light for real broadband? »

I've definitely got that bastard factor

17/03/06

Permalink 13:31:55, by matt Email , 116 words   English (NZ)
Categories: University

I've definitely got that bastard factor

In CompSci today, the lecturer put up a question about how to write code to convert °C into °F - the formula is 9/5*C+32 where C is the temperature in °C - with the input being an integer (one without decimals) and the output being a real number (one with decimals)
Having written the code, she asked for a temperature to convert. I suggested -40°C, which was promptly entered. Then she ran it. I will leave the look on her face to your imagination, dear reader. Hint: fire up a calculator and you will see why she was worried that she'd done something wrong, as well as achieving a laugh from the class.

Yes, I'm definitely a bastard :-)

3 comments

Comment from: moomoo girl [Visitor]
there is always one...
17/03/06 @ 20:55
Comment from: Cameron [Visitor] · http://blog.macros.org/
I don't even need to fire up a calculator to know that you're a bastard :P
19/03/06 @ 21:47
Comment from: EJ [Visitor]
Lol, I agree with Cam :P
21/03/06 @ 10:57

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
February 2012
Mon Tue Wed Thu Fri Sat Sun
 << <   > >>
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29        
Shocking as it may be, I think, and sometimes those thoughts are almost worthy of public contemplation. So, here are those some thoughts, with no guarantees as to their validity, worth, or utility to the cosmos. All thoughts are my own, representing only my thoughts, opinions and positions, unless explicitly otherwise stated. This blog is not an official or unofficial outlet for any company or government body, or for person other than myself.

Search

XML Feeds

powered by b2evolution