Question: Write a program named Lab 1 8 _ 1 B that writes a recursive method that accepts an array of integers and returns the count

Write a program named Lab18_1B that writes a recursive method that accepts an array of integers and returns the count of all numbers divisible by 3 in the array. IN your main method, read an array of 10 numbers from the text file (Input18_1B.txt). Call the method with the array and then print the array and the method result. After you have run and tested your program with the original text file, run it again using Input18_1CB.txt as the input file instead. Make sure it gives the correct result for both cases.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!