check this java code 

import java.util.Scanner;

public class Activity4 {
    private static final String[] units = {"", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine"};
    private static final String[] teens = {"Ten", "Eleven", "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen", "Seventeen", "Eighteen", "Nineteen"};
    private static final String[] tens = {"", "", "Twenty", "Thirty", "Forty", "Fifty", "Sixty", "Seventy", "Eighty", "Ninety"};
    private static final String[] romanNumerals = {"M", "CM", "D", "CD", "C", "XC", "L", "XL", "X", "IX", "V", "IV", "I"};
    private static final int[] values = {1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1};

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("This program using Decision and Repetition Control Structures displays how many digit/s inputted by the user,");
        System.out.println("the equivalent inputted number in words, and in Roman Numerals.");

        while (true) {
            System.out.print("\n      Enter an Integer Number: ");
            String input = scanner.nextLine();

            try {
                int number = Integer.parseInt(input);

                // Validate input range (0 - 99,999)
                if (number < 0 || number > 99999) {
                    System.out.println("\nYou entered an INVALID INPUT.");
                } else {
                    // Display number of digits
                    int digits = input.length();
                    System.out.printf("\n      You entered a %d digit number.\n", digits);
                    System.out.println("      The number is " + number);

                    // Convert number to words
                    String numberInWords = numberToWords(number);
                    System.out.println("\n      The number in words : " + numberInWords);

                    // Convert number to Roman numerals (only for 1 - 3999)
                    String roman = numberToRoman(number);
                    System.out.println("      In Roman Numerals : " + roman);
                }
            } catch (NumberFormatException e) {
                System.out.println("\nYou entered an INVALID INPUT.");
            }

            // Ask user to input another number
            System.out.print("\n\n      Input Another? [Y/N]: ");
            String another = scanner.nextLine().trim().toUpperCase();
            if (!another.equals("Y")) {
                System.out.println("\n      Program Terminated…");
                break;
            }
        }

        scanner.close();
    }

    // Convert number to words
    private static String numberToWords(int num) {
        if (num == 0) return "Zero";
        if (num < 10) return units[num];
        if (num < 20) return teens[num - 10];
        if (num < 100) return tens[num / 10] + (num % 10 != 0 ? " " + units[num % 10] : "");
        if (num < 1000) return units[num / 100] + " Hundred" + (num % 100 != 0 ? " " + numberToWords(num % 100) : "");
        return numberToWords(num / 1000) + " Thousand" + (num % 1000 != 0 ? " " + numberToWords(num % 1000) : "");
    }

    // Convert number to Roman numerals
    private static String numberToRoman(int num) {
        if (num < 1 || num > 3999) return "INPUT OUT OF RANGE";
        StringBuilder roman = new StringBuilder();
        for (int i = 0; i < values.length; i++) {
            while (num >= values[i]) {
                roman.append(romanNumerals[i]);
                num -= values[i];
            }
        }
        return roman.toString();
    }
}


i think this part 

This program using Decision and Repetition Control Structures displays how many digit/s inputted by the us
er,
the equivalent inputted number in words, and in Roman Numerals.

should be in one line only right?

also this is the sample output  from the pdf

Enter an Integer Number: 1956
You entered a four digit number.
The number is 1956
The number in words : One Thousand Nine Hundred Fifty Six
In Roman Numerals : MCMLVI

this is the output from the code

  Enter an Integer Number: 1928

      You entered a 4 digit number.
      The number is 1928



      The number in words : One Thousand Nine Hundred Twenty Eight
      In Roman Numerals : MCMXXVIII

it has space in the middle