Question
Need help in Java Converting numbers to Roman Numerals (some of them, not all). Must use the switch statement for this exercise. Ask the user
Need help in Java
Converting numbers to Roman Numerals (some of them, not all). Must use the switch statement for this exercise. Ask the user for his or her name, and a number between 1 and 10. If the number entered by the user is not a valid number (between 1 and 10, inclusive), issue an error message and display the users name. If the number is valid, display the corresponding Roman numeral number and the users name. Hope you can perform a simple web search to find the conversion codes (I is 1, II is 2, etc.). The output should include the input number and the corresponding Roman numeral. For example, something like: The Roman number for 1 is I. In addition, generate a random number between 1 and 10 and display the equivalent Roman numeral.
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