List Processing with Arrays, computer science homework help
List Processing with Arrays, computer science homework help
List Processing with Arrays
Follow Program Guidelines!
Write a C++ program that has the following functions:
readArray – gets array input of integers from an input file (no more than 25 elements) printArray
sortArray – choose one of the three ascending order sorting functions (Selection, Bubble, Insertion)
seqOrderedSearch – performs a sequential search on a ordered array, for a value v input by the user. Reports either that the value v was not found OR that value v was found at index I in the array.
addInOrder – enters a new user-designated value v into a sorted array so the array remains sorted. NOTE: It is NOT permitted to enter v at the end of the array and then call a sorting function! The value v must be inserted where it belongs (and other values moved to make room for it).
deleteValue – removes a designated value from the sorted array
Note that the add and delete functions change the number of elements in the array.
The function main calls readArray
printArray
sortArray
printArray
seqOrderedSearch – called in a sentinel-controlled loop so the user can search for
several values, until the user enters -999 addInOrder
printArray deleteValue printArray
"You need a similar assignment done from scratch? Our qualified writers will help you with a guaranteed AI-free & plagiarism-free A+ quality paper, Confidentiality, Timely delivery & Livechat/phone Support.
Discount Code: CIPD30
Click ORDER NOW..


