Module main()
// Local variables
Declare Integer feet
// Get feet
Call getFeet(feet)
// display inches
Call showInches(feet)
End Module
// The getFeet mount module gets number of feet
Module getFeet(Integer Ref inputFeet)
Display “Enter number of feet: “
Input inputFeet
// The showInches module displays feet to inches
Module showInches(Integer feet)
Declare Integer inches
Set inches = calcInches(feet)
Display "Feet to inches: ", inches
// The calcInches function accepts feet and returns inches.
Function Integer calcInches(Integer feet)
Declare Integer result
Set result = feet * 12
Return result
End Function
flowchart for this please
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here