![subject](/tpl/images/cats/User.png)
Engineering, 23.03.2020 19:24 Kiaraboyd9366
Can you explain what the pseudo-code below is trying to do? array[N] # array of N integers, indexed 0 to N-1; #assume it's populated with (1,4,2,-2,-9,10,2,12,2,-4,-4,-4,-4, 2,6,7] peak = array[0] index = 0 output = [] # array of tuples For x in 1..N-1 if (array[x]*array[x-1) > 0) if peak < 0 and array[x] < peak peak = array[x] index = x if peak >= 0 and array[x] > peak peak = array[x] index = x else output. insert( (index, peak)) peak = array[x] index = x end if end for return output
![ansver](/tpl/images/cats/User.png)
Answers: 2
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Other questions on the subject: Engineering
![image](/tpl/images/cats/User.png)
Engineering, 03.07.2019 15:10, EmilySerna
Heat is added to a piston-cylinder device filled with 2 kg of air to raise its temperature 400 c from an initial temperature of t1 27 cand pressure of pi 1 mpa. the process is isobaric process. find a)-the final pressure p2 b)-the heat transfer to the air.
Answers: 1
![image](/tpl/images/cats/User.png)
![image](/tpl/images/cats/User.png)
Engineering, 04.07.2019 18:10, abdirahmansoloman
Air is to be cooled in the evaporator section of a refrigerator by passing it over a bank of 0.8-cm-outer-diameter and 0.4-m-long tubes inside which the refrigerant is evaporating at -20°c. air approaches the tube bank in the normal direction at 0°c and 1 atm with a mean velocity of 4 m/s. the tubes are arranged in-line with longitudinal and transverse pitches of sl- st 1.5 cm. there are 30 rows in the flow direction with 15 tubes in each row. determine (a) the refrigeration capacity of this system and (b) pressure drop across the tube bank. evaluate the air properties at an assumed mean temperature of -5°c and 1 atm. is this a good assumption?
Answers: 1
You know the right answer?
Can you explain what the pseudo-code below is trying to do? array[N] # array of N integers, indexed...
Questions in other subjects:
![Konu](/tpl/images/cats/informatica.png)
Computers and Technology, 14.11.2020 21:40
![Konu](/tpl/images/cats/User.png)
![Konu](/tpl/images/cats/en.png)
English, 14.11.2020 21:40
![Konu](/tpl/images/cats/biologiya.png)
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/mkx.png)
Arts, 14.11.2020 21:50
![Konu](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 14.11.2020 21:50
![Konu](/tpl/images/cats/fizika.png)
![Konu](/tpl/images/cats/mat.png)
Mathematics, 14.11.2020 21:50
![Konu](/tpl/images/cats/istoriya.png)
History, 14.11.2020 21:50