Question: 2 . Write a program named Lab 1 8 _ 1 B with the following. A recursive method that accepts an array of integers and
Write a program named LabB with the following.
A recursive method that accepts an array of integers and returns the count of all numbers divisible by in the array.
This method should not have a loop inside it
In your main method read an array of numbers from the text file InputBtxt Call the method with the array and then print the array and the method result. Make sure you print a descriptive label with the result.
After you have run and tested your program with the original text file, run it again using InputCBtxt as the input file instead. Make sure it gives you the correct result for both test cases.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
