This will be a 3-part script project. Follow the guidelines below: First script will be named as circle.py. Create a class named Circle. Input an attribute as radius. Determine the code that must execute (Method/Function) circ_area which will compute for the area and circ_circum which will compute the circumference of a circle. Second script will be named as rect.py. Create a class named Rect. Input an attribute as length & width. Determine the code that must execute (Method/Function) rect_area which will compute for the area and rect_perim which will compute the perimeter of a rectangle. Third script will be named as geometry.py. You will import class Circle and class Rect from their respective scripts to this main script. Create a logical code that will display: 1. The total area of a circle and a rectangle. 2. The circumference of a circle. 3. The perimeter of a rectangle.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter10: Introduction To Inheritance
Section: Chapter Questions
Problem 2E
icon
Related questions
Question

PYTHON PROGRAMMING

This will be a 3-part script project. Follow the guidelines below:
First script will be named as circle.py. Create a class named Circle. Input an attribute as radius.
Determine the code that must execute (Method/Function) circ_area which will compute for the area
and circ_circum which will compute the circumference of a circle.
Second script will be named as rect.py. Create a class named Rect. Input an attribute as length & width.
Determine the code that must execute (Method/Function) rect_area which will compute for the area
and rect_perim which will compute the perimeter of a rectangle.
Third script will be named as geometry.py. You will import class Circle and class Rect from their
respective scripts to this main script. Create a logical code that will display:
1. The total area of a circle and a rectangle.
2. The circumference of a circle.
3. The perimeter of a rectangle.
Transcribed Image Text:This will be a 3-part script project. Follow the guidelines below: First script will be named as circle.py. Create a class named Circle. Input an attribute as radius. Determine the code that must execute (Method/Function) circ_area which will compute for the area and circ_circum which will compute the circumference of a circle. Second script will be named as rect.py. Create a class named Rect. Input an attribute as length & width. Determine the code that must execute (Method/Function) rect_area which will compute for the area and rect_perim which will compute the perimeter of a rectangle. Third script will be named as geometry.py. You will import class Circle and class Rect from their respective scripts to this main script. Create a logical code that will display: 1. The total area of a circle and a rectangle. 2. The circumference of a circle. 3. The perimeter of a rectangle.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Knowledge Booster
Unreferenced Objects
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT