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

agdgdgdgwngo

Here's a programming task, to be done in your language of choice: Write a function that takes a base-10 integer (don't worry about the sign) as input and outputs a string that is the English sentence for the number: int_to_word(7919) -> seven thousand nine hundred nineteen

  • 2 years ago
  • 2 years ago

  • This Question is Closed
  1. agdgdgdgwngo
    Best Response
    You've already chosen the best response.
    Medals 0

    bonus if you make it work for negative numbers. bonus if you make it work for fractions like 51.2202 bonus if you make it work with arbitrarily long numbers like some huge factorial.

    • 2 years ago
  2. Tomas.A
    Best Response
    You've already chosen the best response.
    Medals 0

    if you enter 7919 in your code, i doubt you will get seven thousand nine hundred nineteen

    • 2 years ago
  3. jaskaran
    Best Response
    You've already chosen the best response.
    Medals 1

    sorry i didn't saw that thing , i'm just gonna take it off and post it later on after correction.

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

    nobody wants to do it? :( I'll get to it myself

    • 2 years ago
  5. Tomas.A
    Best Response
    You've already chosen the best response.
    Medals 0

    i will do it sometime later :D

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

    http://ideone.com/nOnzN Now if anyone can help me debug it :-D

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

    http://ideone.com/gAjDN

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

    Found the bug, replaced || by && in the getstring() procedure and now it works fine. http://ideone.com/NP9ZE

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

    http://ideone.com/oI2rZ#

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

    http://ideone.com/NHiTY

    • 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.