Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CAN SOMEONE PLEASE ASAP HELP ME WITH the void reverseStrings function. Please read the instruction before attempting. You are NOT ALLOWED to modify int main().

CAN SOMEONE PLEASE ASAP HELP ME WITH the void reverseStrings function. Please read the instruction before attempting. You are NOT ALLOWED to modify int main(). Please write code only in the void reverseStrings function and explain. Thumbs up will be given if do it right! THANKSSSSSimage text in transcribedimage text in transcribedimage text in transcribed

#include #include #pragma warning(disable : 4996) // compiler directive for Visual Studio only //Read before you start: // You are given a partially complete program. Your job is to complete the functions in order for this program to work succ //All instructions are given above the required functions, please read them and follow them carefully // You shoud not modify the function return types or parameters. // You can assume that all inputs are valid. Ex: If prompted for an integer, the user will input an integer /Global Macro Values. They are used to define the size of 2D array of characters #define NUMSTRINGS 4 #define STRINGLENGTH 50 - - //Forward Declarations void initializeStrings (char[NUM STRINGSJISTRING_LENGTH]) void printStrings (char[NUM_STRINGS][STRING LENGTH]) void reverseStrings (char strings[NUM_STRINGS] [STRING LENGTH]); void encryptStrings(char[NUM STRINGS] [STRING-LENGTH), int); void decryptStrings(char[NUMSTRINGS][STRING-LENGTH], int); int splitAndPrintSentences(char s[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[it]. // Consider one string at a time and reverse the characters. For instance, "hi hello" should reverse to "olleh ih". Evoid reverseStrings (char strings [NUM STRINGSTISTRING LENGTH) // ***DO NOT modify it in any way** int main() char sentences [NUM_STRINGS STRING_LENGTH]; char strings[NUM STRINGS] STRING LENGTH; will store four strings each with a max length of 34 1, key, count char input [STRING_LENGTH]; int matrixA[3][3]; // 3x3 int array for matrix printf("CSE240 HW3: 2D Character Arrays "); initializeStrings (strings); for (i 0;

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Visual Basic 6 Databases

Authors: Charles Williams

1st Edition

1861002025, 978-1861002020

More Books

Students also viewed these Databases questions

Question

1. Explain how business strategy affects HR strategy.

Answered: 1 week ago