Kena buat soalan yg miss ayuni bagi.
Contoh 1
Find the area of rectangle
Area=width*height
ALGORITHM
1. Get the width of the rectangle.
2. Get the height of the rectangle.
3. Calculate the area using the formula, area equals to width multiplied by height.
4. Display the area of the rectangle.
2. Get the height of the rectangle.
3. Calculate the area using the formula, area equals to width multiplied by height.
4. Display the area of the rectangle.
PSEUDOCODE
1. Read the width.
2. Read the height.
3. Set the area to the width multiplied by height.
4. Print the area.
2. Read the height.
3. Set the area to the width multiplied by height.
4. Print the area.
FLOWCHART
1 comments:
Where is your weekly reflections?
I gave you many exercises, where is it?
Mesin tin minuman?
sifir? no marks for all that...
Post a Comment