anonymous
  • anonymous
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
Computer Science
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
schrodinger
  • schrodinger
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
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.
anonymous
  • anonymous
if you enter 7919 in your code, i doubt you will get seven thousand nine hundred nineteen
anonymous
  • anonymous
sorry i didn't saw that thing , i'm just gonna take it off and post it later on after correction.

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

anonymous
  • anonymous
nobody wants to do it? :( I'll get to it myself
anonymous
  • anonymous
i will do it sometime later :D
anonymous
  • anonymous
http://ideone.com/nOnzN Now if anyone can help me debug it :-D
anonymous
  • anonymous
http://ideone.com/gAjDN
anonymous
  • anonymous
Found the bug, replaced || by && in the getstring() procedure and now it works fine. http://ideone.com/NP9ZE
anonymous
  • anonymous
http://ideone.com/oI2rZ#
anonymous
  • anonymous
http://ideone.com/NHiTY

Looking for something else?

Not the answer you are looking for? Search for more explanations.