Assignment 5 will be way different. It will be more like what you will receive in a
Fantastic news! We've Found the answer you've been seeking!
Question:
Assignment 5 will be way different. 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. P.S. part of your grade will include: Did you add in the required files? Did you rename your project? does your linear searches work? Did you put your code in the correct modules? did you change modules that you weren't supposed to? 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
- HINT: 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 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
- Don't forget to:
- rename the "starter code"
- add the validator file so you can get any information you need
- to add your Heading file and call it at the beginning of main
- a separate program to by module FillTheArray()
Related Book For
Statistics The Art and Science of Learning from Data
ISBN: 978-0321755940
3rd edition
Authors: Alan Agresti, Christine A. Franklin
Posted Date: