Question
It will be more like what you will receive in a programming shop. By that I mean that some things are built for you and
It will be more like what you will receive in a programming shop. By that I mean that some things are built for you and others you will need to create or finish. Build a program using what I gave you as a starting point Do not add any modules; just use the ones I provide and add the code necessary to make it run Don’t change any module names or the code in that module which has a comment block at the beginning which says “Finished - Don’t alter!” You are required to add code and/or finish modules with a comment block at the beginning which says “Finish adding Code” The array has 10,000 integer elements and is filled for you by calling the module FillTheArray() The range of number that will fill the array is from 0 to 2500 The array is unsorted and a number may appear from 0 to many, many times Build 2 linear searches 1320 is just an integer value I selected which is between 0 and 2500 The first linear search will check for the existence of the number 1320 The second linear search will see how many of the number 1320 is actually exists in the array Because the function Random() is used to fill the array, the amount of the number 1320 will be different each time. This is why you need to validate your code and not just assume it is working correctly. This means you may need to build a separate program to build your logic on a small array with known values in it and then apply it to the large array I have provided Output for the program will be simple and only states if 1320 exists or not in the array and then if it does, how many of them are there in the array Finish filling out the explanation in the Main() labeled “Array as an agreement comment:”. What I’m asking for here is in this comment you to explain how the array is passed into the module, filled and available in the Main() yet it is not returned by module FillTheArray() Don’t forget to rename the “starter code”
Main module
Main Finish adding Code Boolean bDoesltExist Integer Counter, iHowMany, SIZE, ENTRY Variable with all CAPITAL letters are considered constants SIZE = 10000 ENTRY = 1320 Integer Array iNumArray [SIZE] Array as an agreement comment: FillTheArray(iNumArray, SIZE) End
Step by Step Solution
3.48 Rating (164 Votes )
There are 3 Steps involved in it
Step: 1
Giving a java program for the following question We need to fill the numbers randomly in the array I...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started