Selasa, 8 Februari 2011

pppppeeeeeennnnniiiiiingggggg!!!!! 16/2/2011

kali ni blaja chapter lain plak....bab yang ni agak pening jugak...tapi...redahh jek....bile tengok notes yang miss bagi agak fening tapi bile miss terangkan memang faham sesangat....cume kene faham simbol dah tau step nye camner.....ok kite cubeee try test....

Chapter 4: operators and expressions
dalam chapter ni kite akan blaja pasal 4perkara:-

1) arithmetic operators
2) relational operators
3) logical operators
4) assignment operators

so kite blaja yang 1st dululah....miss terangkan simbol2 yang kite akan gunakan bg menjawab soklan dalam exam....ni cam nak blaja matematik plak....

1) arithmetic operator:-























2) relational operators:










3) logical operators:




















example yang miss nak uji minda kitorang:










sekarang ni miss terangkan bagaimana nak selesaikan masalah matematik dalam sistem coding....miss bagi contoh soklan n miss tunjukkan macam mana nak jawab.....agak ssh tp kene cuba ni....masuk exam tu....huhuhuhuhu

soklannye...

a=2         b=3
m=2       n=3
p=2        q=3
x=2        y=3

result: ni jawapan dalam pre-increment.










miss bagi lagi soklan untuk uji minda lagi....kali nie lebih rumit lagi sbb kene buat jawapan panjang lebar....pergh...fening lagi nak jawab....xpelah apepun kene fokus sbb nti xingat plak cara2nye...yang kene ingat apapun yang kite nak jawab 1st think kene settle operasi darab (*) dahulu....

result: ++a + --b * 4 > ++m * --n + 4
             && p++ + q-- * 4 < x++ * y-- + 4;
ni cara menjawab dalam pre-increment dan post-increment.
kite ke soklan seterusnye.....soklan ni haruslah menjawab dalam bentuk coding...soklannye....
aekarang nie aku dah faham camner nak jawab so semuanye bergantung pada soklan yang diberi....blaja fop ni seronok tp nak kene fokus baru leh faham......jika....

#include<iostream.h>
main()
{
int n;
n=5; ---> nilai input
//pre increment
cout<<n;                      5
cout<<++n;                 6
cout<<n;                      6
//post increment
cout<<n;                      5
cout<<n++;                 5
cout<<n;                      6
return 0;
}

contoh jawapan yang lain pula....miss terus tunjuk dalam bentuk coding lagi...

#include<iostream.h>
main()
{
int m;
m=7; --->nilai input
//pre increment
cout<<m;                  7                  @ leh buat...cout<<"     "<<m;
cout<<--m;              6
cout<<m;                 6
//post increment
cout<<m;                  7
cout<<m--;              7
cout<<m;                  6
return 0;
}

soklan yang seterusnye...dari bentuk coding dan jawapan die cume nak tau result yang ada dlm coding....so caranye nak cari jawapan....

#include<iostream.h>
main()
{
int result, a,b,m,n,p,q,x,y;
result=0;
a=6;
b=7;
m=8;
n=9;
p=3;
q=2;
x=4;
y=5;
result=++a + b-- * 4< ++m * --n + 4
             && p++ + q-- * 4 > x++ * y-- + 4;
cout<<"\n result="<<result;
return 0;       
}

what is the output of result?

jawapan: result = 1/true
camner dapat kite tengok ye cecaranye......
hmmmmm......finish dah aku update....next week update lagi....so class its finish today....see u miss next week......alhamdulillah...

thanks 4 all everythings.....

hoooorrrrraaaayyyyyyyy
akhirnya blog aku berjaya disiapkan walaupun blog aku lagi satu xleh nak buka...dengan mencipta blog yg baru akhirnye selesai tugasku.....ntah macam mana aku blh lupe email blog aku pun xtau.....tp xpe kekalahan bukan bererti gagal selamanye.....hooooorrrrreeeeyyyyyyyyyyyyyyyy....apepun thanks to miss ayuni coz beri aku peluang buat blog...selama ni aku ingat buat blog ssh tp senang rupenyeee.....thanks 4 kak syaza bg tunjuk ajar...u r best girl....becoz of u lah aku mencapai kejayaan buat blog...hehehehehehehhee....seronok rasa hati....uuuulalalallaallalalalalla...pas ni leh tidor ngan lena sampai pagi....

ape plak ari ni????....9/2/2011

hari nie aku masuk lambat...ape xnye perut ku lapar sangat.....g makan dulu sebelum masuk class....fuhhh kenyang giler xterkira....masuk je class ada soklan...fuhh...soalan mencabar minda....hehhehehee...so aku, ain, chacha n ayu group terakhir dan kami semua dapat soklan terakhir...
Exercise 3:
Modulus two float members, num1 & num2 with using the formula below:-
              formula: modulus=num1%num2


#include<iostream.h>//header
main( )//start body
{//open curly bracket
//declare variable
float num1;
float num2;
//input1
cout<<num1=";
cin>>num1;
//input2
cout<<num2=";
cin>>num2;
//formula
modulus=num1%num2;
//output
cout<<"modulus="<<modulus;
return 0;
}//close curly bracket
//end body

next step miss suruh duk dalam kumpulan untuk buat dlm sistem plak....kite tengok group sapa yang menang...hehehehehe...sshlah juga nak buat dlm sistem tp xpe blaja dr ssh...bru dpt senangnye...huhuhuhuhu...kitorang dah buat tp ada yang salah...walauapapun kitorang dapatlah 3markah....alorr sikitnye....hehhehehe...xpe kalah dulu....janji faham apa yg kite buat...
soalan miss bg berbunyi begini....ewahhh...:-

exercise in group...

bahasa melayu=
bahasa inggeris=
matematik=
sains=

total=
average=

formula: total=bm+bi+math+sains
            average=total/4

pas ue miss bagilah cecara nak buat dlm sistem.....ni dia latih tubi....huhuhuhu...ssh mmg ssh tp enjoy buat ni....rasa cam nak tukar cite-citeku nak jadi programming....hahahhahahahaha...lawak..lawak..lawak....apapun mencabar juga mindaku yg cukup kerdil ini....namun harusku tempuhi jua...hehehehe....walaupun ada salah sikit2 tu biaselah adat manusiakan....tp belajar dr kesilapan.....yok nengok camner aku buat...get ready....1..2..3...gooo!!!!!!!

step-stepnye....
1) open your computer-go start button-choose and click COMPUTER:
2) double-click LOCAL DISK (c:):
3) choose and double click folder TC:
4) choose and double-click folder BIN:
5) choose and double-click folder TC again:
6) click IGNORE to open the TURBO C++:
7) after turbo c++ open, click FILE and choose NEW:
8) after this, enter your group coding:
9) to look the result, click COMPILE MENU and choose COMPILE:
10) COMPILING box appear the error coding and press any key to show:
11) the error coding was display, double-click the error:
12) the TOTAL and AVERAGE is error because is not input:
13) it is the true answer, no input TOTAL and AVERAGE in the coding:
14) click COMPILE again in compile menu:
15) press any key in COMPILING box:
16) double-click the error #2 :


17) the error is no semikolon on the end word in coding:
18) COMPILE again until the coding no more error:
19) after compiling box appear, in the total error have 0:
20) press any key for appears the result and in box message no error:
 21) save as the coding, click FILE and choose save as:
22) enter your group name and click OK button:
23) the file change name to TERRAGON file:

24) click RUN menu and choose RUN:
25) the turbo c++ box appear:
26) enter the number in the box n press ENTER button:

27) press ENTER button again for show the total and average:



dah blaja...... 02/02/2011

hari nie minggu ke-2 aku g class...masuk je class kitorang diarah sign in forum....so aq tunjukkanlah sikit step2nye yeeee....
miss bagi url name die...http://lect-ayuni.forumms.net......so gi lah buka....

1) Go to url name: http://lect-ayuni.forumms.net/





2) Click JOIN for register:














3) Click agree button:














4) Register your data and click save:














5) Confirm the password again:














6) Go to your Yahoo!! Mail:














7) Check your email already:














8) Click the url name again:














9) Log-in your username and password:














10) Choose and click FOP (PART TIME):














11) Choose and click any item if you need to adding, for example click HOW TO CREATE YOUR OWN BLOG:














12) Click Reply for to create your url name:














13) Type your URL name and click priview:














14) Computer can priview your URL name:














15) After that, go to HOME and click LOG-OUT:














settle bab forum, miss bg notes utk chapter 1&2....hehe hmm chapter 1 plak, blaja pasal algorithm, pseudocode dan flow chart...untuk chapter 2 byk blaja pasal programming...fuh...ni aku suka tp ssh skt...
Chapter 1
- Algorithm
  • get the width
  • get the height
  • calculate the area of rectangle by height with by multiply width
  • display the area of rectangle 
algorithm ni miss ajar camner nak cari width ngan height.....cara dan contoh yang miss bagi adalah reactangle...kite lihat....cara2nye adalah..hehehehe...
Contoh je:

Find area of reactangle
                         







3                                  % modulus? -> baki
9  = 3/9
                                     4%5= 5 dibahagi 4
3 x 9 = 3*9                          = baki 1-> %


(+ & -) tidak berubah


Formula:
area=width*height


- Pseudocode
  • read the width
  • read the height
  • set the area=width*height
  • print output
- Flow Chart
bile masuk bab nie aq blank sikit...xfaham langsung...miss ajar laju semacam macam kejar LRT...xblh nak follow...salah kt algorithm confirm salah flow chart yg kite wt..tp xpe ni cabaran untuk otak yang lemah cam aq...hehehehehe...Algorithm & pseudocode lbh kurng je jwpn,, cume bezenye, jwpn utk Algorithm pjg dpd jwpn utk pseudocode..2 bende nie mmg ssh giler...feningggg jap....kengkawan tolong akuuuu...huhuhuhu...Flow Chart ni senang... kene hfl simbol... ade 6 symbols:-



 
 
 
 
 
 
 
 
 
 
 
 
 
 
yang aq faham tentang flow chart ni satu je Start/End msti ada bile Flow Chart.. Start ats....End bwh  Input/Output plak kne bt b4 n after Process..Process bese nye utk ltk formula yg dah tersedia pd soklan.. Utk Decision, Arrows dan Connector kurng faham coz lom pernah bt soklan yg gne simbol2 tu.. 
  •  Input = read, get
  •  Output = print, display
semua yg dipelajari berkaitan dgn programming format.. (utk drb n bhg)
  •  multiply = * (e.g 100 * 2)
  •  divide = / (e.g 10 / 100)
perghhhh...punyelah ssh chapter ni...macam nak pecah kepala...cnfm cam xleh nak score...huhuhuhuhu....pas miss terangkan segalanye, miss bg exercises untuk melatih otak ni tuk buat supaya pandai...sshlah juga...naik pecah pala otak aku ni....tp cube juga...kate owg lambat faham lambat lupe....hehehhehehe...yaa..kite tgk sapa yg kena....hehehhehe...


Exercise 1
Find the area of circle:

formula: area=3.14*radius*radius

answer:

1) Algorithm
- get radius of circle
- calculate the area of circle with 3.14 multiply by radius by radius
- display area of circle

2) Pseudocode
- read radius of circle
- set area=3.14*radius*radius
- display output

3) flow chart



















Exercise 2
Find celcius

formula: celcius=(5/9)*(fahrenheit - 32)

Answer

1) Algorithm
- get the fahrenheit
- calculate the celcius of equal five devide by nine multiply fahrenheit minus thirty two
- display the celcius

2) Pseudocode
- read fahrenheit - 32
- read 5/9
- set celcius=(5/9)*(fahrenheit - 32)
- display output

3) flow chart


















Exercise 3
Find fahrenheit

formula: fahrenheit=(9/5)*(celcius + 32)

answer:

1) Algorithm
- get the celcius
- calculate fahrenheit equal to nine devide by five multiply by celcius plus 32
- display the fahrenheit

2) Pseudocode
- read celcius + 32
- read 9/5
- set fahrenheit=(9/5)*(celcius + 32)
-display output

3) Flow chart
















Chapter 2
Dlm bab ni, blaja pasal C++.. yg aq fhm C++ ni blaja pasal coding..bab ni mengajar kite macam mana nak tukar data dlm flow chart kepada bentuk sistem @ coding...ssh2 jugak tp nak xnak kene buat...tengok bab ni yg aq mls sesangat aduhai xleh masuk kat kepala otak aq ni...tp apepun kenelah take note jelaaa.. ni la cth C++ yg miss aja aq..bt bnde ni kene tally ngan flow chart yg dah bt..
EXAMPLE: AREA OF CIRCLE



















#include<iD stream.h>//header
main( )//start body
{//open curly bracket
 //declare variable
 float area;        |  float area;
 float radius;     |           radius;
 //input 1
 cout<<"Enter radius=";
 cin>>radius;
 //fomula
 area=3.14*radius*radius;
 //output
 cout<<"area ="<<area;
return 0;
}//close curly bracket
 //end body

dlm bab ni,.... sume bnde yg msti ade dlm body..mencari aq simbol yg miss cakap nilah die simbol semikolon ( ; ) sgt pnting.. jgn alpa...simbol ni plak (//) namenye comment..ada 2 :
  • // = utk 1 baris coding
  • /* , */ = utk ksuluruhan coding / >1 baris coding
            + DECLAIR VARIABLE (START)
                  data_type variable_name
    DATA TYPEINTEGER
    IntegerInteger (o-9)
    FloatFloat (decimals)
    DoubleDouble (decimals)
    CharCharacter (a-z / A-Z)
    StringString (Sentences)
    ConstConstant (pi=3.142)
Rules:-                               
=> tgk formula
=> cri bpe Variable Name
=> Declare Variable

                 + INPUT

           Cout<< "________";
           Cin>>variable_name_thae_had_declare;

RULES :

=> hati2 n ejaan, hrf bsr & hrf kcil
                
                    + OUTPUT
                        
         Cout<<"______" <<variable_name_that_had_declared;