Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In java please, without maps or hashmaps because I haven't learned them Problem 1 Write a new program RomanNumeralslI 1 and 10 (inclusi number (see

In java please, without maps or hashmaps because I haven't learned them

image text in transcribed

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

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_2

Step: 3

blur-text-image_3

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

25 Vba Macros For Data Analysis In Microsoft Excel

Authors: Klemens Nguyen

1st Edition

B0CNSXYMTC, 979-8868455629

More Books

Students also viewed these Databases questions