Answer:
a
Step-by-step explanation:
Answer:
(a) 4i times
(b) "i × n" times
Step-by-step explanation:
(a) Given the algorithm segment;
for i := 1 to 4, (Outer loop)
for j := 1 to i (Inner loop)
next j,
next i
The inner loop runs for i times, while the outer loop runs for 4 times.
The total times the inner loop would run when the entire algorithm is run is:
= i × 4
= 4i times
(b) Given the algorithm segment;
for i := 1 to n, (Outer loop)
for j := 1 to i (Inner loop)
next j,
next i
Where n is a set of positive integers.
The inner loop runs for "i" times, while the outer loop runs for "n" times.
The total times the inner loop would run when the entire algorithm is run is:
= i × n
= "i × n" times
Answer:
Pr = 15.71% ≈ 16%
Step-by-step explanation:
Let's begin by listing out the data given unto us, we have:
Length of board = 3 ft, Width of board = 5 ft,
Area of board = Length * Width = 3 * 5 = 15 ft²,
Diameter of each circle (d) = 1 ft; r = d ÷ 2
⇒ r = 1 ÷ 2 = 0.5 ft
Area of each circle = πr² = π * 0.5² = 0.785 ft²
Area of the three circles = 3πr² = 2.356 ft²
Probability = favourable outcome ÷ Total outcome
Probability of the penny falling into the hole = area of the three circles ÷ area of board
Pr = 2.356 ÷ 15 = 0.1571
Converting to percentage, we multiply by 100
Pr = 0.1571 * 100
Pr = 15.71% ≈ 16%
Therefore, the probability of the penny falling into the hole is 15.71% ≈ 16%
There are 4 elements in the set A and 8 elements in set B that is n(A) = 4 and n(B) = 8
<h3>Cardinality of a set</h3>
This is the total number of elements in a set. Given the following sets;
A = {c, d, e, f}
B = {odd numbers greater than 5 and less than 23}
B = {7,9,11,13, 15, 17, 19, 21}
Since there are 4 elements in the set A and 8 elements in set B hence n(A) = 4 and n(B) = 8
Learn more on cardinality of set here: brainly.com/question/23976339
#SPJ1