How do i write a program which will use user input the


Program #1: how do I write a 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: How do i write a program which will use user input the
Reference No:- TGS02749696

Now Priced at $10 (50% Discount)

Recommended (94%)

Rated (4.6/5)