Final Practice Problems 0.a) Go over the midterm exam, the midterm practice questions, and your notes and labs. 0.b) Understand assignment 4! 0.c) Prepare your three study-aid and test-taking-aid sheets. Again, 3 sheets of 8.5" x 11" paper, anything you want written on both sides. Assume the Dog class below. 1) Using a for loop, create a LinkedList of 50 Dogs: Spot1 1001 1 5 (name, ownerId, age, trainedLevel) Spot2 1002 2 5 Spot3 1003 3 5 ...... Spot50 1050 50 5 2) Print out the list. 3) Using the Dog set/get methods and an iterator, change the trained level of all dogs less than 20 years old to their current level plus 2 4) Change the trained level of all dogs owned by owners 1010 to 1030 to be the current level minus 1. 5) Remove all dogs who have a trained level > 5 and an ownerId < 30 class Dog { String name ; int ownerId ; int age ; int trainedLevel ; // 1..10 with 10 being follows all commands public Dog() { } public Dog(String inName, int inOwnerId, int inAge, int inTrainedLevel) { name = inName ; ownerId = inOwnerId ; age = inAge ; trainedLevel = inTrainedLevel ; } public void Print() { System.out.println("Dog: " + name + " " + ownerId + " " + age + " trained level = " + trainedLevel) ; } public String getName() { return name;} public int getAge() { return age;} public int getOwnerId() { return ownerId;} public int getTrainedLevel() { return trainedLevel;} public void setName( String newName ) {name = newName;} public void setAge(int newAge) {age = newAge;} public void setTrainedLevel(int newLevel) { trainedLevel = newLevel;} }