Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You're given the following quote. Write a C program that finds the number of sentences in this quote and extracts the author name. Separate your

image text in transcribed

You're given the following quote. Write a C program that finds the number of sentences in this quote and extracts the author name. Separate your implementation from its definition and the main function. You should write 3 separate files: main.c, quote_parser.c and quote_parser.h "In order to measure a person's worth, you must do more than push them. The real way to test their worth is to give them power. When they gain the freedom to act outside the boundaries of law and ethics, you can sometimes see their souls.". Shogo Makishima In main function, Write the quote given above into a char array. Prints the number of sentences in the given array on the screen using the function you implemented. Prints the name of the author of the given quote on the screen screen using the function you implemented. In quote_parser.c, Write a function that takes a char array and returns the number of sentences found in the array. Write a function that takes a char array and returns the author name. Note that there are several spaces before the name of the author, make sure to remove those spaces. In quote_parser.h, Put the signatures of the above functions. Here's a sample output [harubuy@arch-zenbook 14 quote_parser 1$ clang main.c quote_parser.c -o quote_parser [harubyy@arch-zenbook 14 quote_parser]$ ./quote_parser There are 3 sentences in this quote. author: Shogo Makishima tharubuy@arch-zenbook 14 quote_parser]$ If you're compiling from the command line, you can use the compilation command I provide in this output

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

Excel As Your Database

Authors: Paul Cornell

1st Edition

1590597516, 978-1590597514

Students also viewed these Databases questions

Question

9. Mohawk Industries Inc.

Answered: 1 week ago

Question

8. Satyam Computer Services Limited

Answered: 1 week ago