Try not to spend more than 40 minutes on this problem! Creat…
Try not to spend more than 40 minutes on this problem! Create three classes 1)Criminal is an abstract class2)Thief is a class that inherits from Criminal3) Killer is a class that inherits from Criminal You decide which variables and methods should be static or instance unless it is explicitly stated. _____________________________________ Criminal one variable nameOfPrisoner //You decide whether it is instance or static one method displaySentence( ); // method should be abstract_________________________________________Thief one variable numberOfTheives //You decide whether it is instance or static one method displaySentence() { System.out.print (“2 months in jail”); }___________________________________________Killer one instance variable numberOfPeopleKilled one method displaySentence( ) { System.out.println(“two years in jail”); } In the main method you will create an array of type criminal that can hold two objects and populate it according to the following: The first element of the array is an object of type Thief. His name is Jim.Increment numberOfThieves variable The second element of the array is an object of type killer. His name is Jack and he killed 3 people Run the through array using a for loop and display the following for each person where appropriate:1) the the name of each criminal,2) displaySentence method to display each person’s sentence3) number of people that were killed if the person is a killer.4) At the end of program display the numberOfThieves
Read DetailsWhich lines cause a compile error? public class Vehicle {…
Which lines cause a compile error? public class Vehicle { protected String name; private int ID; public setID(int pID) {…} } public class Car extends Vehicle { private int miles; public Car() { 1 miles = 145; 2 setID(99); 3 ID = 47; 4 name = “Honda”; } }
Read DetailsSuppose that a channel obeys the concerted allosteric model…
Suppose that a channel obeys the concerted allosteric model (see below). The binding of ligand to the R state (the open form) is 20 times as tight as that to the T state (the closed form). In the absence of ligand, the ratio of closed to open channels is 105. If the channel is a tetramer, what is the fraction of open channels when 1, 2, 3, and 4 ligands are bound? The ratio of closed to open channels is 105 when no ligands are bound. The ratio of closed to open channels is [blank1] when one ligand is bound. The fraction of open channels is [blank2]. The ratio of closed to open channels is [blank3] when two ligands are bound. The fraction of open channels is [blank4]. The ratio of closed to open channels is [blank5] when three ligands are bound. The fraction of open channels is [blank6]. The ratio of closed to open channels is [blank7] when four ligands are bound. The fraction of open channels is [blank8].
Read Details