|
hey i need a program for this problem
-[FONT='Times New Roman','serif']Create a program that has a searchable array of 100 distinct positive integers between 0 and 1000. Your program should first create the 100 element array and fill it with random numbers. Once [/FONT][FONT='Times New Roman','serif']the[/FONT][FONT='Times New Roman','serif'] array is filled, you need to sort it using either a bubble or selection sort. Finally, you will ask the user to enter a number and the program will search the array to find whether it is contained [/FONT][FONT='Times New Roman','serif']among[/FONT][FONT='Times New Roman','serif'] the array's random numbers. The user will be rewarded with a message saying at which element the number was found, or else that the number was not found. The user will be prompted [/FONT][FONT='Times New Roman','serif']to[/FONT][FONT='Times New Roman','serif'] search for additional numbers if they wish and when the user finishes, the program will output the array in rows of ten numbers each.[/FONT]
[FONT='Times New Roman','serif'][/FONT]
[FONT='Times New Roman','serif']- thanks[/FONT]
|