I use visual studio code specifically python inside of the program so keep that in mind when answering this. I need to make a program with three different classes(a circle, triangle, and rectangle class).

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter11: Inheritance And Composition
Section: Chapter Questions
Problem 9PE
icon
Related questions
Question
I use visual studio code specifically python
inside of the program so keep that in mind when
answering this.
I need to make a program with three different
classes(a circle, triangle, and rectangle class).
I need a function to compute the area of all
three classes(circle you will need radius, triangle
you will need three sides, and a rectangle two
sides) and I want the program to ask the users
for these numbers then use those numbers to
input the area.
In the main body of the code I want to make the
circle, rectangle, and triangle manually, and then
print the area.
Transcribed Image Text:I use visual studio code specifically python inside of the program so keep that in mind when answering this. I need to make a program with three different classes(a circle, triangle, and rectangle class). I need a function to compute the area of all three classes(circle you will need radius, triangle you will need three sides, and a rectangle two sides) and I want the program to ask the users for these numbers then use those numbers to input the area. In the main body of the code I want to make the circle, rectangle, and triangle manually, and then print the area.
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Running Time of Application
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
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning