The assignment description is as follows:
Your objective is to write a program that prompts the user to enter a non-negative decimal value of less than 1000. Once a valid input is entered, your program will print the dollar and cent values of the input in words. If the entered numerical value fall outside the valid range, then your program will print an error message and successfully terminate. For this program you only need to consider up to 2 significant digits after the decimal point.
Your objective is to write a program that prompts the user to enter a non-negative decimal value of less than 1000. Once a valid input is entered, your program will print the dollar and cent values of the input in words. If the entered numerical value fall outside the valid range, then your program will print an error message and successfully terminate. For this program you only need to consider up to 2 significant digits after the decimal point.
Comment