Write a program that uses 3 command line arguments to search a list of float numbers in a file and prints out the result of whether the number was found or not on the console. Also, it prints the...

I need the answer as soon as possibleWrite a program that uses 3 command line<br>arguments to search a list of float numbers in a<br>file and prints out the result of whether the<br>number was found or not on the console. Also, it<br>prints the array in the reverse order (not sorted<br>but reverse order of how the numbers were<br>read in). The first argument is the name of the<br>input file which has the numbers to be<br>searched, the second is an integer specifying<br>how many numbers are in the input file and the<br>third argument is the float number being<br>searched for. Use dynamic memory allocation<br>for the array and use a function (that returns a<br>boolean value) to do the searching. Also make<br>sure in the beginning of your program, that the<br>program will execute only if exactly three<br>arguments (other than executable name itself)<br>are specified at the command line.<br>

Extracted text: Write a program that uses 3 command line arguments to search a list of float numbers in a file and prints out the result of whether the number was found or not on the console. Also, it prints the array in the reverse order (not sorted but reverse order of how the numbers were read in). The first argument is the name of the input file which has the numbers to be searched, the second is an integer specifying how many numbers are in the input file and the third argument is the float number being searched for. Use dynamic memory allocation for the array and use a function (that returns a boolean value) to do the searching. Also make sure in the beginning of your program, that the program will execute only if exactly three arguments (other than executable name itself) are specified at the command line.

Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here