I have shitty memory.
22 Replies - 1915 Views - Last Post: 10 July 2012 - 11:02 AM
#16
Re: Funniest thing to happen to you while programming
Posted 29 May 2012 - 04:08 PM
#17
Re: Funniest thing to happen to you while programming
Posted 29 May 2012 - 04:23 PM
...and coding skills
ok, I'll stop
ok, I'll stop
#18
Re: Funniest thing to happen to you while programming
Posted 29 May 2012 - 05:11 PM
#20
Re: Funniest thing to happen to you while programming
Posted 06 June 2012 - 11:33 AM
When I got my simple Java program working.
import java.util.*;
//This is for the ability to make an input
/*
Writer: Leopold Birkholm
Date: April 8th 2012
Sweden
*/
public class BMI235{
/*
BMI is calculated by:
Vikt(kg)/(längd*längd)=BMI
*/
//This is to start the input
public static void main(String args[]){ //Here starts the program
Scanner keyboard = new Scanner(System.in);
System.out.println("\n***************\nHello\nWelcome to BMI235 program"); //Just welcome the user to the program
double kilo, high, bmi;//Inform the program of what will go in (kilo, high) and the output (BMI)
System.out.println("Enter your weight in kilogram"); //Here goes the input of the user's weight, mesured in kilogram
kilo = keyboard.nextDouble(); //input method is called for the weight
System.out.println("Enter your length in centimeter"); //Here goes the length of the user, mesured in centimeters
high = keyboard.nextDouble(); //input method is called for the length of the user
bmi = (kilo/(high*high))*10000; //The BMI is now calculating
System.out.println("Please wait.\nYour BMI is " + bmi);//The BMI is now showed
System.out.println("***************\n");//Well, stars is always nice =)
}
}
#21
Re: Funniest thing to happen to you while programming
Posted 06 June 2012 - 02:20 PM
The "please wait" is a nice touch...
#22
Re: Funniest thing to happen to you while programming
Posted 06 June 2012 - 03:43 PM
I was working on an important project, and my computer's fan had just recently begun crapping out on me. So I had the computer sitting opened just below my desk exposed. I had also just taken the time to make myself a tasty sandwich with the last of my favorite ham! I was so pumped to eat it. I sat down, placed my apple juice on my desk, and began to sit down. I stubbed my toe ridiculously hard shaking the desk, trying to slide back into my desk, knocking the apple juice over which spilled onto my wonderful sandwich and then fed bits of my now apple juice sandwich into the top fan on my computer. I heard a clicking, a loud beep, and then... nothing. Fortunately I did my best to clean everything up after and left my computer to dry all night after going through it. It started up like a boss next morning, but I lost all my work for the night.
#23
Re: Funniest thing to happen to you while programming
Posted 10 July 2012 - 11:02 AM
I was working with my buddy one late morning and after a few hours we were encountering some errors so we decided to switch laptops for a bit and see if any help could be given. I was blown away by how we were using about 80% the exact same variable names and attacking the program logic in the same manner!
End result, he couldn't figure out mine and started playing XBOX, 3 Hours later, I fixed his, and we successfully were able to turn in our PHP/MySQL Finals! We were going to go to Steak N' Shake 30 min away to celebrate, that it just happened to be the night a huge ice storm came through, so after 40min of trying to go through the 5 mi. town, we ended up back at McDonalds. I passed out on the floor and about an hour later went to class for Networking
End result, he couldn't figure out mine and started playing XBOX, 3 Hours later, I fixed his, and we successfully were able to turn in our PHP/MySQL Finals! We were going to go to Steak N' Shake 30 min away to celebrate, that it just happened to be the night a huge ice storm came through, so after 40min of trying to go through the 5 mi. town, we ended up back at McDonalds. I passed out on the floor and about an hour later went to class for Networking
|
|

New Topic/Question







MultiQuote




|