Question: I need help with this Java problem, please help, thank you! CrimeSimulator https://cs1331.gitlab.io/fall2018/hw4/CrimeSimulator.java The only class you can import is Randon. Please make sure the
I need help with this Java problem, please help, thank you!








CrimeSimulator https://cs1331.gitlab.io/fall2018/hw4/CrimeSimulator.java
The only class you can import is Randon. Please make sure the code compiles and runs correctly. Thanks!
Problem Description Write five classes, Al, RandomAl, RogueAl, DoctorCS, and Coordinates to help our hero pull off his perilous plan. The Al class and by extension, its subclasses RandomAl and RogueAl), have some important information we need in order to get revenge on our sworn enemy, including the location of Dr. Chipotle's secret lair. Once you get this information, you can change the cannon to attack Dr. Chipotle's lair instead of Doctor CS's HQ. However, Dr. Chipotle anticipated the counterattack and has installed a security measure into his cannons: a self-destruct sequence virus. Should the virus activate, any Al trying to stop the cannon will be destroyed, and the cannon will fire anyways at its original target (and Georgia Tech gets guac'ed). If it is possible without triggering the self destruct, you should change the cannon target to Dr. Chipotle's lair. If it is not possible, then Dr. Chipotle will have succeeded in his plan to destroy Georgia Tech TL:DR(Too Long: Didn't Read) Dr. Chipotle is trying to destroy Georgia Tech, and you have to make some classes that use the features of object-oriented programming to stop him. Solution Description Complete the Al, RandomAl, RogueAl, DoctorCS, and Coordinates classes following the instructions below. Note: When creating the specified getter and setter methods for each class, use the naming convention taught in class, e.g. getFirewallProtection0 and setSecretldentity0 For all of the classes you write, Don't add any unneeded fields. Don't forget to answer the Analysis questions. Coordinates.java This class should be concrete. Fields This class has the following private fields, and associated getter methods: final double latitude. This constant double represents the latitude in a set of coordinates. final double longitude. This constant double represents the longitude in a set of coordinates. Constructor This class has the following constructor: public Coordinates (double latitude, double longitude). This constructor takes in two doubles that should be assigned to latitude and longitude respectively Problem Description Write five classes, Al, RandomAl, RogueAl, DoctorCS, and Coordinates to help our hero pull off his perilous plan. The Al class and by extension, its subclasses RandomAl and RogueAl), have some important information we need in order to get revenge on our sworn enemy, including the location of Dr. Chipotle's secret lair. Once you get this information, you can change the cannon to attack Dr. Chipotle's lair instead of Doctor CS's HQ. However, Dr. Chipotle anticipated the counterattack and has installed a security measure into his cannons: a self-destruct sequence virus. Should the virus activate, any Al trying to stop the cannon will be destroyed, and the cannon will fire anyways at its original target (and Georgia Tech gets guac'ed). If it is possible without triggering the self destruct, you should change the cannon target to Dr. Chipotle's lair. If it is not possible, then Dr. Chipotle will have succeeded in his plan to destroy Georgia Tech TL:DR(Too Long: Didn't Read) Dr. Chipotle is trying to destroy Georgia Tech, and you have to make some classes that use the features of object-oriented programming to stop him. Solution Description Complete the Al, RandomAl, RogueAl, DoctorCS, and Coordinates classes following the instructions below. Note: When creating the specified getter and setter methods for each class, use the naming convention taught in class, e.g. getFirewallProtection0 and setSecretldentity0 For all of the classes you write, Don't add any unneeded fields. Don't forget to answer the Analysis questions. Coordinates.java This class should be concrete. Fields This class has the following private fields, and associated getter methods: final double latitude. This constant double represents the latitude in a set of coordinates. final double longitude. This constant double represents the longitude in a set of coordinates. Constructor This class has the following constructor: public Coordinates (double latitude, double longitude). This constructor takes in two doubles that should be assigned to latitude and longitude respectively
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
