The file you should encode the contents of the array

Assignment Help Computer Engineering
Reference no: EM132177333

Vigenère cipher program

1. Your code should use STDIN and STDOUT for input and output. (This is the default.) Use redirection on the command line to read from a file and write to a file.

2. Your code should open a file, read it character by character and save it into an array. Use C I/O functions.

3. When you get to the end of the file you should encode the contents of the array with a Vigenère cipher using the keyword CRYPTOGRAM, then print it out.

4. Maintain the distinction between upper-case and lower-case letters, and do not modify non-alphabetic characters. This is not very good for the security of your message, but the result will look neater.

5. This program should use glibc functions. In addition to printf(), you may need getchar() and putchar().

6. Assume that the input file contains just ASCII text Don't worry about what happens with non-text files.

7. Once the encoder is working, build a decoder by duplicating the code and changing the addition to a subtraction.

8. If you use printf() to output the array, remember that a null termination is required on a string.

Reference no: EM132177333

Questions Cloud

The augmenting path algorithm : What variation of the augmenting path algorithm (for network flow) was proposed to ensure that it ran in polynomial time?
How much is needed in the retirement account : At the end of January, How much is needed in the retirement account at the start of retirement for Tatenda to accomplish her goal
Generate a scatter plot containg the information : Add code that will automatically generate a scatter plot containg the following information: -N data points -the best-fit line -labels for the x and y axis .
What features of the numerical problems lead to performance : What features of both the numerical problems and vector computers lead to this high performance?
The file you should encode the contents of the array : When you get to the end of the file you should encode the contents of the array with a Vigenère cipher using the keyword CRYPTOGRAM, then print it out.
How well you show that the flow chart represents : In cosmology the behavior of space through time is given by a function called the scale factor = r(t).
What case can be made that flexible rates lead more : What case can be made that flexible exchange rates reduce the flow of long-term foreign direct investment? What case can be made that flexible rates might.
Would you recommend the use of expansionary policy : Suppose the economy is operating below its natural level of income (e.g., at point H in Figure 10). Would you recommend the use of expansionary policy.
What is the market value of a bond with a coupon rate : What is the market value of a bond with a coupon rate of return of 9% and a market interest rate of 8% if the face value of the bond is $2,000

Reviews

Write a Review

Computer Engineering Questions & Answers

  Regarding level of order traversal

Write down a level order traversal that does every level of the binary tree before moving on to the next level. Starting with the root add the children nodes to list.

  List three environmental considerations when installing plc

What type of tool or object should be used to change the position of DIP switches?

  Derive the equation for the exact deflection

For the cantilever beam shown in the accompanying figure. The deformation of the beam under a load P is governed by the relationship.

  What is the output of the given code

What is the output of print 'a'+'b' if a and b are objects? Why do you get this output? What is the output from print "Hi" + "there"?

  Assembly language version of c code

In MIPS assembly, write down an assembly language version of following C code segment: int A[10], B[10]; for (i=1; i

  What is the period of the external signal

Assuming a 2 MHz counter clock frequency. what is the period of the external signal in Figure?

  1 complete the partial code provided with this lab that

1. complete the partial code provided with this lab that implements a simple group communication application using

  Develop a product service idea

Develop a product service idea. Describe the product/service including the benefits of using the product/service

  Evaluate two out-of-scope functionalities

Your Mobile Ordering Project team was asked to evaluate two "out-of-scope" functionalities for the Mobile Ordering App. You are tasked with documenting.

  What problems are you possible to encounter

make two algorithms (one iterative and one recursive) to print the daily salary of a worker who, each day, is paid twice the previous day's salary (starting with one penny for the first day's work) for a 30 day period.

  Write a program to predict the career totals for major

As usually described, the formula predicts the likelihood of the player achieving a particular goal, such as 500 home runs or 3000 hits.

  Extract top twenty emoticons and their counts from the tweet

The first sub-task is to extract the top 20 emoticons and their counts from the tweets. Perhaps only 1 in 5 of your candidates are emoticons.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd