Question: Q1: Make Two classes called Student1,Student2 and add the variables name and ID_no to it. Create an object of the class Student and set the

Q1: Make Two classes called "Student1","Student2" and add the variables "name" and "ID_no" to it. Create an object of the class Student and set the values: Student1 : name ; , ID :< last four number of your ID Student2 : student_name ; Tom, and student_ID :25845 Q2: Create a class called "Triangle" and a function to print the area and perimeter of a triangle with sides of 8, 7, and 5.3 units. Then, write a program to print the area and perimeter of the triangle. Q3: Create a class called "Triangle" with a constructor that takes the three sides as parameters, then write a program to print the area and perimeter of a triangle with sides of 10.2, 5.6, and 8.6

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!