Answer:
import random
decisions = int(input("How many decisions: "))
for i in range(decisions):
number = random.randint(0, 1)
if number == 0:
print("heads")
else:
print("tails")
Explanation:
*The code is in Python.
import the random to be able to generate random numbers
Ask the user to enter the number of decisions
Create a for loop that iterates number of decisions times. For each round; generate a number between 0 and 1 using the randint() method. Check the number. If it is equal to 0, print "heads". Otherwise, print "tails"
<span>Boolean expressions can be combined by using a logical operator to create compound expressions. A boolean expression is an expression that takes into account and evaluates specific data, which is in the form of true and/or false. A compound expression is merely a statement of expressions.</span>
The car owner acquired his car because the car dealer offers him a financing credit services. It is part of the contract that the car owner should pay in monthly basis. It is a fact and part of the contract also that once the car owner failed to pay 2 months of his contribution, the car dealer will get his car back.
Answer:
JPG / JPEG best choice and work well on websites
Explanation:
JPEGs contains millions of colors, so this type of file is ideal for photographs.
Best choice for posting on social media channels
Answer:
- <em>Their country can support </em><u><em> 128 </em></u><em>unique license plates</em>
Explanation:
Since there is space for<em> 7 digits </em>on each <em>license plate</em>, the first plate starts at <em>0000000 </em>(seven 0).
<em>Binary numbers</em> contain only the digits 0 and 1.
Thus, there are only two possibilities for each digit.
Using the multiplication counting principle, the number of total different binary numbers, with seven digits is 2 multiplied seven times:
- 2 × 2 × 2 × 2 × 2 × 2 × 2 = 2⁷ = 128 ← answer