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.
icon
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
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
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 5 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT