Question: Problem 1 . Write a class named point in python which has data on cartesian coordinates ( x , y ) and has methods (
Problem Write a class named point in python which has data on cartesian coordinates xy and has methods to convert convert cartesian coordinates to polar coordinates, to print cartesian coordinate to print polar coordinate of the point to compare two points and has a boolean output to find the distance between two points. Instantiate an object of the point class with assigned data.Problem Write a derived class triangle which is made ofbounded by three lines, and each line is represented by two points start and end Write methods in the hierarchy and use code blocks for the tow methods of triangle findAread and findPerimeter. Write the code in python.Problem Write a multithreading code in python which has airlinesAgent as threads each selling tickets of total tickets. The sellTicket function should have prompts as each ticket sold by an agentuse an agent id and notifying when the quota of selling tickets by each agent is done. Use lock in critical section to output the selling tickets by threads in a sequential manner.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
