Solved

program

Posted on 1997-03-07
2
195 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Deploying our service is a grudge match between customer benefits and customer pain. In one corner, rolling out fixes (yay!) and delivering new features (double yay!). In the other corner, training on new features (boo – sounds like work), and chan…
Containers like Docker and Rocket are getting more popular every day. In my conversations with customers, they consistently ask what containers are and how they can use them in their environment. If you’re as curious as most people, read on. . .
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Suggested Courses

710 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