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.
Answer:CPU stands for the central processing unit. CPU is not a peripheral device.
Explanation:
CPU stands for the central processing unit. CPU is not a peripheral device.
Answer:
I use my oldest computer to store my information
Explanation:
I use my old computer to store things because it does not function properly such as taking a slow time loading or shutting down completely so I use it to store my data.
The term "net radiation" refers to <span>the difference in amount of incoming and outgoing radiation the total amount of energy received by earth.
</span>
<span>Energy comes from the sunlight penetrates the top of the
atmosphere- that's the incoming energy. Then some of it is lost by reflection of clouds
or the Earth's surface, thermal radiation- that's the outgoing energy.</span>
Answer:
The Basic Program is as follows:
10 LENGTH = 50
15 WIDTH = 30
20 AREA = WIDTH * LENGTH
25 PRINT AREA
30 END
The Algorithm is as follows:
1. Start
2. Let Length = 50
3. Let Width = 30
4. Compute Area = Length * Width
5. Display Area
6. Stop
See Attachment for flowchart (flowchart is designed using draw io tools)
Explanation:
The flowchart, algorithm and basic program all follow the same sequence and explanation
Using the basic program as a case study;
Line number 10: The program starts by initializing LENGTH to 50
Line number 15: It then initializes WIDTH to 30
Line number 20: The AREA is calculated by LENGTH * WIDTH
Line number 25: The value of AREA is printed afterwards
Line number 30: Lastly, the program stops execution