Question: You are given hw03q1.c file, which contains a partially completed program. You are to follow the instructions contained in comments and complete the required functions.

You are given hw03q1.c file, which contains a partially completed program. You are to follow the instructions contained in comments and complete the required functions. You will be writing functions for a program that does manipulation on 1-D and 2-D arrays. In one part, the program accepts four strings and an integer key as input from the user. The program will then use the integer key to encrypt the input strings (reversing the string and adding the key to each character in the string), decrypt the strings and then print the strings. In another function, one long user-input string is broken into sentences to count and print them. There is also a matrix operation of determinant which uses 2D integer array. Example output given below. Go through the C file and see the sample expected output below.

UM_STRINGS][STRING_LENGTH]);

void reverseStrings(char strings[NUM_STRINGS][STRING_LENGTH]);

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

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

int splitAndPrintSentences(char s[NUM_STRINGS*STRING_LENGTH]);

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

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

// Problem 1: initializeStrings (5 points)

// Traverse the 2D array of characters variable 'strings' (input from user

in main() ) and set all characters in each

// array to a null terminator so that there is a 4 row and 35 column 2D

array full of null terminators.

// The null terminator is represented by the character value '

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!