Answer:
Encrypted message: CPONYIERTN
Explanation:
Message = ENCRYPTION
keyword = ONE
keyword ONE is of length 3 so the rows are of length 3
Permutation is given by the alphabetical order of the letters in the keyword ONE. Here E appears first in alphabet, then comes N and in last comes O so the order would be 321.
Now the message ENCRYPTION is written in tabular form with width of the rows defined by a keyword ONE
O N E
3 2 1
E N C
R Y P
T I O
N
Now this message is read by the column in alphabetic order of the keyword ONE.
Since alphabetic order of E is 1 so the column under E is read first which has the letters:
CPO
Then column under N is read which has the letters:
NYI
In the last the column under O is read which has the letters:
ERTN
So the encrypted message is:
CPONYIERTN
Arr.index[3] is most likely true
Answer and Explanation:
Using Javascript:
test7_11_13(num){
If(num%7===0||num%11===0||num%13===0){
Console.log("yes it is a multiple of 7,11 or 13");
}
else{
Console.log("It is not a multiple of any of the numbers");
}
function(num){
var makeString= num.toString();
var splitString= makeString.split("");
var makeNumber= splitString.map(Number());
var New_number= makeNumber.reduce(function(a, b) {
return a+b};,0)
}
If(New_number%2===0){
Console.log("it's an even number");
}
else{
Console.log("it's an odd number")
}
If(num%2===0||num%3===0||num%5===0||num%7===0||num%11===0){
console.log("it's not a prime number");
}
else{
console.log("it's a prime number");
}
}
From the above we have used javascript if..else statements to test the conditions for each question and output the answer to the console using console.log(). In the last part for prime number, you could also choose to use else if statements(if,else if, else if) to test the value of the num parameter and output if it's a prime number.
Answer:
1. store data and software programs that can be used by client computers on the network.
Explanation: