subject
Computers and Technology, 28.06.2021 15:30 hamzaha

1. Create a primary array that can hold 100 integers. 2. Use the file 'input_numbers. txt' to populate the primary array in your program. You can obtain this file from github. com. See the Lab Supplement- Using Git for more information. The repository you want to use is located on the server github. com, and the path to the repository is /untamedspud/october2019lab9.
3. Read through the file, inserting each integer into the primary array in ascending order as you read them in. So if you read in 40, your array is 40, Then you read in 10, you should have in your array 10 40, and then you read in 20, your array should be 10 20 40
4. Use a function insert_in_array_ascending( ) to insert each value read in from the file into the primary array. This function is responsible for keeping the array ordered as each individual value is inserted.
5. Write a function print_int_array( ) which takes two parameters, an integer array, which will be our primary array, and a count of the number of elements to be printed. After reading in each number and storing it in the array, call print_int_array( ) to display the array so far.
6. Write an interactive function get_value_from_user( ) which prompts the user for a number that may or may not be found in the primary array. Test the numbers [40 41 42 43 7 8 9 10 54 50]
7. Write a function is_in_array( ) which returns true if a value passed in as a parameter exists in the array, and false otherwise. This function should use a binary search to find the value.
input_numbers. txt
40, 4, 18, 33, 2, 49, 22, 39, 19, 3 17, 54, 57, 48, 5, 21, 27, 9 42, 2, 43
test_numbers. txt
40, 41, 42, 43, 7, 8, 9, 10, 54, 50

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 01:20
What is the full meaning of rfid in computer
Answers: 2
question
Computers and Technology, 23.06.2019 00:00
How do we use the sumif formula (when dealing with different formats) ?
Answers: 1
question
Computers and Technology, 23.06.2019 14:00
Need ! will choose brainliest! discuss the role of abstraction in the history of computer software.
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
Anul 2017 tocmai s-a încheiat, suntem trişti deoarece era număr prim, însă avem şi o veste bună, anul 2018 este produs de două numere prime, 2 şi 1009. dorel, un adevărat colecţionar de numere prime, şi-a pus întrebarea: “câte numere dintr-un interval [a,b] se pot scrie ca produs de două numere prime? “.
Answers: 3
You know the right answer?
1. Create a primary array that can hold 100 integers. 2. Use the file 'input_numbers. txt' to popul...
Questions
question
Mathematics, 20.08.2019 00:30
question
English, 20.08.2019 00:30
question
English, 20.08.2019 00:30
question
Mathematics, 20.08.2019 00:30
Questions on the website: 13722360