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!")
A band from the 1970s has reunited. They want to revive their careers, but they do not have the funding they once did. An international tour is not financially possible. The band needs to build renewed interest in their music and make a profit.
Which of the following would be the best decision for this band?
\\
-----------------------------------------------------------------------------------------------------
Correct Answer:
<u><em>B) Plan a one-night reunion concert that will be broadcast live, online, and on cable, then sell recordings of the event.</em></u>
<u><em></em></u>
<em>Explanation:</em>
I got the answer correct on EDG2020.
<em />
The fastest way to get help is to type a word or two in the search box. TRUE.
Answer:
A. One
Explanation:
Symmetric key cryptography makes use of one key. The same key is used for both encryption and decryption. This is different from asymmetric cryptography where separate keys are used for the two operations. Some examples of symmetric cryptography include:
- Advanced Encryption Standard (AES)
- Data Encryption Standard (DES)
- Triple Data Encryption Standard (3DES)
Answer:
<em>Teniendo en cuenta el sistema hidráulico se puede mencionar la siguiente característica teniendo en cuenta el principio de Pascal:</em>
- <u><em>La presión ejercida sobre un fluido en área pequeña es igual a las fuerza ejercida sobre un fluido en un área más grande.</em></u>
Explanation:
<em>El principio de Pascal menciona en términos generales que l</em><u><em>a fuerza ejercida sobre un fluido se ejerce sobre el total del fluido y en todas las direcciones</em></u><em>, sin embargo, basado en este concepto se encuentra el principio de la prensa hidráulica (que se menciona en la respuesta), el cual se podría expresar de la siguiente forma:</em>
<em>Donde:</em>
- <em>F </em><em>= Fuerza ejercida.</em>
- <em>A</em><em> = Área en la cual se ejerce la fuerza.</em>
<em>Lo que se busca es ejercer una fuerza en un área pequeña que se vea reflejado como una gran fuerza en un área más grande. Éste principio se suele usar para el levantamiento de maquinaria como automóviles en los concesionarios.</em>