Answer:
It displays an error message from the getDouble() method
Step-by-step explanation:
The above would be the result because of the following
1. Variable d is declared as a double variable and should be used as such.
2. The getDouble() method is also defined to handle double variables only.
When the program tries to accept at
weightInPounds = getDouble(sc, prompt);
The getDouble method is called immediately and since the value
"two hundred" entered in string, it can't handle this data type and it (the getDouble method) will display an error message