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, 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, 24.06.2019 13:20
3. ranga ramasesh is the operations manager for a firm that is trying to decide which one of four countries it should research for possible outsourcing providers. the first step is to select a country based on cultural risk factors, which are critical to eventual business success with the provider. ranga has reviewed outsourcing provider directories and found that the four countries in the table that follows have an ample number of providers from which they can choose. to aid in the country selection step, he has enlisted the aid of a cultural expert, john wang, who has provided ratings of the various criteria in the table. the resulting ratings are on a 1 to 10 scale, where 1 is a low risk and 10 is a high risk. john has also determined six criteria weightins: trust, with a weight of 0.3; quality, with 0.2; religious, with 0.1; individualism, with 0.2; time, with 0.1; and uncertainity, with 0.1. using the factor-rating method, which country should ranga select? why? (2 points)
Answers: 3
question
Computers and Technology, 24.06.2019 14:30
In a home that has 120 v service, there is an electric appliance that has a resistance of 12 ohms. how much power will this appliance consume? a. 10 w b. 120 w c 1200 w d. 1440 w
Answers: 1
question
Computers and Technology, 24.06.2019 15:30
During the software planning process, rick, a project manager, finds that his team has made an incorrect estimation of funds. what kind of risk has rick identified? rick has identified a risk.
Answers: 1
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, 31.12.2019 08:31
Questions on the website: 13722360