Ace school

with brainly

  • Get help from millions of students
  • Learn from experts with step-by-step explanations
  • Level-up by helping others

A community for students.

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
See more answers at brainly.com
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.

Get this expert

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this and thousands of other questions

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.
if you enter 7919 in your code, i doubt you will get seven thousand nine hundred nineteen
sorry i didn't saw that thing , i'm just gonna take it off and post it later on after correction.

Not the answer you are looking for?

Search for more explanations.

Ask your own question

Other answers:

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

Not the answer you are looking for?

Search for more explanations.

Ask your own question