Question: C language programming please help: The octal digit serves as the initial key to be applied to the left-most digit of the octal number. The

C language programming please help: The octal digit serves as the initial key to be applied to the left-most digit of the octal number. The process of applying a key involves adding the key to a digit and when the resulting value exceeds the limit of an octal digit (7) to wrap such a value back to zero and continuing to increment from there. For example, if the octal value 5 is added by the digit 4 the resultisnot9butrather1(5+1=6,6+1=7,7+1=0,0+1=1). Thenewoctaldigitcreated(1)willthenbeusedas the key to the second left-most digit and the process will continue until all digits in the octal number have been changed.

C language programming please help: The octal digit serves as the initialkey to be applied to the left-most digit of the octal number.

Problem: Yet another request for a digit manipulation algorithm has made its way into your e-mail. You are no longer sure if these problems are related to the previous requests or whether your organization is doing its best to keep you in the dark regarding the innovative security software they are attempting to create. In this program you will accept an octal (base 8) number followed by an octal digit. The octal digit serves as the initial key to be applied to the left-most digit of the octal number. The process of applying a key involves adding the key to a digit and when the resulting value exceeds the limit of an octal digit (7) to wrap such a value back to zero and continuing to increment from there. For example, if the octal value 5 is added by the digit 4 the result is not 9 but rather l (5 + 1 = 6, 6 + 1-7, 7 + 1 = 0, 0 + 1 = 1). The new octal digit created (1) will then be used as the key to the second left-most digit and the process will continue until all digits in the octal number have been changed. Example Execution #1 Explained: Example Execution #1: Enter octal number: 123456 Enter octal key digit: 2 Key Octal Number 123456 23456 3456 456 56 New DigitEncrypted Value 35 350 3504 35041 350417 Encrypted value: 350417 4 4

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!