subject

Requirements - c++ programcreate data filesyou need to manually create at least four text files with random integer values. you don’t need large number of values, which makes testing easier. for example, you can create a file with values: 1 2 3 4 5 6 7 8 9. save it, and make 3 copies. in each copy put a single value of 0: one towards the beginning of file, one around the middle of file, and one towards the end of file. rename the 3 copies with name such as “early. txt”, “middle. txt”, “end. txt”. keep the original one without a the following is the flow of the program -- provide comments for all tasks 1 - 41. read values from filesthe program should, for each file, read the file and put the values into an array at the start of program.2. simple searchimplement a search algorithm for your program that searches for a target value in your four data files. when implemented, the program should first ask for target value and validate user input, then output whether target value is found for each file. use a binary searchexample outputwhat is target value: 0num. txt: target value not foundearly. txt: target value foundmid. txt: target value foundend. txt: target value found3. sortingthere are a lot of sorting algorithms; find a basic one and implement it in your program and cite the sources. when implemented, the program should, for each file, ask user for the output file name, then use the algorithms to sort the values, and finally output the sorted values to the output files. don’t forget to print the sorted values in each file onto the screen as well.4. binary searchfind a basic algorithm for binary search. implement it in the program that searches for target value in your sorted data files from task 3. the operation should be fairly similar to the simple search.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 05:20
Which operating system is a version of linux?
Answers: 1
question
Computers and Technology, 23.06.2019 22:20
Read “suburban homes construction project” at the end of chapters 8 and 9 (in the textbook) and then develop a wbs (work breakdown structure) in microsoft excel or in microsoft word (using tables)
Answers: 1
question
Computers and Technology, 24.06.2019 09:00
Technician a says that a new replacement part is always good. technician b says that sometimes recent repair work will be the cause of a complaint. who is correct? a. both technicians a and b b. technician a c. technician b d. neither technician a nor b
Answers: 3
question
Computers and Technology, 24.06.2019 12:50
When is it most apprpriate for a development team to change the definition of done
Answers: 1
You know the right answer?
Requirements - c++ programcreate data filesyou need to manually create at least four text files with...
Questions
Questions on the website: 13722361