Course Solutions Uncategorized (Solved) : Global Macro Values Used Define Size 2d Array Characters Define Numstrings 4 Define String Q34522579 . . . .

(Solved) : Global Macro Values Used Define Size 2d Array Characters Define Numstrings 4 Define String Q34522579 . . . .

 

// Global Macro Values. They are used to define the size of 2Darray of

characters

#define NUM_STRINGS 4

#define STRING_LENGTH 50

// Forward Declarations

void initializeStrings(char[NUM_STRINGS][STRING_LENGTH]);

void printStrings(char[NUM_STRINGS][STRING_LENGTH]);

void reverseStrings(charstrings[NUM_STRINGS][STRING_LENGTH]);

void encryptStrings(char[NUM_STRINGS][STRING_LENGTH], int);

void decryptStrings(char[NUM_STRINGS][STRING_LENGTH], int);

int splitAndPrintSentences(chars[NUM_STRINGS*STRING_LENGTH]);

void inputMatrix(int matrixA[3][3]);

void determinant(int matrixA[3][3]);

// Problem 3: reverseString (5 points)

// Reverse each string of strings[][].

// Consider one string at a time and reverse the characters. Forinstance,

“hi hello” should reverse to “olleh ih”.

void reverseStrings(charstrings[NUM_STRINGS][STRING_LENGTH])

{

}

// Problem 4: encryptStrings (5 points)

// Traverse the 2D character array ‘strings’ and encrypt eachstring in 2

steps as follows-

// 1) Reverse the string.

// Hint: Use ‘reverseStrings()’ for this step.

// 2) Then shift those ASCII characters forward by the integervalue of

‘key’.

// If

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Solved) : 10 Following Code Snippets Choose Outcome Compiling Running Code Given Options Compile Ti Q36000328 . . . .(Solved) : 10 Following Code Snippets Choose Outcome Compiling Running Code Given Options Compile Ti Q36000328 . . . .

<p><img alt="10. For each of the following code snippets, choose the outcome of compiling and running the code from the given options: A." src="https://media.cheggcdn.com/media%2F8c3%2F8c38d9da-341d-4775-871a-de0633a0fa15%2FphpYUkB4S.png" style="height:902px;width:1024px;" aria-describedby="d3f"/></p><p><img alt="d) void myFunct(int* &x)t