Google Answers Logo
View Question
 
Q: writing a c language program ( No Answer,   1 Comment )
Question  
Subject: writing a c language program
Category: Computers > Programming
Asked by: motojays-ga
List Price: $50.00
Posted: 30 Oct 2005 11:21 PST
Expires: 31 Oct 2005 07:35 PST
Question ID: 586731
how do I write a c language program that will open a user specified
text file (full path expected) and read file (character by character)
to determine and output the total number of words and the total number
of sentences in that file.  Both a word and a sentence shall begin
with one of the following:  ?0? to ?9?, ?A? to ?Z? or ?a? to ?z?.  A
word once started shall end with the first occurrence of a space, tab,
or an end-of-line (unless preceded by a hyphen).  A sentence shall end
with a  ?.? (period), ??? (question mark) or ?!? (exclamation point),
and one of the following: two spaces, one space and end-of-line,
end-of-line, double quote and space or a double quote and an
end-of-line.  Protect program against crashing when user enters bad
file name.
Answer  
There is no answer at this time.

Comments  
Subject: Re: writing a c language program
From: bozo99-ga on 30 Oct 2005 12:14 PST
 
Almost any beginner's C book will equip you to do this.   You'd be
beter spending your $50 on a book (and some practtice) than on one
specific question.

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 answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


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