Write a program named averages that includes a method that


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.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Write a program named averages that includes a method that
Reference No:- TGS01661925

Now Priced at $20 (50% Discount)

Recommended (93%)

Rated (4.5/5)