Write a program that reads in two floating-point numbers and tests (a) whether they are the same when rounded to two decimal places and (b) whether they differ by less than 0.01. Here are two sample runs.

Enter two floating-point numbers:
2.0
1.99998
They are the same when rounded to two decimal places.
They differ by less than 0.01.

Enter two floating-point numbers:
0.999
0.991
They are different when rounded to two decimal places.
They differ by less than 0.01.

Complete the following file:

### Comparer.java

Use the following file:

NumberChecker.java

```import java.util.Scanner;

/**
This program checks whether two floating-point numbers are almost the same.
*/
public class NumberChecker
{
public static void main(String[] args)
{
Comparer c = new Comparer(2);
Scanner in = new Scanner(System.in);

System.out.println("Enter two floating-point numbers:");
double x1 = in.nextDouble();
double x2 = in.nextDouble();

System.out.print("They are ");
if (c.roundToSame(x1, x2))
System.out.print("the same ");
else
System.out.print("different ");
System.out.println("when rounded to two decimal places.");
System.out.print("They differ by ");
if (c.areClose(x1, x2))
System.out.print("less than ");
else
System.out.print("at least ");
System.out.println("0.01.");
}
}
```