i need solutions on this two questions please LeapYears –

i need solutions on this two questions please ,,LeapYears – Given a year range, output the number of leap years in the year range inclusive. ,,Hint: Reuse parts of your solution to LeapYear. ,,Examples: ,> javac LeapYears.java ,> java LeapYears ,year1: 2008 ,year2: 2012 ,leap years: 2 ,,> java LeapYears ,year1: 1897 ,year2: 1903 ,leap years: 0 ,,> java LeapYears ,year1: 1996 ,year2: 2004 ,leap years: 3 ,,> java LeapYears ,year1: 2003 ,year2: 2003 ,leap years: 0 ,,> java LeapYears ,year1: 1600 ,year2: 2000 ,leap years: 98 ,,Name your class LeapYears and use input prompts and output labels as in the examples above.,,_________________________________________________________________________________,8.10: Quiz ,Use the Question class from Chapter 7 to define a Quiz class . A quiz can be composed of up to 25 questions. Define the add method of the Quiz class to add a question to a quiz. Define the giveQuiz method of the Quiz class to present each question in turn to the user, accept an answer for each one, and keep track of the results. ,,I upload Question class from Chapter 7 here ,Thank you