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, 21.06.2019 22:00
Determine which of the four levels of measurement (nominal, ordinal, interval, ratio) is most appropriate for the data below. internet speed levels of "fast comma " "medium comma " and "slow" choose the correct answer below. a. the ordinal level of measurement is most appropriate because the data can be ordered comma but differences left parenthesis obtained by subtraction right parenthesis cannot be found or are meaningless. nothing nothing nothing nothing nothing b. the interval level of measurement is most appropriate because the data can be ordered comma differences left parenthesis obtained by subtraction right parenthesis can be found and are meaningful comma and there is no natural starting point. c. the nominal level of measurement is most appropriate because the data cannot be ordered. nothing d. the ratio level of measurement is most appropriate because the data can be ordered comma differences left parenthesis obtained by subtraction right parenthesis can be found and are meaningful comma and there is a natural starting point.
Answers: 2
question
Computers and Technology, 22.06.2019 11:00
The editing of digital photos us about the same level of difficulty as editing an analog photo
Answers: 2
question
Computers and Technology, 23.06.2019 01:50
Free points just awnser this. what should i watch on netflix
Answers: 2
question
Computers and Technology, 23.06.2019 06:30
Who can provide you with a new password when you have forgotten your old one? your provide you with a new password in case you forget your old one.
Answers: 3
You know the right answer?
Requirements - c++ programcreate data filesyou need to manually create at least four text files with...
Questions
question
Mathematics, 05.11.2020 06:10
question
Chemistry, 05.11.2020 06:10
question
Mathematics, 05.11.2020 06:10
question
Mathematics, 05.11.2020 06:10
Questions on the website: 13722367