Question: Program #1:Write a program which will use user input. The program should be calledPrintNumberToWordiewhich prints ONE, TWO,... , FIVE UP to TENif theintvariable number is

Program #1:Write a program which will use user input. The program should be calledPrintNumberToWordiewhich prints "ONE", "TWO",... , "FIVE" UP to TENif theintvariable "number" is 1, 2,... , 5,10, respectivelybe sure to code for the else/default option if no match is found.This program mustUse (a) a "nested-if" statementto complete;(b) Secondlythe 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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!