h7. 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