IPO Table for tempreature conversion
Input | Process | Output |
depth |
Multiply depth by 10 and then add 20 store in variable c Add 273.15 to c and store in k |
c for tempreatue in celsius k for tempreature in kelvin |
Function tempreature Declare depth Output "Enter Depth" Input depth Assign c = (depth * 10) + 20 Assign k = c + 273.15 Output "Tempreature in Celsius" & c Output "Tempreature in Kelvin" & k End
IPO table for pythagorous
Input | Process | Output |
a,b,c |
Take square of a and b and add them take square of c if square of c is equal to sum of squares of a and then d = yes else d = no |
d |
Function pythagorous
Declare a
Declare b
Declare c
Output "Enter all sides"
Input a
Input b
Input c
Check if c*c = (a*a) + (b*b)
then
Output "Yes this is a right triangle"
else
Output "No, this is not a right triangle"
End
Get Answers For Free
Most questions answered within 1 hours.