Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ples solve this with a screenshot output of your program python 1 - Write a Python class named Student with two attributes: student id, student

ples solve this with a screenshot output of your program
python
image text in transcribed
1 - Write a Python class named Student with two attributes: student id, student name. Add a new attribute: student_class. Create a function to display all attributes and their values in the student class. 2- Write a Python class named Rectangle constructed from length and width and a method that will compute the area of a rectangle. 3 - Write a Python class named Circle constructed from a radius and two methods that will compute the area and the perimeter of a circle. 4 - Follow the steps: a) Create a class. Triangle. Its init _ 0 method should take self, anglel, angle2, and angle 3 as arguments. Make sure to set these appropriately in the body of the init Omethod. b) Create a variable named number of sides and set it equal to 3 . c) Create a method named check angles. The sum of a triangle's three angles is It sbould retum True if the sum of self.angle1, self.angle2. and self angle3 is equal 180, and False otherwise. d) Crate a variable named my triangle and set it cqual to a new instance of your Triangle class. Pass it three angles that sum to 180(e.g,90,30,60), c) Print out my triangle number of sides and print out my triangle check angles()

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

design a simple disciplinary and grievance procedure.

Answered: 1 week ago