...

View Full Version : Help! Fast



Ste94
07-25-2009, 04:18 PM
ou are given a string S that contains N lowercase letters of the Englush alphabet. How many wovels does the string S contain? (only the letters 'a', 'e', 'i', 'o' and 'u' are considered to be wovels - letter 'y' is not considered to be a wovel)

INPUT:
From the first line of the standard input read an integer N (1 <= N <= 1000), N represents the length of the given string. From the second line of the standard input read N characters that represent the string S.

OUTPUT:
To the standard output, output one integer that represents the number of wovels that S contains

Inpyt:
10
obhtueekxy

Output:
4

Explanation:
The only wovels in the strings are 'o', 'u' and 'e', however 'e' occurs twice, and we count it both times.

Input:
5
aeiou

Output:
5

abduraooft
07-25-2009, 04:51 PM
See http://www.codingforums.com/rules.htm

1.5) No homework assignments - Do not post your entire homework assignment and request that other members do it for you. This is considered cheating, and your thread may even be used by your school to prove your guilt. Now, you may ask for advice or help on a specific aspect of your assignment that you're having trouble with. Use common sense as far as what's acceptable in terms of soliciting help with homework assignments.

Ste94
07-25-2009, 05:25 PM
See http://www.codingforums.com/rules.htm

This is not my homework, it's for some online competition.

MattF
07-25-2009, 06:15 PM
This is not my homework, it's for some online competition.

Note this snippet from the above:



This is considered cheating

Ste94
07-25-2009, 11:34 PM
It's not cheating. Go to [I]www.z-trening.com[I], compatitions and search for today's compatition. Search for user name Stefan94. You'll see that i wasn't cheating, i really needed help.

RabidMango
07-26-2009, 02:47 AM
... compatitions and search for today's compatition.

It is genuinely my duty to pause from my internet fasting in order to advise you (as your attorney) not to enter any competition pertaining to the use of correct spelling (and perhaps also grammar) within the confines of that formal codification known loosely and indeed often ironically as the English language. Besides, I bet you thought I didn't know what a eugoogoly was.

Additionally an accidental misclick on the big B button on the top of the little posting form caused me to discover this sly reference to buck rogers' strange metallic dwarf side kick in incorrect meaningless not-quite html...



<b><d></b></d><b><d></b></d>

(there's no such tag as <d>, for anyone who can't properly understand embellished english)

;-)

(is there a smiley or 3-letter-arsonym for "grins cheekily having made very bad pun"?)

MattF
07-26-2009, 01:00 PM
It is genuinely my duty to pause from my internet fasting in order to advise you (as your attorney) not to enter any competition pertaining to the use of correct spelling (and perhaps also grammar) within the confines of that formal codification known loosely and indeed often ironically as the English language. Besides, I bet you thought I didn't know what a eugoogoly was.

Additionally an accidental misclick on the big B button on the top of the little posting form caused me to discover this sly reference to buck rogers' strange metallic dwarf side kick in incorrect meaningless not-quite html...



<b><d></b></d><b><d></b></d>

(there's no such tag as <d>, for anyone who can't properly understand embellished english)

;-)

(is there a smiley or 3-letter-arsonym for "grins cheekily having made very bad pun"?)

That cracked me up. :D

p.s: You're hinting your age with the Buck Roger's reference. :D

Ste94
07-27-2009, 02:58 PM
Can i delete my post on this site????????????????????????????



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum