Add a class NumericQuestion to the question hierarchy of How To 10.1. If the response and the expected answer differ by no more than 0.01, then accept it as correct.

Complete the following file:

Use the following file:

import java.util.Scanner;

public class QuestionDemo
   public static void main(String[] args)
      Question[] quiz = new Question[2];

      quiz[0] = new Question("Who was the inventor of Java?");
      quiz[0].setAnswer("James Gosling");      

      NumericQuestion question = new NumericQuestion(
         "What is 3 / 4?");
      quiz[1] = question;

      Scanner in = new Scanner(;
      for (Question q : quiz)
         System.out.println("Your answer: ");
         String response = in.nextLine();