Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that prompts the user to enter the name of a file. The program finds the pairs of encoded/decoded words in the file.

Write a program that prompts the user to enter the name of a file. The program finds the pairs of encoded/decoded words in the file.

image text in transcribed image text in transcribed image text in transcribed *** PLEASE LEAVE DETAILED COMMENTS EXPLAINING WHAT YOU ARE DOING ***

Enter the file name: words.txt Output: encode/decoded words are written to file: words.txt.sft The program reads the content of the file and stores the words in an array of strings, the program then finds the pairs of encoded/decoded words and writes them to the output file 1. Name your program file_search.c. The output file name should be the same name as the input file but with an added extension of .sft. In this example, the original file name is words.txt. The output file name is then words.txt.sft. Assume the file name is no more than 100 characters. Assume the length of each line in the input file is no more than 100 characters. Assume the input file contains no more than 1000 words,. 2. In the program, use the shift function (provided in shift.c) to help search for pairs of encoded/decoded words. The function shifts the alphabetical letters message in by shift amount

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

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

More Books

Students also viewed these Databases questions

Question

LO1 Explain how the workforce is changing in unpredicted ways.

Answered: 1 week ago

Question

LO6 List the components of job descriptions.

Answered: 1 week ago