(Solved):Design the pseudocde for a modular program that asks the user to enter a length and a width and that then calculates the area. The formula is area = width x length. View Answer…

 

Question

Design the pseudocde for a modular program that asks the user to enter a length and a width and that then calculates the area. The formula is area = width x length.

 

EXPERT ANSWER

// modular function
function findArea(width, length)
{
    Area = width * length
    return Area
}
main()
{
begin
  // declare local variables
  declare area
  declare length
  declare area
  // call function findArea passing parms width and length
  area = findArea(width, length)
  //area is now assigned the value of

Scroll to top