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 End Module // The showInches module displays feet to inches Module showInches(Integer feet) Declare Integer inches Set inches = calcInches(feet) Display "Feet to inches: ", inches End Module // 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
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
End Module
// The showInches module displays feet to inches
Module showInches(Integer feet)
Declare Integer inches
Set inches = calcInches(feet)
Display "Feet to inches: ", inches
End Module
// 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
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images