Hello! I need help. I posted the question below and the code I was given. I need to fill in the yellow underlined and bolded text in the code posted below. I had originally typed..
if (part >= 1000) {
name = digitName(part / 1000) + "thousand ";
part = part % 1000;
}
QUESTION: The intName method in the "Stepwise Refinement" section accepted arguments < 1,000. Using a recursive call, extend its range to 999,999. For example an input of 12,345 should return "twelve thousand three hundred forty five".
ORIGINAL CODE GIVEN:
** note: the code is very long so I have attached the 3 corresponding pictures, they are all in order and are one continuous code**