Question: Java For this project you will write a program that converts numbers to Roman numerals. Your program must display the following string as a prompt:

 Java For this project you will write a program that converts

Java

For this project you will write a program that converts numbers to Roman numerals. Your program must display the following string as a prompt: "Enter a number in the range of 1 - 10:" The prompt must appear exactly as it is shown here. (Make sure that one space appears at the end of the string, after the colon.) After displaying the prompt, the program should read an integer from the keyboard. If the input is within the range of 1 through 10 , the program should then display the Roman numeral version of that number. If the input is not within the range of 1 through 10, the program should display the following string as an error message: "Invalid number." Your program class should be named RomanNumerals. Here are three sample runs of the program: Sample Run Enter a number in the range of 110:4 IV Sample Run Enter a number in the range of 110:8 VIII Sample Run Enter a number in the range of 110 : 12 Invalid number

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