NumberToWords

ITSE 2321 – OBJECT-ORIENTED PROGRAMMING (JAVA)
Program 11 – Strings
One common security method in check-writing requires that the amount be written in
numbers and spelled out in words as well. Even if someone is able to alter the
numerical amount of the check, it’s extremely difficult to change the amount in words.
Write a program that receives a numeric check amount, that is less than $1000.00, from
the user and writes the word equivalent of the amount.
For example, the amount 112.43 should be written as:
One Hundred Twelve and 43/100 dollars
Do not accept invalid amounts.
Allow the user to run the program as many times as possible until a sentinel value of
zero (0) has been entered for the check amount.
Run your program with the following data and copy and paste the output to a file:
112.43
1000.00
0.23
550.301
2.10
25.50
0
No input, processing, or output should happen in the main method. All work
should be delegated to other non-static methods. Include the recommended
minimum documentation for each method. See the program one template for more
details.
Every method in your program should be limited to performing a single, welldefined task, and the name of the method should express that task effectively.
Create a folder named, fullname_program11. Copy your source code and the output
file to the folder. Zip the folder and upload it to Blackboard.
You will not get credit if the program is not written or does not work as expected.

×
New Download