BLOGGER TEMPLATES AND TWITTER BACKGROUNDS »

Monday, February 7, 2011

Chapter 1!!!!!!!!!!!

ALGORITHM – Is sequences of instruction to solve a problem…(ayt yg pngjg2)
PSEUDOCODE – Is the textual approach to illustrate an algorithm while flowchart is a graphical approach to illustrate an algorithm (ayt yg pndk)

sample question!!!!!!!!!!!!!!!!!!

example 1 :
Find the area of rectangle
Area = width * height
Algorithm
1.Get the width of rectangle
2.Get the height of rectangle
3.Calculate the area of rectangle with multiply width by height
4.Display the area of rectangle

Pseudocode
1.Read width
2.Read Height
3.Set the area = width * height
4.Print output



Flow chart


example 2:
find the area of celcius
celcius = (5/9) * ( fahrenheit-32)
Algorithm
1.get the fahrenheit of celcius
2.calculate celcius equal to five devide by name multiply by fahrenheit minus 32
3.display the area of celcius

pseudocode:
1.read fahrenheit
2.set the celcius = (5/9) * ( fahrenheit - 32 )
3.print output


flow chart :


example 3:
find the area of fahrenheit
fahrenheit =( 9/5 *( celcius + 32 ) )
Algorithm

1.get the celcius of fahrenheit
2.calculate fahrenheit equal nine devide by five multiply celcius plus 32
3.display fahrenheit

pseudocode
1.read celcius
2.set the fohrenheit ( 9/5 *( celcius + 32 ) )
3.print output



Flow chart



*urmm da ciap pown tutorial chptr 1...
harap kowg phm la ye...hehhehe
yg pnting kalo algorithm ue kne tlis ayt yg pnjg2,,,
kalo pseudocode ayt yg simple jewk...

0 comments: