Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In java please, Problem 1 Write a new program RomanNumeralslI 1 and 10 (inclusi number (see http://en.wikipedia.org/wiki/Roman numerals). The difference between this program to ask
In java please,
Problem 1 Write a new program RomanNumeralslI 1 and 10 (inclusi number (see http://en.wikipedia.org/wiki/Roman numerals). The difference between this program to ask for and validate that the entered number is in the correct range number i one in the correct if-else in the main prog am named RomanNumeralslI that prompts the user to enter an integer between ve). The program should then display the Roman numeral equivalent for that and the RomanNumeral program in lab 4 is that this program will use a separate method and force the user to enter a n the specified range. It should keep prompting the user to enter integers until they enter t range. Since the user has to enter a number in the correct range to continue, the ram no longer needs to handle numbers that are not in the correct range. Example 1: Enter an integer from 1 to 10 (inclusive): 4 The Roman numeral for 4 is IV. Example 2: Enter an integer from 1 to 10 (inclusive): 3 -3 is not a valid choice. Enter an integer from 1 to 10 (inclusive)2 The Roman numeral for 2 is II. Example 3: Enter an integer from 1 to 10 (inclusive): 347 347 is not a valid choice Enter an integer from 1 to 10 (inclusive): -9 -9 is not a valid choice. Enter an integer from 1 to 10 (inclusive): o 0 is not a valid choice. Enter an integer from 1 to 10 (inclusive): 9 The Roman numeral for 9 is IX
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