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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 09:40, cutybrain6054
Sarah is having a hard time finding a template for her advertising business that she may be able to use at a later date and also make it available to her colleagues
Answers: 1
image
Computers and Technology, 22.06.2019 10:00, adam4449
Jackson is teaching the decimal number system. he wants his students to know how to expand numbers by powers of 10. which is the correct order in which digits are assigned values in the decimal number system?
Answers: 1
image
Computers and Technology, 23.06.2019 01:00, Ltik11900
Write the command that can be used to answer the following questions. (hint: try each out on the system to check your results.) a. find all files on the system that have the word test" as part of their filename. b. search the path variable for the pathname to the awk command. c. find all files in the /usr directory and subdirectories that are larger than 50 kilobytes in size. d. find all files in the /usr directory and subdirectories that are less than 70 kilobytes in size. e. find all files in the / directory and subdirectories that are symbolic links. f. find all files in the /var directory and subdirectories that were accessed less than 60 minutes ago. g. find all files in the /var directory and subdirectories that were accessed less than six days ago. h. find all files in the /home directory and subdirectories that are empty. i. find all files in the /etc directory and subdirectories that are owned by the group bin."
Answers: 1
image
Computers and Technology, 23.06.2019 16:00, keyonaemanieevans
Helen is having a meeting with her colleagues in her company. they are working on the goals and objectives for the coming year. they want to ensure that these goals and objectives of the processes involved are properly evaluated. which system can helen and her colleagues apply to evaluate this? helen and her colleagues require a blank to evaluate the goals and objectives.
Answers: 2
You know the right answer?
Requirements - c++ programcreate data filesyou need to manually create at least four text files with...

Questions in other subjects:

Konu
Arts, 16.11.2020 22:30
Konu
Mathematics, 16.11.2020 22:30