BLOGGER TEMPLATES AND TWITTER BACKGROUNDS »

Friday, May 27, 2011

novel terbaru!!

DIBIUS CINTA


novel yg pling best skali,,,5star.,,,,blilah novel nie bg peminat2 novel...skali bce nk bce lg,,,romantik cerita,,,

nie la my BFF 4ever,,,hehee...syg glew kt dye owg nie,,,dye owg nie la yg pling phm isi hatiku,,,hoho,,,kte owg nie xpnh simpan rahsia 1 sme len,,hehehhe,,,mereke berdua nie baik,caring,gilew2,,heheheh,,
nie gmba kite owg time nga dating,,,bese owg dating bedua tp kite owg plik cket bedating betige...hahahah,,,,sbnye kite owg g jusco pas ue da pnt pusing jusco tp xsmpt nk amek gmbo lak,,jd kite owg pown amek la gmbo dlm kete aq,,hahahah..yp pnting 1.2.3 senyum,,,hhahahah...sume wt iklan COLGATE..hahahha,,(nmpk gg)
ok yg nie my bucuk syg,,hahahah,,aq pling syg kt dye nie,,,panahan asmara la ktekan,,,,dye nie pling bek lelaki yg aq pnh jumpe...org nye xsombong,[pas ue ley trime aq ape adenye,,,2 yg pntg,,wah sukeye,,hoooreey..syg glew kt kamu nie,,,

ok da pnt tok ari nie aq pekenalkn org yg pling aq syg,,,after family ku,,,awk betige owg ya pling berharga dlm hidup sye..terioma kasih kerana jd kawan sye,,hehehhe.,..nite sume

Friday, April 29, 2011

The end of the TUTORIAL FOP

alhamdulillah akhirnya siap pown wt blog tutorial nie...
akhirnye aq da xde beban tok wat blog nie,,,kalo xpsl ms soh wt blog nie mybe smpai blew2 pown aq xkn nk wt blog ag,,,tq  4 MS AYUNI,,,sbb byk mgjar wt bnda nie,,hehhehe
pas nie blog nie da xkn ku wt tutorial ag,,,wargghhh merdeka g 2,,,
tinggal tunggu final ag,,,xsaba lak(buku pown xbce ag,,,,),,,hahhaha
nk abezkan sem nie dgn cpt,,da pnt la ...
ok la sume,,,kepada rakan2 yg blog update ue sila lah update k,,,sebelom ms marah cm dlu ag,,,,hehehhe...xssh pown k...
mmmmuuuuaahhh,,,

Thursday, April 28, 2011

correction mid term..

                                                                   section A:



section B 
NO 2


Data type...


Sunday, March 27, 2011

dedicate 4 miss

 miss ayuni time kasih sebab da ajar sye nari pasal assigment nie...
hehehhee
sye da try wat gk mule2 error lme2 ok da,,,hehehhe
belaja dr kesilapan,,,,
TQ MISS AYUNI.....

assigment 2

assigment wat loop....
step 1


step 2
step 3
step 4
step 5
step 6
step 7


kalo time run click jewk kt run,,,tp dye xkuar...so kne g kt window n click kt output...
ok da ciap

Saturday, March 26, 2011

exercise before exam

QUESTION 1
change the if....else statements below to switch.....case statements:
#include <iostream.h>
main()
{
int nom A,nom B,Selection,Value;
cout<<"enter 2 numbers:";
cin>>nomA >>nomB;
cout<<"1.addition";
cout<"2.subtraction";
cout<<"3.multiply";
cout<<"4.division";
cin>>selection;
{
if (selection ==1)
{value =nomA + nomB;}
else if (selection ==2)
{value =nomA - nomB;}
else if (selection ==3)
{value =nomA * nomB;}
else if (selection ==4)
{value =nomA / nomB}
else
cout<<"invalid selection";}
<<"the value is:"<<value;
}
ANSWER:

#include <iostream.h>
main()
{
int nom A,nom B,Selection,Value;
cout<<"enter 2 numbers:";
cin>>nomA >>nomB;
cout<<"1.addition";
cout<"2.subtraction";
cout<<"3.multiply";
cout<<"4.division";
cin>>selection;
switch (selection)
{case 1:value=nomA + nomB;break
case 2:value=nomA - nomB;break
case 3:value=nomA * nomB;break
case 4:value=nomA / nomB;break
default cout<<"invalid selection";
cout <<"the value is"<<value;
}
return 0;
}
QUESTION 2
change for loop statement below to while loop.
#include <iostream.h>
main()
{
int i,power 2;
for (i=1;i<=9;i++)
{
power 2= i * i;
cout<<"    "<<i<<"power 2"<< power 2;
}
}
ANSWER
#include <iostream.h>
main()
{
int i,power 2;
while
i = 1;
while ( i <=9 )
{
power 2 = i * i;
cout <<"   "<< i << "power 2" << power 2;
i++;
}
}
QUESTION 3
write a program that input 2 numbers.compare and display only the biggest number.if the numbers are same,display the numbers are same
ANSWER
#include <iostream.h>
main()
{
int num1,num2;
cout<<"enter 2 numbers:";
cin >> nomA >> nomB;
//if...else statement
if (num 2 > num 1)
{ cout <<"num 2 is bigger than num 1";}
else if (num 2 == num 1)
{ cout <<"num 2 is same as num 1";}
else
{ cout <<"invalid selection";}
return 0;
}

QUESTION 4
write a programming using for loop that recive pricess of 3 products.calculate the price that must be paid after 10% discount is given to every customer.
ANSWER
#include <iostream.h>
main()
{
int x,price,total discount;
for (x=1;x<4;x++)
{
cout<<"price [ "<< x << " ] : ";
cin>>price;
}
total + price;
}
cout<<"total = " << total;
discount = total * 0.01;
cout<<"discount = "<<discount;
return 0;
}

QUESTION 5
what is the output for the following program segment
I) int x=20;
for (int i=5;i<=x;i++)
{
cout <<1;
i = 1 + 4;
}
ANSWER:
5
10
15
20

II) Int mul = 1;
do
{
mul = mul * 2;
cout <<"the mul is :"<<mul;
mul+++;
}
while (mul<10)
ANSWER
1
3
7