Module main() // Local variables Declare Real width, length, area // Get the rectangle's width and length. getRectangleSides(width, length) // Get the rectangle's area. Set area = calcArea(width, length) // Display the area. Display "The rectangle's area is ", area End Module // The getRectangleSides module prompts the user for // a rectangle's width and length. The values are // stored in the reference parameters. Module getRectangleSides(Real Ref width, Real Ref length) // Get the rectangle's width. Display "Enter the rectangle's width." Input width // Get the rectangle's length. Display "Enter the rectangle's length." Input length End Module // The calcArea function accepts a rectangle's // width and length as arguments, and returns // the rectangle's area. Function Real calcArea(Real width, Real length) Return width * length End Function flowchart please
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
Module main()
// Local variables
Declare Real width, length, area
// Get the rectangle's width and length.
getRectangleSides(width, length)
// Get the rectangle's area.
Set area = calcArea(width, length)
// Display the area.
Display "The rectangle's area is ", area
End Module
// The getRectangleSides module prompts the user for
// a rectangle's width and length. The values are
// stored in the reference parameters.
Module getRectangleSides(Real Ref width, Real Ref length)
// Get the rectangle's width.
Display "Enter the rectangle's width."
Input width
// Get the rectangle's length.
Display "Enter the rectangle's length."
Input length
End Module
// The calcArea function accepts a rectangle's
// width and length as arguments, and returns
// the rectangle's area.
Function Real calcArea(Real width, Real length)
Return width * length
End Function
flowchart please

Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images









