Answer:
The weather conditions do not suggest a blizzard. It is explained below.
Explanation:
wind_speed=randi([12 56],24,1);
visibility=randi([1 10],24,1)/10;
storm_data=[wind_speed,visibility];
save stormtrack.dat storm_data -ascii
clear
load stormtrack.dat
fprintf('Below is the storm data from the file stormtrack.dat \n');
disp(stormtrack)
wind_speed=stormtrack(:,1);
visibility=stormtrack(:,2);
L=length(wind_speed);
count=0;
i=0;
while count<4 && i<L
i=i+1;
if wind_speed(i)>=30 && visibility(i)<=0.5
count=count+1;
else
count=0;
end
end
if count==4
fprintf('The weather conditions suggest a blizzard.\n')
else
fprintf('The weather conditions do not suggest a blizzard.\n')
end
Results:
Below is the storm data from the file stormtrack.dat
49.0000 0.1000
56.0000 0.4000
44.0000 0.6000
27.0000 0.7000
38.0000 0.5000
16.0000 0.9000
52.0000 0.8000
1 51.0000 1.0000
48.0000 0.6000
23.0000 0.4000
38.0000 0.2000
13.0000 0.7000
31.0000 0.8000
26.0000 0.5000
19.0000 0.1000
20.0000 0.3000
31.0000 0.2000
16.0000 0.3000
38.0000 0.5000
33.0000 0.6000
43.0000 0.5000
43.0000 0.9000
40.0000 0.6000
13.0000 1.0000
The weather conditions do not suggest a blizzard.
Answer: True
Explanation:
An Infinite loop occurs in a computer programming when a sequence of instructions run endlessly without stopping until there is an external intervention, this intervention could be pull or plug. It is also known as endless loop. It occurs due to using of variables that are not properly updated or when there is an error in looping condition.
Answer:
hope it's helpful please like and Follow me
Answer:
Fluids
Explanation:
Fluids has special properties that allow forces and pressure to be distributed evenly within them.
- Fluids are gases and liquids whose intermolecular forces of attraction are generally weak or non-existence.
- Therefore, when pressure is applied to them, it permeates evenly on all parts.
- Their ability to tend to randomness makes liquids and gases very viable for distributing pressure.