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 14:00
What is html ? give a small description about html
Answers: 2
question
Computers and Technology, 23.06.2019 20:00
Match the file formats with the types of multimedia they can store
Answers: 2
question
Computers and Technology, 25.06.2019 05:20
6. write a user-defined matlab function for the following math function: r() = 4cos(4sin ) the input to the function is  (in radians) and the output is r. write the function such that  can be a vector. a) use the function to calculate r(/6) and r(5/6). b) use the function to plot (polar plot) r() for 0 ≤  ≤ 2. hint: use “ polar” and/or for “polar plot in matlab." include the title “'r(\theta)=4cos(4sin(\theta))”
Answers: 1
question
Computers and Technology, 25.06.2019 11:00
In command prompt, whats a command that will list only .ini files in c: \windows\system32 directory?
Answers: 1
You know the right answer?
Requirements - c++ programcreate data filesyou need to manually create at least four text files with...
Questions
question
Mathematics, 29.05.2021 01:00
question
Health, 29.05.2021 01:00
question
Mathematics, 29.05.2021 01:00
question
English, 29.05.2021 01:00
question
Mathematics, 29.05.2021 01:00
Questions on the website: 13722361