Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8

Thread: Help! Fast

  1. #1
    New to the CF scene
    Join Date
    Jul 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help! Fast

    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
    Last edited by Ste94; 07-27-2009 at 02:08 PM.

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,854
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    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.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    New to the CF scene
    Join Date
    Jul 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by abduraooft View Post
    This is not my homework, it's for some online competition.

  • #4
    Senior Coder
    Join Date
    Jul 2009
    Location
    South Yorkshire, England
    Posts
    2,318
    Thanks
    6
    Thanked 304 Times in 303 Posts
    Quote Originally Posted by Ste94 View Post
    This is not my homework, it's for some online competition.
    Note this snippet from the above:

    This is considered cheating

  • #5
    New to the CF scene
    Join Date
    Jul 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #6
    Banned
    Join Date
    Jul 2009
    Posts
    52
    Thanks
    10
    Thanked 4 Times in 4 Posts
    ... 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...

    Code:
    <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"?)
    Last edited by RabidMango; 07-26-2009 at 01:58 AM. Reason: changing the tense of a verb and adding a modified Zoolander quote

  • #7
    Senior Coder
    Join Date
    Jul 2009
    Location
    South Yorkshire, England
    Posts
    2,318
    Thanks
    6
    Thanked 304 Times in 303 Posts
    Quote Originally Posted by RabidMango View Post
    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...

    Code:
    <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.

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

  • #8
    New to the CF scene
    Join Date
    Jul 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Can i delete my post on this site????????????????????????????


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •