Answer:
i dont know spanish but i am gussing that you want to find differnce in virus information?
Explanation:
Answer:
The program is written using PYTHON SCRIPT below;
N=int(input(" Enter number of Rows you want:"))
M=[] # this for storing the matrix
for i in range(N):
l=list(map(int,input("Enter the "+str(i+1)+" Row :").split()))
M.append(l)
print("The 2D Matrix is:\n")
for i in range(N):
print(end="\t")
print(M[i])
W=[] # to store the first non zero elemnt index
T=[] # to store that value is positive or negative
L=len(M[0])
for i in range(N):
for j in range(L):
if (M[i][j]==0):
continue
else:
W.append(j) # If the value is non zero append that postion to position list(W)
if(M[i][j]>0): #For checking it is positive or negative
T.append(+1)
else:
T.append(-1)
break
print()
print("The first Non Zero element List [W] : ",end="")
print(W)
print("Positive or Negative List [T] : ",end="")
print(T)
Explanation:
In order for the program to determine a set of test cases it takes in input of 2D matrix in an N numbet of rows.
It goes ahead to program and find the column index of the first non-zero value for each row in the matrix A, and also determines if that non-zero value is positive or negative. The If - Else conditions are met accordingly in running the program.
Explanation:
Start
Input dollars
Set Euros = 0.91 * dollars
Set Yens = 109.82 * dollars
Output Euros
Output Yens
Stop
Note: The rates are as of 07-Feb-2020
Answer:
def fahrenheit_to_celsius(temperature):
c = (temperature - 32) / 1.8
return c
temperature_list = [-10, -5, 0, 10, 20, 32, 40, 50, 60, 75.2]
i = 0
while i < 10:
print(str(temperature_list[i]) + " degrees Fahrenheit = " + str(fahrenheit_to_celsius(temperature_list[i])) + " degrees Celsius")
i += 1
Explanation:
*The code is in Python.
Create a function named fahrenheit_to_celsius that takes one parameter, temperature
Convert the temperature to celsius using the formula
Return the result of the conversion
Create a list holding ten temperatures
Create a while loop that iterates 10 times. Inside the loop, call the function to convert the each temperature in the list and print the result
Answer:
Caesar cipher
Explanation:
In formation technology, cryptography or cryptology is a process of coding or encrypting information, using algorithms and input values in a network, where there is a present of a third party called adversaries or attackers.
There are different types of cryptography, namely, symmetric, assymmetric and hash cryptography.
Ciphers are algorithms used in cryptography to encode (encrypt) or decode (decrypt) information. An example of cipher is the Ceasar's cipher.
Ceasar cipher is a simple type of substitution cipher that encrpts plain text one character at a time and each coded character depends on the single character and a fixed distance value.