Question: (8 pts) Write a Java function based on INDUCTION to determine how many of the numbers in an array, A, have a value >= 100.

 (8 pts) Write a Java function based on INDUCTION to determine

(8 pts) Write a Java function based on INDUCTION to determine how many of the numbers in an array, A, have a value >= 100. Assume array, A, has n elements in it. Model your function after the example I did in class. This MUST result in a recursive (not iterative) algorithm. DO NOT USE GLOBAL VARIABLES To assist you, I have started the function below: int GE100 (int[] A, int n) { // n is the number of items in the array, A, specifically A[O] to A[n-1). // You complete this function

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!