Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Hi. Please follow ALL of these instructions for this Introductory Java HW code.

ID: 3940501 • Letter: H

Question

Hi. Please follow ALL of these instructions for this Introductory Java HW code. Also please INDENT it according to the instructions givin below. Follow all of the instructions including indentation and ill definetly leave you a thumbs up!


Indentation:
You must use at least two methods in this program. You must use at least one method with an array parameter. Do not use any global variables in this assignment. Do not use the Java random number generator in this assignment. Turn in the program listing and sample program output(s)

Explanation / Answer

Breaking it down:

M{0,4}

This specifies the thousands section and basically restrains it to between 0 and 4000. It's a relatively simple:

(CM|CD|D?C{0,3})

Slightly more complex, this is for the hundreds section and covers all the possibilities:

(XC|XL|L?X{0,3})

Same rules as previous section but for the tens place:

(IX|IV|V?I{0,3})

This is the units section, handling 0 through 9 and also similar to the previous two sections (Roman numerals, despite their seeming weirdness, follow some logical rules once you figure out what they are):

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote