1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
inna [77]
3 years ago
13

Given a sorted list of integers, output the middle integer. Assume the number of integers is always odd. Ex: If the input is: 2

3 4 8 11 the output is: 4 The maximum number of inputs for any test case should not exceed 9. If exceeded, output "Too many inputs". Hint: First read the data into a list. Then, based on the list's size, find the middle item.
In Python please
Computers and Technology
1 answer:
ser-zykov [4K]3 years ago
8 0

Answer:

....................................

Explanation:

You might be interested in
_______ is the command for opening a spreadsheet object in a separate spreadsheet window. A. Edit > Edit Data B. Worksheet &g
marishachu [46]
I believe the correct answer would be option D. Worksheet Object > Open is the command for opening a spreadsheet object in a separate spreadsheet window. In Microsoft excel, you can simultaneously open two worksheets so you can observe them both. 
7 0
3 years ago
Read 2 more answers
Please help explain this calculator code.
goblinko [34]

Answer:

i dont know ask the calc to do it. hehe

Explanation:

7 0
3 years ago
Pls help me pls I’m struggling
evablogger [386]

Answer:Turn Right () Degrees (block)

The turn right () degrees block is a Motion block and a stack block. The block turns its sprite's direction the specified amount of degrees clockwise.

6 0
3 years ago
Write a function insert that takes an array of integers in ascending order, the number of integers currently in the array, the t
Andrei [34K]

Answer:

The code is written in MATLAB

function insert(array,integer,capacity,newInt)

if integer == capacity %if the array is full, the function returns the original array

result = array;

else

if newInt < array(1) %If the new integer is less than the first element, it copies the new integer as the new first element

array = [newInt array];

elseif newInt > array(end) %If the integer is greater than the last element, it copies the new integer as the new last element

array = [array newInt];

else %If the new integer is inside the array, then it checks its new place

for i = 1:length(array)-1

if array(i+1) > newInt % once the place of the new integer is found, the rest of the array is saved in a dummy array

dummy = array(i+1:end);

array(i+1) = newInt;

array(i+2:end) = '';%the rest of the array is deleted

array = [array dummy]; %concatanate the dummy array with the newInteger inserted array

break

end

end

end

end

fprintf('The inserted integer is %g\n', newInt);

fprintf('The new array is \n',array);

disp(array)

3 0
3 years ago
The question is provided in the image below.
Vladimir [108]

Answer: b

Explanation:

3 0
2 years ago
Other questions:
  • Jackson is teaching the decimal number system. He wants his students to know how to expand numbers by powers of 10. Which is the
    13·2 answers
  • Which of the following are screen objects used to maintain, view, and print data from a database
    9·1 answer
  • Can you shoot video on the Olympus E-410?
    12·2 answers
  • Freeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee points
    14·2 answers
  • Write a program that creates a two-dimensional array initialized with test data. Use any data type you wish. Declare a two-dimen
    9·1 answer
  • WHAT ACTIONS CAUSE SPAM ON LINKEDIN?
    5·1 answer
  • MSWord is a popular___________ program.​
    7·2 answers
  • How to run angular project from github.
    7·1 answer
  • Part of the operating system core is responsible for controlling security, managing the file system, and providing a platform fo
    6·1 answer
  • Levi wants to run 5 commands sequentially, but does not want to create a shell script. He knows that each command is going to ta
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!