Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that takes an integer and returns it in words. e.g. 123 -> one hundred and twenty-three. We want the program not to


Write a program that takes an integer and returns it in words. e.g. 123 -> \"one hundred and twenty-three\". We want the program not to be language-specific and later it would be possible to add new languages. This flexibility is solved so that the words associated with the numbers are key-value pairs in the files associated with the program. Initially, you must be able to work in the program in French and English. As the formation of words denoting numbers differs in different languages, we also want to solve this difference with the help of a translation file. Therefore, if something is irregular, there must be a separate translation. If the program does not find a translation for a number, it compiles it according to the general rule. The program should report certain errors by throwing an exception. These situations are described in the program tests. A quality program is one that is as flexible as possible and with as little duplication as possible.





Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Programming In Java An Interdisciplinary Approach

Authors: Robert Sedgewick, Kevin Wayne

2nd Edition

0672337843, 9780672337840

More Books

Students also viewed these Programming questions