Quantcast

Got Homework?

Connect with other students for help. It's a free community.

  • across
    MIT Grad Student
    Online now
  • laura*
    Helped 1,000 students
    Online now
  • Hero
    College Math Guru
    Online now

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

hamza_b23 Group Title

I need help on this codes that i don't know how to do please help me out, Python language is perferred i have a friend who knows C, if you know in C that may be helpful i will tell my friend to interpret it but please i need help on these 3 codes. 1) It says parameter name is "remove_vowels: (str) -> str" and the description is "Return a new str that is identical to the input str except that the vowels have been removed. Vowels are the letters a,e,i,o,u. We do not consider y a vowel."

  • 2 years ago
  • 2 years ago

  • This Question is Closed
  1. rsmith6559 Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    Iterate through the input string, one character at a time. Test each character to see if it's in the set of vowels, and if it isn't output it.

    • 2 years ago
  2. agdgdgdgwngo Group Title
    Best Response
    You've already chosen the best response.
    Medals 2

    http://ideone.com/fl6aH

    • 2 years ago
  3. agdgdgdgwngo Group Title
    Best Response
    You've already chosen the best response.
    Medals 2

    should have added the uppercase characters in that string of vowels but that's one way of implementing it in python

    • 2 years ago
  4. agdgdgdgwngo Group Title
    Best Response
    You've already chosen the best response.
    Medals 2

    In C: http://ideone.com/6xFV2

    • 2 years ago
  5. rsmith6559 Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    agdgdgdgwngo, silly question: after the memcpy, wouldn't a '\0' need to be added to terminate str?

    • 2 years ago
  6. agdgdgdgwngo Group Title
    Best Response
    You've already chosen the best response.
    Medals 2

    right rsmith :(

    • 2 years ago
  7. hamza_b23 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    thanks a lot @agdgdgdgwngo

    • 2 years ago
    • Attachments:

See more questions >>>

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.