Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 Use the arraycopy method in the System class to make a copy of the familyNames array. 2 Compare to see if the copy and

image text in transcribed

1 Use the arraycopy method in the System class to make a copy of the familyNames array. 2 Compare to see if the copy and the original are equal. 3. Sort the first familyNames array. 4. Again compare to see if the 2 arrays are equal. 5. Use the binarySearch method to search for the same name in both arrays. -Because the search is case sensitive make sure to upper case or lower case the family names in the array. -Hint: Easiest to upper or lower case as you are capturing the family names from the keyboard into the array -Example: familyNames[i] = input.nextLine().toLowerCaseQ OR input.nextLine0.toUpperCase() -Also make sure to upper or lower case the family name you are searching for. -In a separate method that receives the 2 arrays, use the enhanced forloop to print their content. SAMPLE OUTPUT: How many famlly members In your Immedlate famlly Including yourself? 3 Enter a famly member's name: Brad Enter a famlly member's name: Estelle Enter a famlly member's name: Brandon The famlyNames array equals the famllyNamesCopy array. The famllyNames array has been sorted. The famlyNames array doesn't equal the famllyNamesCopy array. Which famly name are you looking for? Brandon Found brandon at element 1 In the famllyNames array. famllyNames Array: brad brandon estelle famllyNamesCopy Array: brad estelle brandon

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Database Programming With Visual C# .NET

Authors: Ying Bai

1st Edition

0470467274, 978-0470467275

More Books

Students also viewed these Databases questions

Question

13-4 What are alternative methods for building information systems?

Answered: 1 week ago

Question

How do Excel Pivot Tables handle data from non OLAP databases?

Answered: 1 week ago