Java
1. Create a 1D array of 4096 Unique random integer numbers of 1 to 5 digits. Of those numbers give me the following information:
- Mean , Mode, Median, Range.
- Five times, ask the user for a number within the range (from above) and record the time to find the number in the range. (Loop count)
2. Using a any sort algorithm, build sorted 2D array of random numbers (1 TO 5 digits ) with the x direction Unique numbers ant 4096 in size. The y or z direction recording the Mode for each number when random() produces a duplicate. (Collision).
-For the first row of the 2D array: Mean, Mode, Median, Range.
-Five times, ask the user for a number within the range (from above) and record the time to find the number. (Loop count)
3. Store data to a file


![80 for (int í = 0; ǐ < array.length; ++İ) { int count = 0; for (int j- 0; j < array.length; ++j) if (array [j]array[i]) ++cou](http://img.homeworklib.com/questions/9b45cc20-70ce-11eb-af3b-873f64affa8a.png?x-oss-process=image/resize,w_560)
![119 120 public static int search(int [] array,int num) 121 122 123 124 125 for(int i 0;i<array.length-1;i++)\ if(array[i]num)](http://img.homeworklib.com/questions/9ba8ef60-70ce-11eb-bcd0-1ba092eda282.png?x-oss-process=image/resize,w_560)
The sample output of the program is given below.. and also the copy of the output will be saved to the file.

Java 1. Create a 1D array of 4096 Unique random integer numbers of 1 to 5...
5.4 Java Create a program that generates SuperLotto lottery numbers. Create a class called SuperLottoPlus.java Create a method called generateSuperLottoNumbers() that returns an array of 6 random SuperLotto lottery numbers. The first 5 numbers must be from the range 1 to 47 The 6th number (the MEGA) must be from 1 to 27. Create a method called printTicket() that takes an integer array as an parameter it will loop through the integer array and print out the data Display the...
I need to create a bit of code for javascript which I can have random numbers generate with a certain amount of digits set by the user. and ask the user how many times they want this to happen. For example The user says they want a number with 4 digits (any number between 0 - 9999) and the user can input if they want to add, subtract, multiply, divide, or make it random 2 random numbers are generated. First...
Create a java program that with an integer array that has ten numbers in it. Ask the user for an integer. Search your array and if found it tell them at what position it was found. If not found tell them the number was not found.
Rules to follow are:Declare an array with 1000 elements of type intThen in a loop generate 1000 random numbers and assign one to each element in the arrayThe random numbers should be between 1 and 50do not use rand or srand, use code is providedThen, prompt the user to enter a number, store this number in a local variable, the number should be safety checked using the GetInteger() functionThen, iterate through the array and determine how many times the user's...
Write a program that can: 1. Insert twenty random numbers into a linked list. The numbers should be within a range (E.g., 1 to 7). The user should be prompted to enter the minimum number and maximum number of the range. Each number should be inserted at the end of the list. Section 7.8 of the textbook covers the random number generator. Examples of how to use the random number generator are in Fig 7.6 and 7.7. Here is a...
Create a CodeBlocks project "HW 9" Write the code to ask the user to enter the size of an array. Then create an integer array of that exact size. Ask the user to enter a maximum value and then write a loop to fill the array with random numbers with value in the range of 1 to the maximum value. For example, if the maximum value is 100, random numbers must have value 1 to 100 inclusive. Input size of...
Write a program that writes a series of random numbers to a file. Each random number should be in the range of 1 through 500 inclusive. 1.Use a file called randoms.txt as a input file and output file a. If you go to open the file and its not there then ask the user to create the file and then quit 2. Ask the user to specify how many random numbers the file will hold. a.Make sure that the...
Generate an array of random numbers in C++ 1)The size of the array is defined by the user 2) The application is to take every odd number and find the mean. Program has to use structured programing and pointers
1. Write a C code that do the following: Generate array of random integer numbers of size 25 Fill the array with random integers ranging from [1-100] Find the maximum number of the array and its location Find the minimum number of the array and its location Search for a number in the array Print the array Flip the array Sort this array Quit the program when the user choose to exit
in java / You will: // 1- create a square 2 dimensional array of random size (less than 11) // 2- fill the array with random integers from 1 to the size limit // 3- print the array // 4- prompt to see if the user wants to do another //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // 1- The square can use the same random value for x and y. Don't allow 0 size arrays. // 2- Maybe a nested set of for loops? to...