Create a class named mydrone to represent drones. the required data fields are number of rotors, velocity, x coordinate location, y coordinate location, and a string for color. use a static class variable for color. you will need to provide the class method implementation for the properties and a method gettimetohome() for computing the number of seconds it will take each drone to fly home from its given position. this will require two calculations. first, you'll need to determine how far from home the drone is. this is done with the below formula:

Solved
Show answers

Ask an AI advisor a question