Using Python3 Develop New Class Representing Triangle Defined Three Vertices B C Next Deve Q37115956

Using Python3

Develop a new class representing a triangle defined by threevertices a, b, and c. Next develop a function that returns True ifany of the vertices of the triangle are contained within thecircle. Test the code with the two scenarios provided in file1.txtand file2.txt (and also described below). The program should promptthe user to enter the appropriate file name and if file1.txt isinput, the program should output True (i.e., result for Scenario 1)or if file2.txt is input, the program should output False (i.e.,result for Scenario 2).

Scenario 1(file1.txt):

Circle: center (150, 100) and radius of 75

Point: center (200,100)

Rectangle: bottom left corner (0,0),

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.