Write a calculator program that lets users enter a simple mathematic operation and display the results as in the sample output shown below (bold text indicates user input).
Calculate: 92+1
Result = Ninety Three
Calculate: 92, 000 + 1
Result = Ninety Two Thousand
Calculate: 92, 000.01 + 1
Result = Ninety Two Thousand and One Point Zero One
Calculate: 92, 000.01 * 1 + 1 / 1
Result = Ninety Two Thousand and One Point Zero One
Your program MUST at least be able to interpret the following operators:
• +
• -
• /
• *
• %
• >
• <
• >=
• <=
p/s:pls can someone help me solve this problem and i am currently using knoppix software to solve this problem..pls help me..thx..
Last edited by mikedd; Aug 19th, 2008 at 1:29 pm. Reason: forget to mention about knoppix
but the problem now is i do not even know how to convert a single integer into a character.can u pls at least show me how to convert an integer into a character?
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.