Ask the user for a number between 1 and 10. Output the Roman numerals version of that number. if the numbers outside the 1-10 range, output an error message. Please write a code in Java that results like test case examples
Ask the user for a number between 1 and 10. Output the Roman numerals version of that number. if the numbers outside the 1-10 range, output an error message. Please write a code in Java that results like test case examples
Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter4: The Selection Structure
Section: Chapter Questions
Problem 3MQ7: Write a Case clause that specifies all numbers less than 0.
Related questions
Question
Ask the user for a number between 1 and 10. Output the Roman numerals version of that number. if the numbers outside the 1-10 range, output an error message.
Please write a code in Java that results like test case examples.
![Test Case 9
Enter a number between 1 and 10 \n
9 ENTER
IX \n
Test Case 10
Enter a number between 1 and 10 \n
10 ENTER
X\n
Test Case 11
Enter a number between 1 and 10|\n
0 ENTER
That's not between 1 and 10 \n](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fb78ee9d3-3ccc-4e1d-b0eb-92810c4d385b%2F2269eca6-af63-4d08-ac83-d4e3481381d7%2Flf1zzqi_processed.jpeg&w=3840&q=75)
Transcribed Image Text:Test Case 9
Enter a number between 1 and 10 \n
9 ENTER
IX \n
Test Case 10
Enter a number between 1 and 10 \n
10 ENTER
X\n
Test Case 11
Enter a number between 1 and 10|\n
0 ENTER
That's not between 1 and 10 \n
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 5 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Similar questions
Recommended textbooks for you
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT