Answered You can hire a professional tutor to get the answer.

QUESTION

Using JAVA Two parallel arrays are given: String apples={"HoneyCrisp","DeliciousRed","Gala","McIntosh","GrannySmith"}; double prices={4.50, 3.10,...

Using JAVA

Two parallel arrays are given:

String apples[]={"HoneyCrisp","DeliciousRed","Gala","McIntosh","GrannySmith"};

double prices[]={4.50, 3.10, 2.45, 1.50, 1.20};

make a method that finds the cheapest name of apples, and returns back a String stating what the apple name is and how much it costs. The method should take two arrays as two parameters.

Call this method from main, receive the result, and show the result

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question