aq msk clss dlm kul 9.25... um... n miss soh
rehat cmpay kul 10... kte owg wt pew yg ptt
sblm clss start... start clss Pn. soh wt lthan
on the whte board... um... Pn. bgi2 kn
nme by stiap lthn yg Pn. bgi...
n answer Pn. nk next week...
um... n last clss... Pn. dew bgi Ass...
gne pndraban n pmbhgian
menggunakn gglung / loop...
Pn. mnerangkn sdikt psl Loop
n bgi cth progamming ttg Loop..
Tuesday, March 08, 2011
Monday, March 07, 2011
Answer no2
#include<iostream.h>
main()
{
float rectangular, circle, triangle, fahrenheit, celcius, radius,f,c;
float width,height,base;
char selection;
cout<<"calculate:";
cout<<"\n\n a-rectangular";
cout<<" \nb-triangle";
cout<<"\nc-circle";
cout<<"\nd-fahrenheit";
cout<<"\ne-celcius";
cout<<"\n\nenter selection";
cin>>selection;
if (selection=='a')
{
cout<<"\nYour Selection is a and you are calculate rectangular.";
cout<<"\nenter width";
cin>>width;
cout<<"\nenter height";
cin>>height;
rectangular=width*height;
cout<<"\nthe answer is"<<rectangular;
}
else if (selection=='b')
{
cout<<"\nYour Selection is b and you are calculate triangle.";
cout<<"\nenter base";
cin>>base;
cout<<"\nenter height";
cin>>height;
cout<<"\nthe answer is"<<triangle;
triangle=(1/2*base*height);
}
else if (selection=='c')
{
circle=3.142 * radius * radius;
cout<<"\nYour Selection is c and you are calculate circle.";
cout<<"\n enter radius";
cin>>radius;
cout<<"\nthe answer is"<<circle;
}
else if (selection=='d')
{
;
cout<<"\nYour Selection is d and you are calculate fahrenheit.";
fahrenheit=(celcius*1/8)+32;
cout<<"\nenter celcius";
cin>>c;
cout<<"\nthe answer is"<<fahrenheit;
}
else
{
cout<<"\nYour Selection is e and you are calculate celcius.";
cout<<"\nenter fahrenheit";
cin>>f;
cout<<"\nthe answer is"<<celcius;
celcius=(f-32)*(5/9);
}
return 0;
}
answer no.1
#include <iostream.h>
main()
{
int drink;
double price;
double money;
double balance;
cout<<"**********";
cout<<"\n Mesin tin minuman";
cout<<"\n ------------------";
cout<<"\n 1 - pepsi\t\t 2.00\n 2 - coca cola\t\t2.00\n 3 - F&N MIRINDA \t1.80\n 4 - F&N ORANGE\t\t1.80\n 5 - 100 plus\t\t2.50";
cout<<"\n *********";
cout<<"\n\n enter your drink";
cin>>drink;
cout<<"\n enter your money";
cin>>money;
if (drink==1)
{
balance=money-2.00;
cout<<"\n your drink is pepsi";
cout<<"\n Balance is"<<balance;
}
else
if(drink==2)
{
balance=money-2.00;
cout<<"\n your drink is coca cola";
cout<<"\n Balance is"<<balance;
}
else
if(drink==3)
{balance= money-1.80;
cout<<"\n your drink is F$N MIRINDA";
cout<<"\n Balance is"<<balance;}
else
if(drink==4)
{
balance = money-1.80;
cout<<"\n your drink is f&n orange";
cout<<"\n Balance is"<<balance;
}
else
if(drink==5)
{
balance=money-2.50;
cout<<"\n your drink is 100 plus";
cout<<"\n Balance is"<<balance;
}
else
{
cout<<" \n Invalid selection. Try again";
}
return 0;
}
Tuesday, March 01, 2011
Weekly Reflection 5 - 01/03/2011
klas awi nie xmcm biase,,, aq tkjt mlht Pn. Ayuni memakai tdung...
dan... Pn. sgt ssuai mmkai tdung... Sykur Alhamdulillah...
dan Pn. tny kte owg da rht blom???... kte owg jwb mcm biase laa...
"Belom..."... um... Start jew kls... Pn. da bgi kami lthn... dan Pn. tglkn
kami dlm kls n kmi sbok2 mnyiapkn tgsn dbri... dan Pn. nk lthn too siap sblm kls abis...
tpi, group kte owg xdpt slsaikan lthn uw... smpai lh abis klas... dan Pn. ckp next week
bru bgi jwpn tok lthn too... um...
soaln tgk mcm sng dbuat... TETAPI.... 2jam pown xabs2 lgi wt lthn too..
isk2!!... sgt kcwa... huhuhuuu...
***SELESAI SUDAH...***
Weekly Reflection 4 - 22/02/2011
aq msuk klas mcm biase... miss bgi rht cm biase...
kami m'mlakn dgn chpter 4... Pn ckp hari ni kita akan
blja ttg math skit... Pn ajr kte owg psl;
Arithmetic Operators
+ -->> add
- -->> subtraction
* -->> multiply
/ -->> divide
% -->> modulus
^ -->> power
Relational Operators
> -->> more than/greater
< -->> less than
>= -->> greater/more than and equal
<= -->> less than and equal
= = -->> equal to
Logical Operators
&& -->> and
|| -->> or
! -->> not
macam biasa Pn. bgi lthn tok mguji kami sume... wt by group..
dan sungguh mlang group aq dpt 1 mark... um...
xpew... kami sume m'cbe dlu...
Dan Pn. bgi kami homework dan hntar sblm kls mnggu dpn...
dan wt dlm blog msing2...
***selesai sudah...***
Weekly Reflection 3 - 08/02/2011
aq xdtg klas... sbb xsht... so aq xtwu ppew dowg blja...
huhuhuhuhuuu... sgt rugi...
dowg gtwu 15/02... no clss... kn cuty...
smbt maulud Nabi...
huhuhuhuhuuu... sgt rugi...
dowg gtwu 15/02... no clss... kn cuty...
smbt maulud Nabi...
Weekly Reflection 2 - 01/02/2011
Aq msuk lmbt cket... ttpi masuk jew kls Pn. mnta kmi g rht dlu... so, sume g rht...
mcm biase lah Pn mlakn dgn chpter 2... dan kami d'perkenalkan dgn program C++...
fngsinyer, utk create n thu law dew errors pd coding yg kte create uw...
bnd2 basic dlm C++
*#include <iostream.h> --->>> HEADER
*main () --->> Start
*{ open curly bracket
*} close curly bracket
dan datatype;
*Int - Integar -->> real 0-9 only!
*float - float -->> decimal
*double - double -->> decimal
*char - character -->> one alphabet only a-z, A-Z
*const - constant -->> formula
*string - string -->> one or more work
mcm biase lah Pn mlakn dgn chpter 2... dan kami d'perkenalkan dgn program C++...
fngsinyer, utk create n thu law dew errors pd coding yg kte create uw...
bnd2 basic dlm C++
*#include <iostream.h> --->>> HEADER
*main () --->> Start
*{ open curly bracket
*} close curly bracket
dan datatype;
*Int - Integar -->> real 0-9 only!
*float - float -->> decimal
*double - double -->> decimal
*char - character -->> one alphabet only a-z, A-Z
*const - constant -->> formula
*string - string -->> one or more work
Weekly Reflection 1 - 25/01/2011
Permulaan kelas aku masuk awal n aq dah twu bhwe Pn Ayuni yg akn mengajar kte owg sume...
cz, FOP niwh sbject course IT.. huhuhuuu... kami dminta sign attendent n kami dminta
rehat dlm mse stgh jam... naik drpd rht kami dmnta m'perkenalkan dri msing2...
kami dbhgikn pd stiap kmpln da aq dlm kmpln WAKARIMA da kami ialah anne, daus, ieka, wany n aq nozey... slsai sudah... kami dbri ktrangn ttg Ass2 FOP... Tekun kmi m'dgr Pn Ayuni
bckp dhdpn klas... um... first day class pon da blja chptr 1... n Pn. de bgi lthn...
aku ttbe tprnjat cm nmpk hntu ngk soaln yg Pn. bgi...
sblm niwh aq xpna ngk soaln n xpna blja pown... aq tkg2... dan dlm fkrn aq tfkir,
adkh aq msuk clss arkitek???? kikikiii... ow!!! tdk sma skli... aq still lgi dlm kls FOP...
um... bwu aq twu yg FOP pon de blja math gak...
***selesai sudah kelas pada hari ini...***
cz, FOP niwh sbject course IT.. huhuhuuu... kami dminta sign attendent n kami dminta
rehat dlm mse stgh jam... naik drpd rht kami dmnta m'perkenalkan dri msing2...
kami dbhgikn pd stiap kmpln da aq dlm kmpln WAKARIMA da kami ialah anne, daus, ieka, wany n aq nozey... slsai sudah... kami dbri ktrangn ttg Ass2 FOP... Tekun kmi m'dgr Pn Ayuni
bckp dhdpn klas... um... first day class pon da blja chptr 1... n Pn. de bgi lthn...
aku ttbe tprnjat cm nmpk hntu ngk soaln yg Pn. bgi...
sblm niwh aq xpna ngk soaln n xpna blja pown... aq tkg2... dan dlm fkrn aq tfkir,
adkh aq msuk clss arkitek???? kikikiii... ow!!! tdk sma skli... aq still lgi dlm kls FOP...
um... bwu aq twu yg FOP pon de blja math gak...
***selesai sudah kelas pada hari ini...***
Monday, February 28, 2011
Exercises No 1
a) const double Pi=3.14;
b) double Parameter;
c)cout<<"input data";
cin>>data;
d) int num_compt;
cout<<"input number of computer";
cin>>num_compt;
b) double Parameter;
c)cout<<"input data";
cin>>data;
d) int num_compt;
cout<<"input number of computer";
cin>>num_compt;
Exercises No 3
main()
{
float Allowance=300.00;
float salary;
cout<<"Input Salary=";
cin>>salary;
Tsalary=salary+ Allowance;
cout>>"Salary is=" , salary;
}
{
float Allowance=300.00;
float salary;
cout<<"Input Salary=";
cin>>salary;
Tsalary=salary+ Allowance;
cout>>"Salary is=" , salary;
}
Exercises No 4
#include <
main()
{
double day_salary;
int days=20;
double monthly_salary;
cout<<"enter day salary";
cin>>day_salary;
cout<<"enter days working";
cin>>days;
monthly_salary=Day_salary*days;
cout<<"Your monthly salary =", monthly_salary;
}
Exercises No 5
Program that calculates the average of 5 numbers that can be input by user.
#include <iostream.h>
main()
{
int num1, num2, num3, num4, num5, average;
cout<<"enter number 1";
cin>>num1;
cout<<"enter number 2";
cin>>num2;
cout<<"enter number 3";
cin>>num3;
cout<<"enter number 4";
cin>>num4;
cout<<"enter number 5";
cin>>num5;
average=(num1+num2+num3+num4+num5)/5;
cout<<"average for five number is=" , average;
}
#include <iostream.h>
main()
{
int num1, num2, num3, num4, num5, average;
cout<<"enter number 1";
cin>>num1;
cout<<"enter number 2";
cin>>num2;
cout<<"enter number 3";
cin>>num3;
cout<<"enter number 4";
cin>>num4;
cout<<"enter number 5";
cin>>num5;
average=(num1+num2+num3+num4+num5)/5;
cout<<"average for five number is=" , average;
}
Exercises no 6
Program that will calculate the area of rectangular, triangle and circle.
#include <iostream.h>
main()
{
double area_rect , area_triangle, area_circle, base , height, width, radius;
const double π=3.14;
cout<<"Calculate area of rectangular.";
cout<<"Enter height=";
cin>>height;
cout<<"Enter width";
cin>>width;
area_rect=height * width;
cout<<"area of rectangular=", area_rect;
cout<<"Calculate area of triangle.";
cout<<"Enter base=";
cin>>base;
cout<<"Enter height";
cin>>height;
area_triangle= 1/2 * base * height ;
cout<<"area of triangle=", area_triangle;
cout<<"Calculate area of circle.";
cout<<"Enter radius=";
cin>>radius;
area_circle= 3.14;
cout<<"area of circle=", area_circle;
}
#include <iostream.h>
main()
{
double area_rect , area_triangle, area_circle, base , height, width, radius;
const double π=3.14;
cout<<"Calculate area of rectangular.";
cout<<"Enter height=";
cin>>height;
cout<<"Enter width";
cin>>width;
area_rect=height * width;
cout<<"area of rectangular=", area_rect;
cout<<"Calculate area of triangle.";
cout<<"Enter base=";
cin>>base;
cout<<"Enter height";
cin>>height;
area_triangle= 1/2 * base * height ;
cout<<"area of triangle=", area_triangle;
cout<<"Calculate area of circle.";
cout<<"Enter radius=";
cin>>radius;
area_circle= 3.14;
cout<<"area of circle=", area_circle;
}
Friday, February 25, 2011
QUESTION of EXERCISES on 23/02/2011
1. Write correct C++ syntax for each statement below;
a) Initializing, variable Pi with the value 3-14
b) Declare a variable named Pen meter with double datatype
c) Give instruction that allowed used to input data
d) Input number of computer using variable
2. Solve the question below. Show the working.
a) 5*2 % 3+25/5
b) a=5, b=6
!((a<3) && (a==3) || (b>a))
3. Identify syntax errors in the following program. (5 errors)
include <iostream.h>
main ( )
} float allowance = 300.00,
salary;
cout <<"input salary=";
cin << salary;
salary = salary + allowance;
cout <<"salary is = "<<salary
}
4. Write a program that will calculate the monthly salary for an employee that where Saturday and Sunday considered as non-working days.
5. Write a program that calculates the average 08 5 numbers that can be input by user.
6. Write a program that will calculate the area of rectangular, triangle & circle.
***jawapan akan dbuat sketika nnty***
a) Initializing, variable Pi with the value 3-14
b) Declare a variable named Pen meter with double datatype
c) Give instruction that allowed used to input data
d) Input number of computer using variable
2. Solve the question below. Show the working.
a) 5*2 % 3+25/5
b) a=5, b=6
!((a<3) && (a==3) || (b>a))
3. Identify syntax errors in the following program. (5 errors)
include <iostream.h>
main ( )
} float allowance = 300.00,
salary;
cout <<"input salary=";
cin << salary;
salary = salary + allowance;
cout <<"salary is = "<<salary
}
4. Write a program that will calculate the monthly salary for an employee that where Saturday and Sunday considered as non-working days.
5. Write a program that calculates the average 08 5 numbers that can be input by user.
6. Write a program that will calculate the area of rectangular, triangle & circle.
***jawapan akan dbuat sketika nnty***
23/02/2011-on class of FOP
alhamdulillah aq dtg awl... yekew??? kikiii... whatever...
Pn Ayuni soh sign attendent... n dlm kul 1000 msk
clss agy... Cz Pn bgi g srapn dlu... um... p aq xg...
ok... Pn soh aq install C++... cmpay skg xley gk...
adoi... cmne niwh??? um...
dlm clss cm bese... law da Pn Ayuni da start mngjar...
mmg xbnty2 lah... um... so, fokus... law xfokus...
cmfirm xtwu ppew... um... b'mulanya kte owg
blja psl ARITHMETIC, RELATIONAL & LOGICAL OPERATORS...
n then INCREMENT & DECREMENT...
INCREMENT-Pre-Increment & Post-Increment.
DECREMENT-Pre-decrement & Post-Decrement..
dalam sume too... aq ley phm cket drpd yg lps2 nyer...
aq pling skew yg adew if...else & switch...case...
n then Pn Ayuni dew bgi lthn... wt by individual n other
exercises... do on blogger... um... n then...
CLASS THE END.... heheheheheee....
sume bole blikkkk yerrr....
Pn Ayuni soh sign attendent... n dlm kul 1000 msk
clss agy... Cz Pn bgi g srapn dlu... um... p aq xg...
ok... Pn soh aq install C++... cmpay skg xley gk...
adoi... cmne niwh??? um...
dlm clss cm bese... law da Pn Ayuni da start mngjar...
mmg xbnty2 lah... um... so, fokus... law xfokus...
cmfirm xtwu ppew... um... b'mulanya kte owg
blja psl ARITHMETIC, RELATIONAL & LOGICAL OPERATORS...
n then INCREMENT & DECREMENT...
INCREMENT-Pre-Increment & Post-Increment.
DECREMENT-Pre-decrement & Post-Decrement..
dalam sume too... aq ley phm cket drpd yg lps2 nyer...
aq pling skew yg adew if...else & switch...case...
n then Pn Ayuni dew bgi lthn... wt by individual n other
exercises... do on blogger... um... n then...
CLASS THE END.... heheheheheee....
sume bole blikkkk yerrr....
Monday, February 07, 2011
25/01/2011-Tuesday... ALGORITHM , PSEUDO CODE n FLOW CHAT
ALGORITHM
1. Get the Fahrenheit of the Celsius
2. Calculate the Celsius using the formula Celsius=(5/9)*(Fahrenheit -32)
3. Display the Celsius
PSEUDO CODE
Read the Fahrenheit
Set the area to the formula Celsius equal by 5 divide by 9 multiply (Fahrenheit minus 32)
Print the Celsius
FLOW CHAT
1. Get the Fahrenheit of the Celsius
2. Calculate the Celsius using the formula Celsius=(5/9)*(Fahrenheit -32)
3. Display the Celsius
PSEUDO CODE
Read the Fahrenheit
Set the area to the formula Celsius equal by 5 divide by 9 multiply (Fahrenheit minus 32)
Print the Celsius
FLOW CHAT
Wednesday, February 02, 2011
PERMULAAN FOP
mula2 kelas aku da kcut prut... dsbab kn sesi pkenalan... hehehee...
aku xthu npe ttbe jew... um... p aq wt dank jew kowt... myb sbb aku xbese
cmtoo kowt.. huhuhuu... FUNDAMENTAL OF PROGRAMMING... huhuuu...
dfficult sbject... time start blja, aq ase cm aq tsesat class... hehehee...
ape xnyer, Puan Ayuni soh wt lthn kt whteboard... adew... apew nth...
lpew lak aq... time uw aq ase msuk clss arkitek plak... heheheee...
abis kne blja besa tpak, pnjang n lbar... um.. skang aq phm lah... apew e2
FUNDAMENTAL OF PROGRAMMING... alhamdulillah... adew blja gne
coding2 gak... p len dri web design... um..
FOP
ASSIGNMENT
1. FORUM
2. WEEKLY REFLECTION (5 MARK, OUTCOME 1,2,3,4)
3. ZIP FIE (5 MARK, OUTCOME 1,2,3,4)
4. BLOG - blogspot.com / wordpresscom (10 MARK, OUTCOME 5)
5. MIDTERM- 10 MARK
6. FINAL- 40 MARK
Subscribe to:
Posts (Atom)

