Question: Program must be in C++. Two spies who work for the same handler want to meet each other but each wants to make sure that

Program must be in C++.
Two spies who work for the same handler want to meet each other but each wants to make sure that the other spy is genuine and not a fake impersonator. They follow a system which they believe is foolproof. Their system is that each has one of the two factors of a large number, given to them by their handler, which is only known to that spy, not the other spy When they meet, they both produce their own factor, the two factors are then multiplied and the large number is generated. They count the total number of digits in that large number. Then they extract two digits from the large number, 3rd digit from right and 4h digit from right. For example, if the number was 2135209761, then digits 9 and 7 would be extracted. The two extracted digits are then added and their sum is multiplied with the total number of digits in the large number to generate the final value. This value is then compared to their own copies of the final value which they also knovw beforehand. If the final value is the same as the value they know, they talk to each other, else each goes his own way You have been asked to fully automate and computerize this super-secret operation. Write a program that will accept two factors of a large number to calculate the large number, extract the 3rd and 4th digits from right from that large number and then generate the final value per the algorithm described above. The two factors your program should use are: 3969 and 62175. The final value is 63. Note: The entire operation must be computerized, do not manually count either the total number of digits or find 3d and 4th digits from right
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
