Got Homework?
Connect with other students for help. It's a free community.
Here's the question you clicked on:
 0 viewing
Here's a programming task, to be done in your language of choice: Write a function that takes a base10 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
Here's a programming task, to be done in your language of choice: Write a function that takes a base10 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

agdgdgdgwngoBest ResponseYou've already chosen the best response.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

Tomas.ABest ResponseYou've already chosen the best response.0
if you enter 7919 in your code, i doubt you will get seven thousand nine hundred nineteen
 2 years ago

jaskaranBest ResponseYou've already chosen the best response.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

agdgdgdgwngoBest ResponseYou've already chosen the best response.0
nobody wants to do it? :( I'll get to it myself
 2 years ago

Tomas.ABest ResponseYou've already chosen the best response.0
i will do it sometime later :D
 2 years ago

agdgdgdgwngoBest ResponseYou've already chosen the best response.0
http://ideone.com/nOnzN Now if anyone can help me debug it :D
 2 years ago

agdgdgdgwngoBest ResponseYou've already chosen the best response.0
Found the bug, replaced  by && in the getstring() procedure and now it works fine. http://ideone.com/NP9ZE
 2 years ago
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
 Engagement 19 Mad Hatter
 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.