20 August 2009

Couple chased out by son

AN ELDERLY couple in Singapore who gave up their duplex to their son ended up homeless after he chased them out of the house, Sin Chew Daily reported on Thursday.

The couple now call the staircase of a school their home.

The man, who gave his surname as Lim, was a manager before he retired. He has a son and a daughter who live in Jurong.

Relating his ordeal to a secretary of the school, Mr Lim said he and his wife decided to give their duplex home to their son as a wedding gift about two years ago.

The couple thought that they could live in the house with their son. He, however, decided to sell the property for RM960,000 to buy another condominium. Mr Lim and his wife were then sent off to live with their daughter.

After a year, the daughter decided that they were no longer welcome and banned them from touching her children.

The couple could not enter the house after their daughter changed the locks to the house.

-- THE STAR/ANN

17 August 2009

Today's C-Programming Lab.

Now i am typing inside the freezing ITMS computer lab.
My tutor is Miss Mona. Actually she is a lecturer too.. She is a very dedicated tutor and lecturer. She just mentioned the Face code that allocated for us in final exam is 5%. She had an allocation of total 20 of marks for total of our final exam total marks.

She gave us these codes and asked us the execute it:

//program that accepts 2 integers
//add them and display the sum value
#include
void main()
{
int first, second, sum;
printf("\please enter the 1st number:");
scanf("%d", &first);
printf("Please enter the 2st number:");
scanf("%d", &second);
sum=first+second;
printf("\nThe sum is %d\n\n", sum);
}



//program that will increase a given value by one
#include
void main(void)
{
int first;
printf("Enter a value:");
scanf("%d", &first);
printf("\nNew Value is : %d\n\n", first+=4);
}



//Program that demonstrate post fix and prefix
#include
void main()
{
int i=5, c=10, x;
x=i++;
printf("a)x=%d\n", x);
x=++x;
printf("b)x= %d\n", x);
x=c++ +i;
printf("c)x= %d\n", x);
}

ans: a=5, b=6, c=c+1 so c)16



//program that determine the larger number
#include
void main(void)
{
int first, second, temp=0;
printf("Please enter the first number=");
scanf("%d", &first);
printf("please enter nthe second number=");
scanf("%d", &second);
if(second>first)
{
temp=second;
second=first;
first=temp;
}
printf("\n%d is bigger than %d\n\n", first, second);
}



//program that performs operation of choice
#include
void main(void)
{
float first, second, result;
char choice;
printf("Please enter the first number=");
scanf("%f", &first);
printf("Please enter the second number=");
scanf("%f", &second);
printf("\nWhat do you want to do with these number?\n\n");
printf("Enter A to add them\n");
printf("Enter D to divide them\n");
scanf("\n%c", &choice);
if(choice='A')
{
result=first+second;
printf("The result is %.2f\n\n", result);
}

scanf("\n%c", &choice);
if(choice='D')
{
result=first/second;
printf("The result is %.2f\n\n", result);
}
}

14 August 2009

Hoping for longest lasting ever battery on your notebook?


Do you know that among my friends and me, i have the shortest period to sustain a battery power when using only battery powered notebook. Well, my nottie just lasts about one hour and 15 minutes and i really has no idea how to save and safe my nottie. (crying and drying)

at least now i fell compartable a little bit after i read this news. It a two years news ago, but if it is really on the rack, this will help many people.
And thanks to Albert Einstein’s theory
E=MC2


To let more people know more about this [ source ]