Wednesday, February 16, 2011

all example question yg miss bagi

2/07/2011

example 1 

       Find Area Of Circle [formula : area=3.14*radius*radius]  
       ALGORITHM
*Get the radius of circle
*Calculate the area of circle with 3.14 multiply by radius by radius
*Display the area of circle

       PSEUDOCODE
*Read the radius
*Set the area = 3.14*radius*radius
*Print output

       FLOW CHART :

example 2
 
      Find Celcius [formula : celcius = (5/9)*(fahrenheit-32)]
        ALGORITHM
*Get the fahrenheit of celcius
*Calculate celcius equal to five divided by nine multiply by fahrenheit minus 32
*Display the celcius of fahrenheit

       PSEUDOCODE
*Read the fahrenheit
*Set the celcius = (5/9)*(fahrenheit-32)
*Print output

       FLOW CHART :
 
examlpe 3
      Find Fahrenheit [formula : fahrenheit = (9/5)*(celcius+32)]
        ALGORITHM
*Get the celcius of fahrenheit
*Calculate fahrenheit equal to nine divided by five multiply by celcius plus 32
*Display the fahrenheit of celcius

       PSEUDOCODE
*Read the celcius
*Set the fahrenheit = (9/5)*(celcius+32)
*Print output

       FLOW CHART :

No comments:

Post a Comment