subject
Engineering, 26.10.2019 00:43 shiny9362

Write a procedure, findminor, that finds the element whose value is closest to zero from the values that are stored in the stack in the previous program. write a main program that calls findminor and prints the values found. also, print the indices at which the values were found, assuming that the first value has the index 0. for example, if the inputs are 3,-1,2,4,8,-4: the expected output of your code is: the target value is -1, and is located at index: 1 in cases where more than one element have the same absolute value, you only have to output one of them.

ansver
Answers: 1

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Determine whether or not it is possible to compress air adiabatically from k to 140 kpa and 400 k. what is the entropy change during this process?
Answers: 3
question
Engineering, 04.07.2019 18:20
Steam enters a converging nozzle at 3.0 mpa and 500°c with a at 1.8 mpa. for a nozzle exit area of 32 cm2, determine the exit velocity, mass flow rate, and exit mach number if the nozzle: negligible velocity, and it exits (a) is isentropic (b) has an efficiency of 94 percent
Answers: 2
question
Engineering, 04.07.2019 18:20
Ahe-xe mixture containing a 0.75 mole fraction of helium is used for cooling electronics in an avionics application. at a temperature of 300 k and atmospheric pressure, calculate the mass fraction of helium and the mass density, molar concentration and molecular weight of the mixture. if the cooling capacity is 10 l, what is the mass of the coolant?
Answers: 3
question
Engineering, 04.07.2019 18:20
A2-m rigid tank initially contains saturated water vapor at 100 kpa. the tank is connected to a supply line through a valve. steam is flowing in the supply line at 600 kpa and 300 c. the valve is opened, and steam is allowed to enter the tank until the pressure in the tank reaches the line pressure, at which point the valve is closed. a thermometer placed in the tank indicates that the temperature at the final state is 200°c. determine (a) the mass of steam that has entered the tank (b) the amount of heat transfer.
Answers: 3
You know the right answer?
Write a procedure, findminor, that finds the element whose value is closest to zero from the values...
Questions
question
Mathematics, 22.11.2020 22:40
question
Computers and Technology, 22.11.2020 22:40
question
Mathematics, 22.11.2020 22:40
question
Geography, 22.11.2020 22:40