Convert program 1 into using some sort of switch- case


Program #1: how do I wrte a java program which will use user input. The program should be called PrintNumberToWordie which prints "ONE", "TWO",... , "FIVE" UP to TEN if the int variable "number" is 1, 2,... , 5, 10, respectively be sure to code for the else/default option if no match is found. This program must Use (a) a "nested-if" statement to complete; (b) Secondly the program must have an additional if statement to check to see if the user input is divisible by 2.

Program #2: Convert Program #1 into using some sort of switch- case statement this program should be name PrintNumberToWordie2

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Convert program 1 into using some sort of switch- case
Reference No:- TGS02757617

Now Priced at $10 (50% Discount)

Recommended (95%)

Rated (4.7/5)