to include the required input and output and how you will obtain the required output
Instructions Functions In this homework, you will design a program to perform the following task: Design and write a program, using functions, that calculates the area and perimeter of a…