Answer:
The solution code is written in Python
- def findSmallest(vec, start):
-
- index = start
- smallest = vec[start]
-
- for i in range(start + 1, len(vec)):
- if(smallest > vec[i]):
- smallest = vec[i]
- index = i
-
- return index
Explanation:
Firstly we can define a function findSmallest() that takes two input parameters, a vector, <em>vec</em>, and a starting position, <em>start </em> (Line 1).
Next, create two variables, <em>index</em> and <em>smallest</em>, to hold the current index and current value where the smallest number is found in the vector. Let's initialize them with <em>start</em> position and the value held in the<em> start </em>position (Line 3-4).
Next, create a for-loop to traverse through the next value of the vector after start position and compare it with current <em>smallest </em>number. If current <em>smallest</em> is bigger than any next value in the vector, the <em>smallest </em>variable will be updated with the new found lower value in the vector and the index where the lower value is found will be assigned to variable<em> index</em>.
At the end return index as output.
Answer:Valor singular de descomposición
Explanation:
Answer: Option A: data values are treated as if they occur at the midpoint of a class
Explanation: In computing descriptive statistics from grouped data, data values are treated as if they occur at the midpoint of a class
Answer:
Embedded Computer
<u>Definition</u>
The Computer that are used to perform a specific task are called Embedded Computers. It also contains memory, processors and peripheral devices that are required to perform a dedicated task in a large system.
<u>Explanation</u>:
Thermostat is device that is used to measure and control the temperature of specific device. Temperature control is single task that should be performed by a small computer, This is the only task that is assigned to computer to perform.
This is the reason, We choose a computer that performs only single task. Therefore we choose Embedded Computers.
<em><u>Types of Embedded Computer </u></em>
1. Aurduino
2. Raspberry pi
3. Gizmo
etc.
Answer:
The answer to the given question is option "d".
Explanation:
In C++ programming language we use the (:) colon to perform inheritance in the class. The by default access modifier is used for inheritance that is "private". In the given options the option d is correct and other options are not correct that cab be described as:
- In option, a, b we use the scope resolution operator (::) that is not used for inheritance.
- In option, c we inherit drive class to base class that is not correct.
That's why the answer to this question is option "d".