Solved

program

Posted on 1997-03-07
2
185 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

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Each year, investment in cloud platforms grows more than 20% (https://www.immun.io/hubfs/Immunio_2016/Content/Marketing/Cloud-Security-Report-2016.pdf?submissionGuid=a8d80a00-6fee-4b85-81db-a4e28f681762) as an increasing number of companies begin to…
This problem is more common than not and I will show you some things to check to solve this problem.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

770 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