Chapter 1
1 .ALGORITH
Example :
|
1. Get the L
2. Find t area
3. Formula area = t x l
4. Result
Luas = ½ * l * tapak.
1. Get the height
2. Get the base
3. Formula area = ½ *t*base
4. Result
2. PSEUDOCODE
- ayat pendek .
- amek key dari algorithm.
Start
Input ketinggian
Area= 1/2 * t * t
Output base
End
3. Flowchart
CONTOH SOALAN CHAPTER 1
Celcius = (5/9) * (Fahrenheit-32)
1. ALGORITHM
a. Get Fahrenheit of celcius.
b. Calculate the formula of celcius = (5/9) * (Fahrenheit-32)
c. Display celcius as output.
2. PSEUDO CODE
Start
Input Fahrenheit
Calculate celcius =(5/9) multiply (Fahrenheit-32)
Output celcius
End
3. Flowchart
CONTOH SOALAN 2
Fahrenheit = (9/5) * (celcius +32)
1. ALGORITH
a) Get the celcius of Fahrenheit.
b) Calculate the Fahrenheit = (9/5) multiply (celcius +32)
c) Display answer
2. PSEUDU CODE
Start
Read the celcius
Fahrenheit = (9 * 5) multiply (celcius +32)
Print the fahrenhit
End
3. Flowchart
No comments:
Post a Comment