33 You are assigned to fix up a java program with an array d
     33 You are assigned to fix up a java program with an array defined as: double taxRate unknown number of pre-initialized values in severl lines of code The initialized values are in large number of lines, you need to know the array element size and You want to replace a new rate to the old rate in the last element of the array, write down the code. You want to replace the tenth position of the old rate with a new rate value of 7.25%, write down the code. number of lines, you need to know the array element size and assign it to variable named: count. Write down the code. ANS(O) ANS (2) ANS (3) ANS (I): ANS (2) ANS (3): 34 Write the code that will inherit a super class:NYS dpt Template for a derived class: Dpt Taxation ANS (1) In the newly derived class: Dpt taxation, and you found that it needs extra methods, can you expand it with additional methods for the new class? ANS (2) can you add a new method to describe the unknown organ? ANS (2) ANS (I) ANS (2): cirele Yes or No Write the code that will implement an interface: Common animal, organ for a new found species class name: New species. ANS () 35 In the new class: New_ species_ I, and you found that it has a very different organ which is not listed in the interface, can you add a new method to describe the unknown organ? ANS (2) ANS (I): ANS (2): circle Yes or No  
  
  Solution
33. Ans 1. count = taxRates.length; //Will assign the size of the array to variable count.
Ans 2. taxRates[count-1] = newRate; //Wil assign the newRate to the last element in the array.
Ans 3. taxRates[9] = 7.25; //Will assign the newRate of 7.25 to the 10th position in the array.
34.
Ans 1. class Dpt_Taxation extends NYS_dpt_Template {} //Will inherit the super class to the subclass Dpt_Taxation.
Ans 2. Yes.
35. Ans 1. public interface Common_animal_organ {} //Will declare an interface.
public class New_species_1 implements Common_animal_organ {} //Will implement the interface.
Ans 2. Yes.

