Write a menu driven program that will feature five functions.

1) Write void function/subroutine that prompts the user for the name of a file to output as a text file that will hold a vector of the float data type.

A) Have the user specify the number of items that will be stored in the vector.

B) Have the user enter the values for each element in the vector.

C) Write the vector out as a text file. You will want the file format to be as follows: the first data value is the number of elements in the vector, and the remaining data is to be the elements of the vector.

(2) Write void function/subroutine like #1, except in this time, instead of asking the user for the values for each element in the vector, have the program create randomly generated values for the elements using the rand() function. You will still have to ask the user for the number of elements to store in the vector. Write the vector out as a text file. You will want the file format to be as follows: the first data value is the number of elements in the vector, and the remaining data is to be the elements of the vector.

(3) Write a void function/subroutine to prompt the user for the name of a file to input as a text file to read. The first value the subroutine reads in should be the number of elements to store in the vector. All other data read in from the subroutine should be the floating point data in the file to store in the vector.

Output the contents of the vector to the screen.

(4) Write a void function/ subroutine to prompt the user for the name of a file to input as a text file to read in the vector of float data type and another filename for the name of the output file that will be outputting the vector after it has been sorted using either the bubblesort or selection sort algorithm (Five points extra credit if you study how to do recursion and use merge sort! Warning: this is a very challenging endeavor if you take it on).

Load in the data for the vector (make sure the first data value read in is the value stating how many elements are to be in the vector, and remaining data is the elements to be stored in the vector).

Before sorting, ask the user if they would like to sort from smallest value to largest, or to sort from largest value to smallest value.

Sort the vector based on the sorting order the user specifies, and output the sorted vector to the output filename specified by the user.

(5) Write a void function/subroutine to prompt the user for the name of a file to input as a text file to read in the vector of float data type.

Load in the data for the vector (make sure the first data value read in is the value stating how many elements are to be in the vector, and remaining data is the elements to be stored in the vector).

Implementing binary search to find the value (remember, the data file they specify must be sorted or binary search may not always work). Prompt the user to enter the value to find.

Do data validation in all areas of your program as you see fit. I will try to break your programs!

Note: I will give 5 point extra credit if you write your program and subroutines to work with binary data files instead of text files (warning: this is a very challenging endeavor if you take it on)

Tildelt til:

3 freelancere byder i gennemsnit $48 for dette job

Hi, I hope you will be doing well.
I believe on perfect work with 100% satisfaction of my client then payment. I deliver only exceptionally robust and well-designed work as a rule to my client.
I understand youMere

Hello Dear Client,
We have gone through your requirement and would to take this opportunity to work on this project.
Can you send a detailed requirement about your project.
About us
We have been providinMere