Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Text files created for internal correspondence of a military organization are required to be encrypted. As the basis of encryption, one of the oldest encryption

Text files created for internal correspondence of a military organization are required to be encrypted. As the basis of encryption, one of the oldest encryption methods, \"the translation of each letter by a certain amount\" is taken as basis. According to this; When the shift amount 3 is selected, the letter 3 ahead of each letter is written in its place. That is, all A's are denoted by D, and all K's are represented by the letter N. When shifted, the letters that exceed the last letter are returned to the beginning and continue from there. The same is true for numbers. (It can be assumed that there are no Turkish characters in the documents.)

Write the program that creates the encrypted file with the same extension \"sfr\" by encrypting the original text file whose name is entered on the keyboard according to the amount of shifting entered on the keyboard.Use C programming language.

TIP: You can use the ASCII codes of the characters. (A-Z letters are between 65-90, a-z lowercase letters are between 97-122, numbers 0-9 are between 48-57)

SAMPLE WORK:

Enter the name of the original file and the displacement amount: message.txt 3

message.sfr file created

SAMPLE message.txt (CREATE THIS FILE USING NOTEPAD !!!!)

Computer software course coded Bil102

SAMPLE message.sfr

Elo435 nrgox Elojlvdbdu bdclolpl ghuvl

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction to Wireless and Mobile Systems

Authors: Dharma P. Agrawal, Qing An Zeng

4th edition

1305087135, 978-1305087132, 9781305259621, 1305259629, 9781305537910 , 978-130508713

More Books

Students also viewed these Programming questions

Question

Find the value of each expression if x = 2 and y = -1. x + y

Answered: 1 week ago

Question

Exude confidence, not arrogance.

Answered: 1 week ago

Question

2. Define the concepts of between and within total variance.

Answered: 1 week ago