Answer:
C++ code for encryption is given below
Explanation:
#include <iostream>
using namespace std;
//functions to encrypt and decrypt
void encrypt(char str[]);
void decrypt(char str[]);
int main(){
char str[200];
bool done = false;
while(!done){
cout << "Enter a string (enter * to stop): ";
cin.getline(str, 200);
if(str[0] == '*' && str[1] == '\0')
done = true;
else{
encrypt(str);
cout << "Encrypted: " << str << endl;
decrypt(str);
cout << "Decrypted: " << str << endl;
}
cout << endl;
}
}
void encrypt(char str[]){
int i = 1;
for(int j = 0; str[j] != '\0'; j++){
str[j] += i;
i++;
if(i == 11)
i = 1;
}
}
void decrypt(char str[]){
int i = 1;
for(int j = 0; str[j] != '\0'; j++){
str[j] -= i;
i++;
if(i == 11)
i = 1;
}
}
In the inside address....
Answer:
While installing desktop sync app such as drop box following two resources will be used a lot
- CPU
- RAM
Explanation:
CPU usage has been increased while installing desktop sync application, because it depends on the number of files that need to be synced. If the number of files is high the CPU usage will increase.
The need of memory such as RAM is also increased while installing the desktop sync application. As the number of files that need to be synced increases the RAM usage is also increases.
<span>To ensure that any collisions are detected, frames are made large enough to fill the entire cable during transmission</span>