Question
Java In java Question 5) SWITCH/CASE 2 - Complete the pseudocode below by including a SWITCH statement that takes the user input (an integer between
Java
In java Question 5) SWITCH/CASE 2 - Complete the pseudocode below by including a SWITCH statement that takes the user input (an integer between 1-5) and prints out a count up in its English equivalent. For example: if the user inputs 1, the code will print one, two on the next line, and so on up to five. If the user inputs 5, the code will print five and finish. (20 points)
CREATE inputNum
PRINT ("Please enter a number between 1-5 to start counting from:")
READ inputNum
WHILE inputNum >= 1 AND inputNum <= 5
BEGIN WHILE
YOUR CODE GOES HERE
END WHILE
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