Question: Chapter 4 : Programming Project 1 Unlimited tries Write a program that asks the user to enter a number within the range of 1 through

Chapter 4: Programming Project 1
Unlimited tries
Write a program that asks the user to enter a number within the range of 1 through 10. Use a switch statement to display the Roman numeral version of that number.
Input Validation: If the user enters a number that is less than 1 or greater than 10, display the message "Enter a number in the range 1 through 10."
The following two sample runs show the expected output of the program. The user's input is shown in bold. Notice the wording of the output and the placement of spaces and punctuation. Your program's output must match this.
Sample Run
Enter a number (1-10):7
The Roman numeral version of 7 is VII.
Sample Run
Enter a number (1-10):12
Enter a number in the range 1 through 10.
Pls short solution
Chapter 4 : Programming Project 1 Unlimited tries

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 Programming Questions!