import random
heads = 0
tails = 0
i = 0
while i < 1000:
rnd_value = random.randint(1, 2)
if rnd_value == 1:
heads += 1
print("heads")
else:
tails += 1
print("tails")
i += 1
print("Heads appeared {} times and tails appeared {} times".format(heads, tails))
I hope this helps!
Answer:
False
Explanation:
An abstract class is a class declared abstract — it may or may not include abstract techniques. It is not possible to instantiate abstract classes, but they can be sub-classed.
<u></u>
<u>Abstract method declaration</u>
abstract void moveTo(double X, double Y);
Usually the subclass offers solutions for all of the abstract techniques in its parent class when an abstract class is sub-classed. If not, however, the subclass must be declared abstract as well.
<u>Example</u>
public abstract class GraphicObject {
// declaring fields
// declaring non-abstract methods
abstract void draw();
}
<h2>Answer:</h2>
Moving a paragraph with a footnote, The footnote moves along with it. the condition is that you have entered the footnote in the following manner.
Reference → Insert footnote
This way whether the content has been copy/pasted or crop/pasted the footnote moves along.
Answer:
the amount of C required is 190 units of C
Explanation:
the amount of C to cover the necessity of product A is
Ca = A units required * number of C units to manufacture a unit of A
Ca = 30 unit of A * 3 units of C/ unit of A =90 units of C
to produce B the same applies
Cb = B units required * number of C units to manufacture a unit of B
Cb = 25 unit of B * 4 units of C/ unit of B =100 units of C
therefore to cover the necessities of A and also B we will need:
total units of C required = units of C to produce A + units of C to produce B
C = Ca + Cb = 90 units of C + 100 units of C = 190 units of C
C= 190 units of C