Question: C# Assignment: Convert digits to words Write a program that prints out check amounts in words: For example $1,234 would print as: one thousand two
C# Assignment: Convert digits to words
Write a program that prints out check amounts in words:
For example $1,234 would print as: one thousand two hundred thirty four dollars. Note that "zero" never appears!
$9,017 would print as: "nine thousand seventeen dollars".
Handle amounts up to $9,999. Disregard printing cents.
To make things a little simpler you can enter 1234 instead of $1,234.
Suggestion: try using arrays instead of lengthy "if" statements. Remember, the less code you write, the less to debug.
Testing is important here, don't forget "edge cases" like:
9007
107
23
6
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
