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"
<u>Answer:</u>
<em>Newspapers</em>
<u>Explanation:</u>
<em>The process of giving advertisement is one way to promote product. A product become famous only because of advertisement only. </em>
Business people spend lots of money in advertisements so that in turn it would give good returns. <em>It is not necessary that always advertisement has to be given for all the product</em>.
Mostly new products needs mobilization, next during festivals the dress <em>purchase will be heavy so people will get attracted towards it and buy in the shop which advertises, etc.</em>
Technological improvements allow me to have greater access to goods around the world. I can buy instantly and communicate instantly with producers. Technology can also help me to monitor economic trends, both in my country and in my own life. In summary, technology helps to give me more freedom to make economic choices.
On e2020
Answer: Using imread command
Explanation:
For loading images in matlab we can use the imread command. Some example regarding how to use the code is as follows:
A = imread('ball.tif');
Here suppose the image file name is saved as ball and is in tif format. Here the image is stored in an array named A.
We can view the image using
imshow(A);
Answer:
Each variable has a name, a value, and a type. The value might change over time, and that's why its “variable.” Many variables store numbers and strings, like the ones above. Variables can also store other types of data, like lists, dictionaries, and Boolean values
Explanation: