Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

prints Nine thousand, eight hundred and seventy six and for - 1 0 0 6 7 0 0 1 1 it prints Negative one hundred

prints "Nine thousand, eight hundred and seventy six" and for -100670011 it prints "Negative one hundred million, six hundred and seventy thousand, eleven".
How dose the program work?
user quits the program by entering q.
Example Run of the program
The red color indicates that the text is user's input and the text in black is the program's output.
Please enter a whole number between -999999999999 and +999999999999. Enter q to exit: +123
One hundred and twenty three
Please enter a whole number between -999999999999 and +999999999999. Enter q to exit: 123123123123123
Invalid entry. The number you entered is too large. Please try again.
Please enter a whole number between -999999999999 and +999999999999. Enter q to exit: -123123123123123
Invalid entry. The number you entered is too small.
Please enter a whole number between -999999999999 and +999999999999. Enter q to exit: -123987456501
Please enter a whole number between -999999999999 and +999999999999. Enter q to exit: x100
Invalid entry. Your entry is not a number. Please try again.
Please enter a whole number between -999,999,999,999 and +999,999,999,999. Enter q to exit: 100,001
Invalid entry. Your entry is not a number. Please try again.
Please enter a whole number between -999999999999 and +999999999999. Enter q to exit: 200.0
Invalid entry. Your entry is not a whole number. Please try again.
Please enter a whole number between -999999999999 and +999999999999. Enter q to exit: -1234
Negative one thousand, two hundred and thirty four
Please enter a whole number between -999999999999 and +999999999999. Enter q to exit: 00420
Four hundred and twentyprints "Nine thousand, eight hundred and seventy six" and for -100670011 it prints "Negative one hundred million, six hundred and seventy thousand, eleven".
How dose the program work?
user quits the program by entering q.
Example Run of the program
The red color indicates that the text is user's input and the text in black is the program's output.
Please enter a whole number between -999999999999 and +999999999999. Enter q to exit: +123
One hundred and twenty three
Please enter a whole number between -999999999999 and +999999999999. Enter q to exit: 123123123123123
Invalid entry. The number you entered is too large. Please try again.
Please enter a whole number between -999999999999 and +999999999999. Enter q to exit: -123123123123123
Invalid entry. The number you entered is too small.
Please enter a whole number between -999999999999 and +999999999999. Enter q to exit: -123987456501
Please enter a whole number between -999999999999 and +999999999999. Enter q to exit: x100
Invalid entry. Your entry is not a number. Please try again.
Please enter a whole number between -999,999,999,999 and +999,999,999,999. Enter q to exit: 100,001
Invalid entry. Your entry is not a number. Please try again.
Please enter a whole number between -999999999999 and +999999999999. Enter q to exit: 200.0
Invalid entry. Your entry is not a whole number. Please try again.
Please enter a whole number between -999999999999 and +999999999999. Enter q to exit: -1234
Negative one thousand, two hundred and thirty four
Please enter a whole number between -999999999999 and +999999999999. Enter q to exit: 00420
Four hundred and twentymillion, six hundred and seventy thousand, eleven".
How dose the program work?
user quits the program by entering q.
Example Run of the program
The red color indicates that the text is user's input and the text in black is the program's output.
Please enter a whole number between -999999999999 and +999999999999. Enter q to exit: +123 One hundred and twenty three
One hundred and twenty three
Please enter a whole number between -999999999999 and +999999999999. Enter q to exit: 123123123123123
Invalid entry. The number you entered is too large. Please try again.
Please enter a whole number between -999999999999 and +999999999999. Enter q to exit: -123123123123123
Invalid entry. The number you entered is too small.
Please enter a whole number between -999999999999 and +999999999999. Enter q to exit: -123987456501
hundred and twenty three billion, nine hundred and eighty seven million, four hundred and fifty six thousand, five hundred and one
Please enter a whole number between -999999999999 and +999999999999. Enter q to exit: x100
Invalid entry. Your entry is not a number. Please try again.
Please enter a whole number between -999,999,999,999 and +999,999,999,999. Enter q to exit: 100,001 Invalid entry. Your entry is not a number. Please try agin.
Please enter a whole number between -999999999999 and +999999999999. Enter q to exit: 200.0
Invalid entry. Your entry is not a whole number. Please try again.
Please enter a whole number between -999999999999 and +999999999999. Enter q to exit: -1234
Negative one thousand, two hundred and thirty four
Please enter a wh
image text in transcribed

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

Database Programming With Visual Basic .NET

Authors: Carsten Thomsen

2nd Edition

1590590325, 978-1590590324

More Books

Students also viewed these Databases questions

Question

=+43-3 Discuss how stress makes us more vulnerable to disease.

Answered: 1 week ago

Question

Explain the function and purpose of the Job Level Table.

Answered: 1 week ago