|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (2 bit)
Join Date: Nov 2004
Posts: 2
|
Help with borland c++ v5.02
I have to write a program that does the following;
1, it should prompt for and allow the user to enter a text string such as one or more sentences and perform the following actions - 2, it should inform the user of the number of words in the text string 3, it should count and inform the number of upper and lower case characters in the text. it should count and inform the number of occurences of a given letter, selected by the user, wether it is present in upper or lowercase within the text; if the letter is not present, it should state 'not present in text'. the program should work in the following way; once the text is entered the user is given a menu of choices for the three items above, and allowed to choose repeatedly without re-running the program. the menu must also include an option to quit this is what i have so far. i have the word count working but cant figure out how to do the rest. i did have an attempt at the word count but couldn't get it working. Last edited by random_dave; 11-30-2004 at 02:45 PM. |
|
|
|
|
|
#2 |
|
Member (2 bit)
Join Date: Nov 2004
Posts: 2
|
Code:
#include |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|