Solved

program

Posted on 1997-03-07
2
190 Views
Last Modified: 2010-04-16
Hello,
         I have tried enough working with the problem written down. Please, provide me with every possible solution as soon as possible.

* Write a program to input a sentence, count the number of words, frequency of each vowel and the number of consonants, Display the results.
                        Thank you
0
Comment
Question by:hileen
2 Comments
 

Accepted Solution

by:
yeast earned 200 total points
ID: 1215238
use an array to store characters as a word

while not eoln do
begin
   read(x);
   array[counter].character:=x;
end;

-Ethan
 
0
 

Expert Comment

by:nick030897
ID: 1215239
1.use a loop and obtain the number of spaces present in the sentense. That's a way to obtain the number of words used.
2. use separate counters for each vowel and increase them when the next char read is the same. (vowel frequency)
3. every other char different than vowel, space or digit should be treated as a consonant.So use anohter counter and take advantage of isaplha isdigit etc. functions.

Nikolay
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
change the mouse cursor 1 1,001
Delphi XE4 ADORecordset - trouble setting the active connection 2 849
File restrict, lock. 4 217
add combobox item based on numbers 9 154
The business world is becoming increasingly integrated with tech. It’s not just for a select few anymore — but what about if you have a small business? It may be easier than you think to integrate technology into your small business, and it’s likely…
Starting your own business is always a daunting process, and for most people it is brand new experience. Avoid the common pitfalls by following these tips to start on the road to success.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question