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:
1. Location of enemy ground troops - EARTH OBSERVING.
Using earth observing satellite imagery, the military can observe vast expanses of land and in so doing, find the location of enemy ground troops.
2. Routine reconnaissance of an unfamiliar climate - WEATHER
In other to find out more about the climate of an area, a weather satellite can be used to observe the areas and its changing weather patterns.
3. Analyze waterways in an unfamiliar location - NAVIGATION
Using navigation satellites, navigation conduits such as roads and waterways can be observed.
4. Provide warning of an attack - COMMUNICATION.
Communications satellites enable people to communicate over great distances and so can be used by the military to warn of an impending attack.
Answer:
471 days
Explanation:
Capacity of Carvins Cove water reservoir = 3.2 billion gallons i.e. 3.2 x 10˄9 gallons
As,
1 gallon = 0.133 cubic feet (cf)
Therefore,
Capacity of Carvins Cove water reservoir in cf = 3.2 x 10˄9 x 0.133
= 4.28 x 10˄8
Applying Mass balance i.e
Accumulation = Mass In - Mass out (Eq. 01)
Here
Mass In = 0.5 cfs
Mass out = 11 cfs
Putting values in (Eq. 01)
Accumulation = 0.5 - 11
= - 10.5 cfs
Negative accumulation shows that reservoir is depleting i.e. at a rate of 10.5 cubic feet per second.
Converting depletion of reservoir in cubic feet per hour = 10.5 x 3600
= 37,800
Converting depletion of reservoir in cubic feet per day = 37, 800 x 24
= 907,200
i.e. 907,200 cubic feet volume is being depleted in days = 1 day
1 cubic feet volume is being depleted in days = 1/907,200 day
4.28 x 10˄8 cubic feet volume will deplete in days = (4.28 x 10˄8) x 1/907,200
= 471 Days.
Hence in case of continuous drought reservoir will last for 471 days before dry-up.