Ni firsrt time dalam hidup ambik subjek FOP...tak faham +tak tahu +sakit kepala +sakit mental=????????????????
Question 1
Find the area of rectangle:
Area=Width*height
Answer
Algorithm that determines the area of a rectangle
1. Get the width of rectangle
2. Get the height of rectangle
3. Calculate the area of rectangle
4. Display the area of rectangle
Pseudocode
1. Read width
2. Read height
3. Set the area=width*height
4. Print output
Flowchart
Start>>Input the width & height>>area=width*height>>Print the area>>End
Question 2
Find Fahrenheit.
Fahrenheit=(9/5)*(celcius+32)
Answer
Algorithm
1. Get the celcius of fahrenheit
2. Calculate fahrenheit equal nine divide by five multiply celcius + 32
3. Display fahrenheit
Pseudocode
1. Read celcius
2. Set the fahrenheit=(9/5)*(celcius+32)
3. Print output
Flowchart
Srart>>Read celcius>>(9/5)*(celcius+32)>>Print output>>End
Answer
Algorithm
1. Get the celcius of fahrenheit
2. Calculate fahrenheit equal nine divide by five multiply celcius + 32
3. Display fahrenheit
Pseudocode
1. Read celcius
2. Set the fahrenheit=(9/5)*(celcius+32)
3. Print output
Flowchart
Srart>>Read celcius>>(9/5)*(celcius+32)>>Print output>>End
0 comments:
Post a Comment