Answer:
def encrypt_digit(digit):
if type(digit) is int or float:
digit = str(digit)
hold = list()
for x in digit:
d = str((int(x) + 3)%10)
hold.append(d)
first = hold.pop(0)
second = hold.pop(0)
third = hold.pop(0)
fourth = hold.pop()
print(int("".join([third,fourth, first, second])))
encrypt_digit(7836)
Explanation:
The python function accepts a four-digit parameter which represents the data transmitted over the company's telephone network. The function encrypts the data by adding 3 to each digit and getting the modulus of division 10, then the digits are swapped and printed out encrypted and ready for transmission.
OMG YUHHH
( Also I need one more brainliset until I get expert )
Windows 10 is new and windows 7 is old
Answer:
printStackTrace()
Explanation:
printStackTrace() :- This method is present in Java.lang.Throwable class and it prints this Throwable it also prints other details with throwable like backtrace and class name. printStackTrace() prints a stack trace for this Throwable object on the output stream of standard error.
So we conclude that the answer is printStackTrace().
Answer:
function moves(a) {
var left = 0;
var right = a.length-1;
var count = 0;
while (left < right) {
if(a[left] % 2 == 0) {
left++;
continue;
}
if(a[right] % 2 == 1) {
right--;
continue;
}
var temp = a[left];
a[left] = a[right];
a[right] = temp;
left++;
right--;
count++;
}
return count;
}
var a = [4,13,10,21,20];
console.log('Number of moves: ' + moves(a));
console.log('Sorted array: ' + a);
Explanation: