Question: 2. The main function in Lab8_pcarswel-2 should let the user choose from a menu, find the area or rectangle of a circle, or find the


2. The main function in Lab8_pcarswel-2 should let the user choose from a menu, find the area or rectangle of a circle, or find the area or perimeter of a rectangle, or exit from the program. The two functions for the circle should be in a separate Python script called 'Circle.py'. The same is true for the two functions for rectangles and should be in 'Rectangle.py'. Why would it be necessary to use aliases when importing the two modules? An IPO Chart, "input process output", describes what functions expect for input, what the processes should be in the function, and what they should return. The functions under discussion are stored in separate python scripts. The IPO charts are listed: Here's a simulation: File Edit Shell Debug Options Windows Mint 1) Area of a circle 2) Circumference of a circle 3) Area of a rectangle 4) Perimeter of a rectangle 5) Quit Enter your choice: 1 Enter the circle's radius: 2.5 The area is 19.6349540849 MalTu 1) Area of a circle 2) Circunference of a circle 3) Area of a rectangle 4) Perimeter of a rectangle 5) Quit Enter your choice: 2 Enter the circle's radius: 2.5 The circumference is 15.7079632679 Malnu 1) Area of a circle 2) Circumference of a circle 3) Area of a rectangle 4) Perimeter of a rectangle 5) Quit Enter your choice: 3 Bnter the rectangle's with: 4 Enter the rectangle's length: 5 The area is 20.0 Maltu 1) Area of a circle 2) Circunference of a circle 3) Area of a rectangle 4) Perimeter of a rectangle 5) Qait Enter your choice: 4 Bnter the rectangle" s width: 4 Enter the rectangle's length: 5 The perimeter is 18.0 MPIN 1) Area of a circle 2) Circumference of a circle 3) Area of a rectangle 4) Perimeter of a rectangle 5) Quit Enter your choice: 5 Bxiting the program.. PS
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
