Write a program that stores numbers from a user defined range in an array of size 200

Your program should

  • Call a function asking the user for both the min value and the max value of the numbers (note max value in the file I'm giving you is 1000). Make sure your min is less than your max!
  • Call a function to fill the array from a file called numbers.txt until you have filled in the 200 numbers from that range
  • Ask the user for a number in the required range
  • Call a function that:
    • The function accepts 3 arguments - the array, the size of the array and the user's number to search the array
    • It should then print the location (index) of the users number or not found if it is not in the array
  • Next print a menu asking:
    • Print Odds - if this is selected print all the odd numbers
    • Print Evens - if this is selected print all the even numbers
    • Print Lower - if this is selected print all the numbers less than the user's number
    • Print Higher -if this is selected print all the numbers greater than the user's number
    • Quit
  • And then perform the requested action. Note the green letters are the expected input.

Note: You will need many functions. Make sure your location function matches the description above, the others can be as you design them

You will find attached an executable to run showing the program output, and a numbers.txt to use with your program. The executable must be in the same folder as the numbers.txt file to work

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.