Answer:
numbers = 1:1:100;
for num=numbers
remainder3 = rem(num,3);
remainder5 = rem(num,5);
if remainder3==0
disp("Yee")
else
if remainder3 == 0 && remainder5 == 0
disp ("Yee-Haw")
else
if remainder5==0
disp("Haw")
else
disp("Not a multiple of 5 or 4")
end
end
end
end
Explanation:
- Initialize the numbers variable from 1 to 100.
- Loop through the all the numbers and find their remainders.
- Check if a number is multiple of 5, 3 or both and display the message accordingly.
Answer:
TTL
Explanation:
TTL means time -to- live field is a counter that is designed to keep packets from circulating indefinitely in the network case forwarding tables accidentally create cycles. An IP datagram is typically initialized with a TTL of 60 or 64 and the TTL is decremented by one each time it enters a router. If the TTL reaches zero, the router will discard the packet. It is one of the components of the IP datagram
Answer:
Altitude of the town(h1) = 1,196.8 m
Explanation:
Given:
Height of barometer(h) = 65 cm Hg = 0.65
Standard atmospheric pressure = 76 cm Hg = 0.76
Density of mercury(Pm) = 13,600 kg/m³
Density of air (Pa) = 1.25 kg/m³
Find:
Altitude of the town(h1)
Computation:
Pressure due column = Δp mercury column
(Pa)(h1) = (Pm)(h)
(1.25)(h1) = (13,600)(0.76-0.65)
(1.25)(h1) = 1,496
Altitude of the town(h1) = 1,196.8 m