20 Aug http://deanzacollegecis.jenniferparrish.net/home/c…link fo
http://deanzacollegecis.jenniferparrish.net/home/c…link for activity13.1 & 13,2http://deanzacollegecis.jenniferparrish.net/home/c…link for activity14.1 & 14.2http://deanzacollegecis.jenniferparrish.net/home/c…link for lab7Answer the following review questions from Lesson 13 by either typing directly into the textbox below or by uploading a document with your answers. Please include the question along with your answer to make your responses easy to read. 1. Identify and correct the mistakes in the below program:public abstract class Dog { private String name; private int age; public Dog() { name = ‘No name yet’; age = 0; } public Dog(String name, int age) { this.name = name; this.age = age; } public String getName() { return name; } public int getAge() { return age; } public abstract void printGreeting(); public void setAge(int age) { this.age = age; }public void setName(String name ) { this.name = name;}@Override public String toString() { return ‘Name: ‘ + name + ‘nAge: ‘ + age;}}public class Terrier extends Dog { private boolean isKidFriendly; public Terrier(String name, int age, boolean isKidFriendly) { this.name = name; this.age = age; this.isKidFriendly = isKidFriendly; } public boolean getIsKidFriendly() { return isKidFriendly; }public void setIsKidFriendly(boolean isKidFriendly) { this.isKidFriendly = isKidFriendly;} @Override public String toString() { return ‘Name’ + name + ‘nAge: ‘ + age + ‘nKid-Friendly: ‘ + isKidFriendly; }}2. Define polymorphism.3. What will the following display to the console (don’t run the code until you work it out by hand!)public class Person { String name; public Person(String name) { this.name = name; } public void printGreeting() { System.out.println(‘Hi, my name is, ‘ + name + ‘!’); }}public class Student extends Person { double gpa; public Student(String name, double gpa) { super(name); this.gpa = gpa; } public void printGreeting() { super.printGreeting(); System.out.println(‘My GPA of ‘ + gpa + ‘ is higher than yours!’); }}public class Test { public static void main(String[] args) { Person yan = new Person(‘Yan’); Person leann = new Student(‘Leann’, 4.0); Student anh = new Student(‘Anh’, 3.95); yan.printGreeting(); leann.printGreeting(); anh.printGreeting(); }}Answer the following review questions from Lesson 14 by either typing directly into the textbox below or by uploading a document with your answers. Please include the question along with your answer to make your responses easy to read. 1. What is the difference between an interface and an abstract class?What advantage does an interface offer over an abstract class?2. Write an interface as follows:The interface is named ServiceReminderIt has one method named timeForService that has no parameters and returns a boolean variable.3. Now, update the below class so that is inherits from ServiceReminderNote that the next service date should be 90 days from the last servicepublic abstract class Car { private double gasGauge; private double currMileage; private String color; private String make; private String model; private int daysLastService; public Car(String color, String make, String model, int daysLastService) { this.color = color; this.make = make; this.model = model; gasGauge = 0.0; currMileage = 0.0; this.daysLastService = daysLastService; } @Override public String toString() { return ‘Make: ‘ + make + ‘nModel: ‘ + model + ‘nColor: ‘ + color + ‘nGas Gauge: ‘ + gasGauge; + ‘nCurrent Mileage on this Tank: ‘ + currMileage + ‘nDays Since Last Service: ‘ + daysLastService; }}4. Given the below Tesla class, update the class to inherit from the Comparable interface and also write a compareTo method that orders two Tesla objects according to 1. model, 2. range, and 3. color:public class Tesla { private String model; private int range; private String color; public Tesla(String model, int range, String color) { this.model = model; this.range = range; this.color = color; } @Override public boolean equals(Object o) { if (this == o) { return true; } else if (!(o instanceof Tesla)) { return false; } else { Tesla t = (Tesla) o; return model.equals(t.model) && range == t.range && color.equals(t.color); } }}Need activity 13.1 &13.2 & question about lesson 13 today with 8 hours.
Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteEdu. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.
Do you need help with this question?
Get assignment help from WriteEdu.com Paper Writing Website and forget about your problems.
WriteEdu provides custom & cheap essay writing 100% original, plagiarism free essays, assignments & dissertations.
With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Chat with us today! We are always waiting to answer all your questions.