Answer:
The specific weight of unknown liquid is found to be 15 KN/m³
Explanation:
The total pressure in tank is measured to be 65 KPa in the tank. But, the total pressure will be equal to the sum of pressures due to both oil and unknown liquid.
Total Pressure = Pressure of oil + Pressure of unknown liquid
65 KPa = (Specific Weight of oil)(depth of oil) + (Specific Weight of unknown liquid)(depth of unknown liquid)
65 KN/m² = (8.5 KN/m³)(5 m) + (Specific Weight of Unknown Liquid)(1.5 m)
(Specific Weight of Unknown Liquid)(1.5 m) = 65 KN/m² - 42.5 KN/m²
(Specific Weight of Unknown Liquid) = (22.5 KN/m²)/1.5 m
<u>Specific Weight of Unknown Liquid = 15 KN/m³</u>
Answer:
insert (array[] , value , currentsize , maxsize )
{
if maxsize <=currentsize
{
return -1
}
index = currentsize-1
while (i>=0 && array[index] > value)
{
array[index+1]=array[index]
i=i-1
}
array[i+1]=value
return 0
}
Explanation:
1: Check if array is already full, if it's full then no component may be inserted.
2: if array isn't full:
- Check parts of the array ranging from last position of range towards initial range and determine position of that initial range that is smaller than the worth to be inserted.
- Right shift every component of the array once ranging from last position up to the position larger than the position at that smaller range was known.
- assign new worth to the position that is next to the known position of initial smaller component.