Programming
programing

Question Description

I don’t know how to handle this Programming question and need guidance.

 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.



Student has agreed that all tutoring, explanations, and answers provided by the tutor will be used to help in the learning process and in accordance with Studypool's honor code & terms of service.

Final Answer

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.

fitting k (56)
University of Maryland

Anonymous
The tutor managed to follow the requirements for my assignment and helped me understand the concepts on it.

Anonymous
The tutor was knowledgeable, will be using the service again.

Anonymous
Awesome quality of the tutor. They were helpful and accommodating given my needs.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors