<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener("load", function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <iframe src="http://www.blogger.com/navbar.g?targetBlogID=8796375740772732283&amp;blogName=The+%C3%98nion&amp;publishMode=PUBLISH_MODE_BLOGSPOT&amp;navbarType=BLUE&amp;layoutType=CLASSIC&amp;searchRoot=http://cong-onion.blogspot.com/search&amp;blogLocale=en_US&amp;homepageUrl=http://cong-onion.blogspot.com/&amp;vt=8344398161922135314" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" height="30px" width="100%" id="navbar-iframe" allowtransparency="true" title="Blogger Navigation and Search"></iframe> <div></div>
Sunday, April 26, 2009=]

Waa.. Its 5 am now..
Cannot fall aslp due to some reason.. (maybe homework not done??)
Anyway just wan to share how programming is such a waste of time..

/* Name : Bicong Class : P1T3
This programs calculates the gravitational energy of an object given its mass and height from the ground.
*/
#include
#define G 9.81 // define a symbolic constant
void main (void)
{
/* declaration */
float mass, height, pEnergy;
/* initialisation */
printf (" Enter the mass of the object : ");
scanf ("%f", &mass);
printf (" Enter the height of the object : ");
scanf ("%f", &height);
/* calculate the potential energy */
pEnergy = mass * G * height;
/* output*/
printf("\t Mass is %f kg and its height from the ground is %f m\n\n",
mass, height);
printf("potential energy is %f J\n", pEnergy);
}// end main


This is what i have to type to get a simple calculation done like
potential energy which is simply mass x gravity x height..
See what i mean by waste of time??
I can do this calculation in 5 sec wif my calculation??
I have to spend like 10 mins typing n checking for a missing dot..
Wif technology comes great convenient..
Wif programming comes great waste of time..
blogged @ 4:59:00 AM








GOOD KID

Name: BiCong
D.O.B: 30/09/91
Libra

HOPES


TAGS

LINKS

Jared
Junjie
Junyi

THANKS

Designer: MarMar
Basecodes: %PURPUR.black
Image:Deviantart