Answer: 10 students
Explanation:
Students younger than 10 = 50%
Students that are 10years old = 1/20 = 1/20 × 100 = 5%
Students that are older than 10 but younger than 12 = 1/10= 1/10 × 100 = 10%
Students that are 12 years or older
= 100% - (50% + 5% + 10%)
= 100% - 65%
= 35%
This means that 35% of the students are 12 years or older and we've been given the number as 70.
Let's say the total number of students is x. Therefore,
35% of x = 70
0.35 × x = 70
0.35x = 70
x = 70/0.35
x = 200
The total number of students is 200.
Therefore, the number of students that are 10years will be:
= 1/20 × 200
= 10 students
Therefore, 10 students are 10 years.
Well actually it affects her credit. Home owners would not want to sell a house to someone who doesn't pay bills on time. It shows he/she is unreliable
Answer:
d) 0 1 1 2
The above piece of code prints the Fibonacci series.
Explanation:
def a(n):
if n == 0:
return 0
elif n == 1:
return 1
else:
return a(n-1)+a(n-2)
for i in range(0,4):
print(a(i),end=" ")
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:
B. H1
Explanation:
H1 is the largest header in the hierarchy. H6 is the smallest.