1. Write a program named InputMethodDemo2 that eliminates the repetitive code in the InputMethod() in the InputMethodDemo program. Rewrite the program so the InputMethod()contains only two statements:
one = DataEntry("first");
two = DataEntry("second");
2. Write a program named Averages that includes a method that accepts any number of numeric parameters, displays them, and displays their average.
Demonstrate that the method works correctly when passed one, two, or three numbers, or an array of numbers.