Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello expert!Please check the code is 100% correct and no any warning because warning is considered as error in my computer. Write a C program

Hello expert!Please check the code is 100% correct and no any warning because warning is considered as error in my computer.

image text in transcribed

Write a C program substitution.c which reads characters from its input and writes the characters to its output encrypted with a Substitution cipher. A Substitution cipher maps each letter to another letter. The mapping will be given to your program as a single command line argument. This command line argument will contain 26 characters: an ordering of the letters 'a'.. 'z'. Characters other than letters should not be encrypted. Your program should stop only at the end of input. Your program should contain at least one function other than main. For example: $ ./ substitution qwertyuiopasdfghjklzxcvbnm I was scared of dentists and the dark O val leqktr gy rtfzolzl qfr zit raka I was scared of pretty girls and starting conversations Ovql leqktr gy hktzzn uoksl qfr lzqkzofu egfctklqzogfi Ctrl-D $ ./ substitution abcdefghijklmnopqrstuvwxyz The identity cipher!!! The identity cipher!!! Ctrl-D $ ./ substitution bcdefghijklmnopqrstuvwxyza The Caesar cipher is a subset of the substitution cipher! Uif Dbftbs djqifs jt b tvctfu pg uif tvctujuvujpo djqifs! Ctrl-D Your program will only be tested with an appropriate command line argument - but a good programmer would check the command line argument is present and appropriate

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

More Books

Students also viewed these Databases questions

Question

2. Why has the conflict escalated?

Answered: 1 week ago