how do I create a python program with a main function and a custom module named rect that defines three custom functions about rectangles as follows: a value-returning function that takes a...


how do I create a python program with a main function and a custom module named rect that defines three custom functions about rectangles as follows:



  • a value-returning function that takes a rectangle's dimensions as parameters and returns the perimeter.

  • a void function that takes a rectangle's dimensions as parameters and prints the area.

  • a value-returning function that takes a rectangle's dimensions as parameters and
    returns
    the diagonal length.


In the main function, import your custom module, prompt the user for the dimensions of a rectangle, and then use all three module functions.



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here