Answer:
#!/bin/bash
function number_div( ) {
for i in {0. .100};
do
if (( $i % 3 == 0 ))
then
echo $i
elif (( $i % 5 == 0 ))
then
echo $i
else
echo "Number not divisible by 3 and 5"
fi;
done
}
number_div( )
Explanation:
The bash script is saved as "HW4p2.sh" and executed as "./HW4p2.sh". This code would print all and only numbers divisible by 3 or 5.
Answer:
Confidence. Norm
Explanation:
Confidence.Norm is an Excel function that uses a normal distribution to calculate the confidence value that can be used to calculate the confidence interval for a population mean,for a supplied probability and sample size. It is assumed that the standard deviation of the population is known.
So Confidence.Norm is the right formula to use here as the standard deviation has been given.
True my friend, it's by the millions