Write a menu driven program that will feature five functions.

Closed

Description

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)

Skills: C Programming, C++ Programming

See more: write menu driven program either accepts words meanings, menu driven program simple java, menu driven program test linked list class, menu driven linked list program, linked list program menu driven, menu driven program linked list, java simple menu driven program, creating menu driven program java, creating menu driven program, simple menu driven program java, menu driven program circular linked list, linked list menu driven program, menu driven program python, java menu driven program, menu driven java program

Project ID: #12242787

10 freelancers are bidding on average $42 for this job

$88 USD in 1 day
(50 Reviews)
5.4
$30 USD in 1 day
(26 Reviews)
5.4
$24 USD in 1 day
(19 Reviews)
5.7
$73 USD in 1 day
(36 Reviews)
4.9
shahidost

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 you More

$25 USD in 1 day
(45 Reviews)
5.0
abhijitbuet

Hi, I can do it in 25$ thanks.......................................................................................................................................

$25 USD in 1 day
(13 Reviews)
3.8
$35 USD in 3 days
(3 Reviews)
3.9
$30 USD in 1 day
(18 Reviews)
3.8
$60 USD in 1 day
(1 Review)
3.0
$111 USD in 1 day
(2 Reviews)
1.4
$25 USD in 2 days
(0 Reviews)
0.0
checkerrorcode

Hello, I Am Monalisa and would be pleased to learn more about your project and help you realize it. I have a deep background on C/C++ programmming as I practice it every day for the last 4 years. Thank you for cons More

$30 USD in 1 day
(0 Reviews)
0.0
asadiqbalse

Dear Sir/Madam, We already worked on this and ready to start the development after checking out the project details. We are specialized in web development, web design, mobile app development, Graphics Design, E-comm More

$40 USD in 1 day
(0 Reviews)
0.0