Combine the four loop problems into one program with four distinct methods (the data is in the attached document). For this problem you will write methods, two value returning methods and two void methods. You may chose of the 4 distinct loop problems. The methods must include:
- One value-returning method with a parameter
- One value-returning method without a parameter
- One void method with a parameter
- One void method without a parameter
The program must compile and run.
This solution provides guidelines on combining loop problems into one programs using four distinct methods (using both value returning methods or void methods).