Part I: Encryption Download the file called plain.txt from doc sharing and place
ID: 3635221 • Letter: P
Question
Part I: EncryptionDownload the file called plain.txt from doc sharing and place it in the same folder as the project files
Create a c-string of 1000 elements
Input every character from the file plain.txt into this c-string
Perform encryption by adding 1 to every character in the c-string
Output the c-string into a new file called cipher.txt
Part II: Decryption
Create a c-string of 1000 elements
Input every character from the file cipher.txt into this c-string.
Perform decryption by subtracting 1 from every character in the c-string
Output the c-string into a new file called original.txt
Hint:
Use the eof() and get() functions while reading from the file
What to submit:
Submit and a copy of both programs and the encrypted and decrypted file content
plain.txt file:
If you've ever pretended to be talking on your cell phone to avoid talking to, or acknowledging, someone nearby -- you're not alone. One in 13 Americans have used this ploy, a new survey says.
In its report, the Pew Internet and American Life Project also explores the pros and cons of having a cell phone. Cell phones are great for quick information retrieval, Pew found. But not having fast mobile access to info can cause problems.
"Half of all adult cell owners (51%) had used their phone at least once to get information they needed right away," the report said. "One quarter (27%) said that they experienced a situation in the previous month in which they had trouble doing something because they did not have their phone at hand."
Among cell phone users ages 18-29, 42% reported experiencing trouble doing something because their phone wasn't nearby.
Explanation / Answer
int main(void){ char ch[1000]; for(int i = 0; iRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.