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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started