Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.

Get a Professional Answer

Via email, text message, or notification as you wait on our site. Ask follow up questions if you need to.

100% Satisfaction Guarantee

Rate the answer you receive.

Ask LogicPro Your Own Question

LogicPro, Engineer

Category: Homework

Satisfied Customers: 12504

Experience: Expert in Java C++ C C# VB Javascript Design SQL HTML

29751445

Type Your Homework Question Here...

LogicPro is online now

Write the Java source code necessary to build a solution

Customer Question

Write the Java source code necessary to build a solution for the problem below: Your new cell phone has an almost infinite ability to store phone numbers. You decide to store them in a sorted array. Since you are the newly hired recruiter for Smart People's University, you must store all of your contacts in this array. You notice that the city from which you recruit stores the phone numbers by neighborhood. Storing them by neighborhood will allow you to only view the phone numbers of the students in the area that you are currently visiting. Re-sorting the numbers seems to take a rather long time. Last week you saw a program on the Discovery Channel about the many ways that computers can sort things, so you decide to try the newly learned "Bubble Sort" algorithm. But, you decide to try this method out before you implement it on your new smart phone. To do this, create an array of 5000 randomly generated seven digit integers. To ensure that you always get a 7 digit number, multiply the number returned by the random number generator by 9,000,000. Then, add 1,000,000 to this number (that way you will always have a number with seven digits). Use the Bubble sort algorithm to sort the elements of the array. As you did in Assignment 8.1, analyze the efficiency of the program. Specify the best and worst case time needed to sort the elements using Bubble sort.