Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

CAN SOMEONE PLEASE ASAP HELP ME WITH the void splitAndPrintSentences function. Please read the instruction before attempting. You are NOT ALLOWED to modify int main() in any way. Please write code only in the void splitAndPrintSentences 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 6: splitAndPrintsentences (10 points) Split s[] into individual sentences and store them in str /Read s[] character by character and copy into str[][], such that sentence 1 is in str[e][], sentence 2 is in str[1]] and so on. /1 Print the char array str[)[], so that you will print the separated sentences. Finally return the number of sentences in count // Dont forget to initialize str[][] with nulls. /7 Hint: Sentences are separated by full-stop fint splitAndPrintSentences (char s [NUM_STRINGS*STRING_LENGTH]) char str [NUM_STRINGS] [STRING_LENGTH]; int count -e; // enter code below // ***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

Database Driven Web Sites

Authors: Joline Morrison, Mike Morrison

2nd Edition

? 061906448X, 978-0619064488

More Books

Students also viewed these Databases questions

Question

How to Estimate a Population Mean or Proportion

Answered: 1 week ago

Question

7-16 Compare Web 2.0 and Web 3.0.

Answered: 1 week ago