Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need help with these two problems written in C // Problem 3: reverseString (5 points) // Reverse each string of strings[][]. // Consider one
I need help with these two problems written in C
// Problem 3: reverseString (5 points) // Reverse each string of strings[][]. // Consider one string at a time and reverse the characters. For instance, "hi hello" // should reverse to "olleh ih". void reverseStrings(char strings [NUM_STRINGS][STRING_LENGTH]), // Problem 4: encryptStrings (5 points), // Traverse the 2D character array 'strings' and encrypt each string in 2 steps as //follows- // 1) Reverse the string. 11 Hint: Use 'reverseStrings(' for this step. // 2) Then shift those ASCII characters forward by the integer value of 'key'. // If the string is "hello" and key = 2, reversing will get you "olleh" and adding, 7/key to it will result in "qnnfj" // If the value of 'key' is large, you will extend past the alphabetical characters 1/and reach non-alphabetical characters. Thats ok. // NOTE: DO NOT encrypt the null terminator character. Use the null terminator 10' 7/to find the end string // *** NOTE: If you were unable to code for reverseStrings(), then skip that step //in this function and simply shift the characters ahead by 'key'. Il While decrypting in the next function, you will again have to //skip the reversing part. You will get partial points in that case. void encryptStrings (char strings [NUM_STRINGS][STRING_LENGTH], int key)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started