Im using python and i need to 1)Fill the function definitions 2) Fill in the missing code in main() but i cant figure it out can you help this is the code #Name: import math#define functions #return type: float#Parameters: 2 floats(l and w)#This function returns the area of a rectangle with the given dimensionsdef RectangleArea(l,w):#return type: float#Parameters: 2 floats(l and w)#This function returns the perimeter of a rectangle with the given dimensionsdef RectanglePerimeter(l,w):#return type: float#Parameters: 1 floats(r)#This function returns the area of a circle with the given radiusdef CircleArea(r):#return type: float#Parameters: 1 floats(r)#This function returns the circumference of a circle with the given radiusdef CircleCircumference(r):#return type: None#Parameters: None#This function displays an introductiondef Intro():#return type: None#Parameters: 4 floats(rectArea, rectPer, circArea, circum)#This function displays the four values passed to itdef PrintInfo(rectArea, rectPer, circArea, circum ): #return type: float#Parameters: None#This function prompts the user for a length(must be positive) and returns itdef GetLength():#local variables#float length#return type: float#Parameters: None#This function prompts the user for a width(must be positive) and returns itdef GetWidth():#local variables#float width#return type: float#Parameters: None#This function prompts the user for a radius(must be positive) and returns itdef GetRadius():#local variables#float radius def main():#declare and initialize variables#float mylength, mywidth, myradius, myrectarea, myrectper, #mycircarea, mycircummylength = 0.0mywidth = 0.0myradius = 0.0myrectarea = 0.0myrectper = 0.0mycircarea = 0.0mycircum = 0.0 #call(invoke) Intro function #call a function to prompt for a length and store in mylength #call a function to prompt for a width and store in myWidth#call a function to prompt for a radius and store in myradius #invoke a function to store the area of the rectangle in myrectarea #invoke a function to store the perimeter of the rectangle in myrectper # #invoke a function to store the area of the circle in mycircarea #invoke a function to store the circumference of the circle in mycircum# #call a function to display the results of the above calculations#call a function to display the area of a rectangle with dimensions 10 x 15##call a function to display the area of a circle with radius 8#

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Im using python and i need to

1)Fill the function definitions

2) Fill in the missing code in main()

but i cant figure it out can you help this is the code

#Name:
import math
#define functions

#return type: float
#Parameters: 2 floats(l and w)
#This function returns the area of a rectangle with the given dimensions
def RectangleArea(l,w):

#return type: float
#Parameters: 2 floats(l and w)
#This function returns the perimeter of a rectangle with the given dimensions
def RectanglePerimeter(l,w):

#return type: float
#Parameters: 1 floats(r)
#This function returns the area of a circle with the given radius
def CircleArea(r):

#return type: float
#Parameters: 1 floats(r)
#This function returns the circumference of a circle with the given radius
def CircleCircumference(r):

#return type: None
#Parameters: None
#This function displays an introduction
def Intro():

#return type: None
#Parameters: 4 floats(rectArea, rectPer, circArea, circum)
#This function displays the four values passed to it
def PrintInfo(rectArea, rectPer, circArea, circum ):

#return type: float
#Parameters: None
#This function prompts the user for a length(must be positive) and returns it
def GetLength():
#local variables
#float length


#return type: float
#Parameters: None
#This function prompts the user for a width(must be positive) and returns it
def GetWidth():
#local variables
#float width


#return type: float
#Parameters: None
#This function prompts the user for a radius(must be positive) and returns it
def GetRadius():
#local variables
#float radius

def main():
#declare and initialize variables
#float mylength, mywidth, myradius, myrectarea, myrectper,
#mycircarea, mycircum
mylength = 0.0
mywidth = 0.0
myradius = 0.0
myrectarea = 0.0
myrectper = 0.0
mycircarea = 0.0
mycircum = 0.0

#call(invoke) Intro function


#call a function to prompt for a length and store in mylength


#call a function to prompt for a width and store in myWidth

#call a function to prompt for a radius and store in myradius


#invoke a function to store the area of the rectangle in myrectarea

#invoke a function to store the perimeter of the rectangle in myrectper
#


#invoke a function to store the area of the circle in mycircarea


#invoke a function to store the circumference of the circle in mycircum
#

#call a function to display the results of the above calculations


#call a function to display the area of a rectangle with dimensions 10 x 15
#


#call a function to display the area of a circle with radius 8
#

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY