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.
Attachment:- Loop_Assign.doc