Google Answers Logo
View Question
Q: Simple C program using arrays ( No Answer,   1 Comment )
Subject: Simple C program using arrays
Category: Computers > Programming
Asked by: shoma911-ga
List Price: $25.00
Posted: 29 Nov 2006 18:46 PST
Expires: 30 Nov 2006 15:20 PST
Question ID: 786826
I will need a full program (one *.c) which does the following (must
compile in any C compiler and use arrays). It should read 3 *.txt
files and then does the following:

- How many words in each file?
- How many characters? 
- What is the longest word in the text?
- How many sentences?
- Report to show which text has the most words, the least words, 
  The most characters, the least characters, the most sentences, the
least sentences.

A sentence is a group of characters ending with a period (full stop).
Words are separated by spaces.
Ignore commas, periods and semi-colons in word length count. If the
last character of a word is a , or a . or a ; subtract one from the

Extra Tips if anyone does it within 24 hours. 
Use any *.txt file to test it.

Clarification of Question by shoma911-ga on 29 Nov 2006 18:48 PST
The files are no longer than 800 characters so an array[800] is more than enough.
There is no answer at this time.

Subject: Re: Simple C program using arrays
From: cower-ga on 30 Nov 2006 01:57 PST
Is this for homework?

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  

Google Home - Answers FAQ - Terms of Service - Privacy Policy