Answer:
The solution code is written in Python 3.
- import random
-
- count = 0
- flag = False
- guess = int(input("Input your guess (2-12): "))
-
- while(count <=3):
- dice1 = random.randint(1, 7)
- dice2 = random.randint(1, 7)
-
- if((dice1 + dice2) == guess):
- flag = True
-
- count += 1
-
-
- if(flag):
- print("User wins!")
- else:
- print("Computer wins!")
Explanation:
A Random generator is needed for this question and therefore we start by importing Python random class (Line 1)
Next, create one counter variable,<em> count</em>, to ensure there will be only three rolling of the dices (Line 3). We need another variable, <em>flag</em>, to track the status if the two dices equal to the <em>guess</em> number chosen by user (Line 4).
Next, prompt use to input a guess number (Line 5).
Within the while loop, we can use random class method <em>randint() to </em>generate random integer. The arguments 1 and 7 will give one random number ranged from 1 to 6 for <em>dice1</em> and<em> dice2</em>, respectively (Line 8 - 9).
If the total of<em> dice1 + dice2</em> equal to user <em>guess</em>, we turn the<em> flag </em>to <em>True</em>. If not, the <em>flag </em>will remain <em>False</em> after completing entire while loop.
If the <em>flag </em>turned to <em>True</em>, print the message "User Wins!" else print the message ("Computer wins!")
Answer:
I think its option a. and d.
Explanation:
option a. is right I'm sure.
option b. and c. are doubtful for me.
option d. can be true. but unlike a job letter, resumes carry a deeper view of the employee's accomplishments and qualifications.
but I still hold with option a. and b. if it's wrong please do inform, so I can refer.
Your answer would be B. Media that combines text, images, animation, and sound.
You're welcome:)
Answer:
False
Explanation:
IPv4 address are composed of four octets (8 bit numbers), ranging from <em>0.0.0.0 to 255.255.255.255</em>
All those 32 bits, in decimal notation, can form a total of
different addresses.
Being more than 4 billion addresses and ignoring that some addressesare reserved for special uses, even present human population almost doubles that number.
So it is safe to state that IPv4 addresses is <u>not </u>enough to give every blade of grass its own IP.
Answer:
converting analog information into binary form, which can be more easily edited and shared
Explanation:
Digitization is conversion of data into digital format. Data is converted into small piece of storing unit called bits.
Video digitization is the process of analog to digital conversion of video-graphic information. Analog signal is sampled based on its amplitude at uniformly distributed time period and then converted into binary data(bits) which is called digital data.