Answered step by step
Verified Expert Solution
Question
1 Approved Answer
IN JAVA CP1 1) Create an array of 100 ints with random #s from O up to 100 2) Create a method public static int
IN JAVA
CP1 1) Create an array of 100 ints with random #s from O up to 100 2) Create a method public static int theRange(int[] n) //where n is the passed array created in main method //theRange calculates the Range of all the values in passed array // Range is biggest value - smallest value //return range 3) Create another method public static int findAll(int[] n, int key) //performs a linear search in array n, totalling how many of key is found //return total of amount of keys foundStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started