Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And Relational Theory Normal Forms And All That Jazz

Authors: Chris Date

1st Edition

1449328016, 978-1449328016

More Books

Students also viewed these Databases questions