programing

Programming
Tutor: None Selected Time limit: 3 Days

 Write a function ReadStringFromFile() that reads a character string from a file into a character 

array passed to it through its parameter (note that the name of the file will be provided by the user).

? Write a function Encode1() that encodes a character string (passed to it as parameter) using the 

following algorithm:

o Perform the XOR operation of each character with its position. 

? Write a function Decode1() that retrieves the original character string from the string passed to it.

? Write a function Encode2() that encodes a character string (passed to it as parameter) using the 

following algorithm:

o Convert each character into its equivalent ASCII value (in hexadecimal) which means that 

there will be two hexadecimal characters per character.

? Write a function Decode2() that retrieves the original character string from the encoded string 

passed to it.

? Write a function WriteStringToFile()that writes a character array (passed to it through its 

parameter) in an output file (note that the name of the file will be provided by the user).

? Now write a complete menu driven main() program that allows you to read a file, encode or decode 

it according to the user’s choice.



Nov 30th, -0001

Thank you for the opportunity to help you with your question!

In most cases, the discipline is self-governed by the entities which require the programming, and sometimes very strict environments are defined

Please let me know if you need any clarification. I'm always happy to answer your questions.
Jun 14th, 2015

Studypool's Notebank makes it easy to buy and sell old notes, study guides, reviews, etc.
Click to visit
The Notebank
...
Nov 30th, -0001
...
Nov 30th, -0001
Feb 25th, 2017
check_circle
Mark as Final Answer
check_circle
Unmark as Final Answer
check_circle
Final Answer

Secure Information

Content will be erased after question is completed.

check_circle
Final Answer