Answer:
The algorithm is as follows:
1. Declare Arr1 and Arr2
2. Get Input for Arr1 and Arr2
3. Initialize count to 0
4. For i in Arr2
4.1 For j in Arr1:
4.1.1 If i > j Then
4.1.1.1 count = count + 1
4.2 End j loop
4.3 Print count
4.4 count = 0
4.5 End i loop
5. End
Explanation:
This declares both arrays
1. Declare Arr1 and Arr2
This gets input for both arrays
2. Get Input for Arr1 and Arr2
This initializes count to 0
3. Initialize count to 0
This iterates through Arr2
4. For i in Arr2
This iterates through Arr1 (An inner loop)
4.1 For j in Arr1:
This checks if current element is greater than current element in Arr1
4.1.1 If i > j Then
If yes, count is incremented by 1
4.1.1.1 count = count + 1
This ends the inner loop
4.2 End j loop
Print count and set count to 0
<em>4.3 Print count</em>
<em>4.4 count = 0</em>
End the outer loop
4.5 End i loop
End the algorithm
5. End
Answer:
B.
Explanation:
For a given set of input values, A NAND gate produces exactly the same values as an OR gate with inverted inputs.
The truth table for a NAND gate with 2 inputs is as follows:
0 0 1
0 1 1
1 0 1
1 1 0
The truth table for an OR gate, is as follows:
0 0 0
0 1 1
1 0 1
1 1 1
If we add two extra columns for inverted inputs, the truth table will be this one:
0 0 1 1 1
0 1 1 0 1
1 0 0 1 1
1 1 0 0 0
which is the same as for the NAND gate, not the opposite, so the statement is false.
This means that the right choice is B.
Answer:
2.7g
Explanation:
the mass of a brass axle that has a volume of 0.318 cm is 2.7g.
Answer:
a) -1.46 x 10∧-5, 1.445x 10∧-4, -6.355 x 10∧-4
b) 3.926 x 10∧-4, -2.626 x 10∧-4
c) 6.552 x 10∧-4, 6.5 x 10∧-5
Explanation:
a) -1.46 x 10∧-5, 1.445x 10∧-4, -6.355 x 10∧-4
b) 3.926 x 10∧-4, -2.626 x 10∧-4
c) 6.552 x 10∧-4, 6.5 x 10∧-5
The explanation is shown in the attachment. I hope i have been able to help.
To put out a class D metal fire, you must smother the fire and eliminate the oxygen element in the fire.
<h3>What is a Class D fire?</h3>
A class D fire is a type of fire that cannot be extinguished by water. This is because adding water to it reacts with other elements in the fire intensifying the fire even more.
Smothering in this context involves adding a solution like carbon dioxide (CO2) into the fire, this results in a reduction of oxygen in the atmosphere surrounding the class D fire.
By so doing, smothering the fire eliminates the oxygen element in the fire, thereby extinguishing the fire.
You can learn more about extinguishing fires here https://brainly.in/question/760550
#SPJ1