2.3Write a Function that takes an initial investment amount a final investment amount and a yearly growth rate (e.g. 0.08 for 8%) and returns the number of years it will take for the initial investment to grow to the value of the final investment. Rewrite the previous program to use this function. 2.4Write the Function from the previous question as a Sub with an additional parameter: the label to display the result on. Rewrite the previous program to use this Sub.2.6Why are some events handled on the client side and some on the server side? INVESTMENT CALCULATOR 1.0Create a page with three text boxes one for an initial investment one for a final investment amount and one for a percentage yearly growth rate all properly labeled. When the user fills in all three boxes and clicks a button the number of years it takes to reach that final investment amount will be displayed. Make use of the Sub you wrote in an earlier question.BOOKSTORE 1.0You are creating the home page for an online bookseller. In this first version we are allowing the user to select a genre.Using checkboxes and a submission button allow the user to select from one or more of the following genres: Mystery Romance Action History Cooking Reference. When the submit button is clicked show the same page with the choices listed explicitly stating if no choice has been made. That is:You have selected the following genres: Mystery History.Or:You have not selected a genre.