It will be more like what you will receive in a programming shop. By that I mean
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 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
Discrete and Combinatorial Mathematics An Applied Introduction
ISBN: 978-0201726343
5th edition
Authors: Ralph P. Grimaldi