answersLogoWhite

0


Best Answer

#include<iostream.h>

int main ()

{

int num , rem , a , b , c , d , x , y ;

cout<<"Enter a four digit number ";

cin>>num;

a=num/1000;

rem=num%1000;

b=rem/100;

rem=rem%100;

c=rem/10;

rem=rem%10;

d=rem/1;

cout<<d<<c<<b<<a<<endl;

a=(a+7)%10;

b= (b+7)%10;

c= (c+7)%10;

d= (d+7)%10;

cout<<a<<b<<c<<d<<endl;

x=a;

a=c;

c=x;

y=b;

b=d;

d=y;

cout<<"The encrypted integer is ";

cout<<a<<b<<c<<d<<endl;

system("pause");

return 0;

}

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: A company wants to transmit data over the telephone but it is concerned that its phones may be tapped All of its data is transmitted as four-digit integers It has asked you to write a program that?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Where do you see integers?

Well, we see integers almost everywhere around the world. Perhaps you were doing your homework and you need to go to page 67, there you have an integer rigth in front of you. You might also use integers while calling someone on your telephone. Integers are evrywhere!!


What is the remainder of sixty-thousand three hundredth-twelve and fifty-six?

Remainder is a concept appropriate to division of integers. The question is concerned neither with integers nor with division, and so is a nonsense question.


Is 96 a square number?

Not as far as integers-whole numbers-are concerned no. 9 squared is 81. 10 squared is 100. The square root of 96 (you can also say 96^0.5) is 9.797959... Not as far as integers-whole numbers-are concerned no. 9 squared is 81. 10 squared is 100. The square root of 96 (you can also say 96^0.5) is 9.797959...


How do you use negative and positive integers in real life?

Integers can be found in many places. Any where you find a number, a street address, a telephone number, etc. is an integer. Take in mind that in a telephone number, the number itself is not an integer, integers create how the number looks. You find integers in temp.(not body temp. because you use decimals in body temp.) and also in stock market change. With the stock market only use the point change. Football is probably the best example because you gain and loose yards. Golf is a great example also. Speed is also represented by integer. Basically, anything not a decimal is an integer.


When the negative integers the positive integers and 0 are combined the integers are formed?

Negative integers, zero and the positive integers, together form the set of integers.


Are the fractions 2436 and 1624 equivalent or not?

2436 and 1624 are integers, not fractions. And, as integers, they are unequal.2436 and 1624 are integers, not fractions. And, as integers, they are unequal.2436 and 1624 are integers, not fractions. And, as integers, they are unequal.2436 and 1624 are integers, not fractions. And, as integers, they are unequal.


What are non positive integers?

Non-positive integers are zero and the negative integers.


Which set represent the integers?

The set of integers represents the integers.


9 squared belongs to what family of real numbers?

At least the following families: all integers; all positive integers; all odd integers; and all "square integers", that is, integers that are squares of other integers.


What are the three categories of integers?

The set of integers is divided into three subsets. One is the positive integers. Another is the negative integers. The last subset has one element -- zero. In sum, integers are composed of the positive integers, the negative integers, and zero.


How many integers are there in the numerals?

All the numerals are integers (positive integers)


What are the boundary points of the integers?

The boundary points of the integers is simply the integers.