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:
Do heavier cars really use more gasoline? Suppose a car is chosen at random. Let x be the weight of the car (in hundreds of pounds), and let y be the miles per gallon (mpg)
Explanation:
Answer:
The option that is best described as a way engineers can test and investigate how things should be under certain circumstances is;
Explanation:
Modeling is a tool an engineer can use for the physical representation of a system that will facilitate the definition, testing and analysis, communication, data generation, data verification and data validation of given concepts
Models also aid in setting specifications, supporting designs, and verification of a given system
Therefore, with modeling engineers can investigate the behavior of systems under given environmental conditions.
Answer:
Explanation:
a. Cast iron or Aluminium alloy are typically used. Aluminium is much lighter in weight and it can transfer heat better to the coolant. While Cast Iron is typically stronger and is thus still used by the manufacturers.
b. Copper can be used as a condensing heat exchanger for hot steam due to its optimal thermal properties and its ability to resist corrosion.
c. high-speed steel are perfect for producing drill bits because of its hardness and resistance to heat to an extent. Drill bits tend to produce heat as a result of the friction between it and the material to be drilled.
d. lead can be used as a container for strong acids because of its anti-corrosive properties
e.zinc and copper can be used as fuel in pyrotechnics mainly due to the fact that burn with refreshing colours. Aluminium can also be used.
f. Platinum is the metal that best suits this purpose because of its high melting point and resistivity to oxidation.