diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..6711ab6
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..95c35be
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
new file mode 100644
index 0000000..60919c4
--- /dev/null
+++ b/.idea/workspace.xml
@@ -0,0 +1,302 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1539259388758
+
+
+ 1539259388758
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 9.0
+
+
+
+
+
+
+
+
+
+
+
+ 10 (1)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/RomanNumerals.iml b/RomanNumerals.iml
new file mode 100644
index 0000000..3506760
--- /dev/null
+++ b/RomanNumerals.iml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/out/production/RomanNumerals/Main.class b/out/production/RomanNumerals/Main.class
new file mode 100644
index 0000000..8d06ab6
Binary files /dev/null and b/out/production/RomanNumerals/Main.class differ
diff --git a/out/production/RomanNumerals/RomanNumerals.class b/out/production/RomanNumerals/RomanNumerals.class
new file mode 100644
index 0000000..e5fd175
Binary files /dev/null and b/out/production/RomanNumerals/RomanNumerals.class differ
diff --git a/src/Main.java b/src/Main.java
new file mode 100644
index 0000000..c780340
--- /dev/null
+++ b/src/Main.java
@@ -0,0 +1,17 @@
+import java.util.Scanner;
+
+public class Main {
+
+
+ public static void main(String[] args) {
+
+ RomanNumerals translator = new RomanNumerals();
+
+ Scanner input = new Scanner(System.in);
+
+ int i = input.nextInt();
+
+ translator.convertToRoman(i);
+
+ }
+}
diff --git a/src/RomanNumerals.java b/src/RomanNumerals.java
index 20904f0..889a91b 100644
--- a/src/RomanNumerals.java
+++ b/src/RomanNumerals.java
@@ -1,8 +1,141 @@
public class RomanNumerals {
- public int convertToInteger(String romanNum) {
- // To be Implemented
- return 0;
-
+
+ private final String MESSAGE_CANNOT_PROCESS = "Cannot process, ";
+
+ private final String[] romans = {"I", "IV", "V", "IX", "X", "XL", "L", "XC", "C", "CD", "D", "CM", "M"};
+ private final int[] numerals = { 1, 4, 5, 9, 10, 40, 50, 90, 100, 400, 500, 900, 1000};
+ private String translation;
+
+ //used in loops
+ String coded;
+ int codedZero;
+ char a;
+ int c;
+
+
+ public void recreateInt(int number){
+
+ coded = Integer.toString(number);
+ a = coded.charAt(0);
+
+ codedZero = Integer.parseInt(String.valueOf(a));
+ int i;
+
+ do {
+
+ switch (coded.length()) {
+ case 4:
+
+
+ if (codedZero > 3) {
+ System.out.println(MESSAGE_CANNOT_PROCESS + "Number higher than 3999");
+ break;
+ } else {
+
+ for (i = 0; i < codedZero; i++) {
+ convertToRoman(1000);
+ }
+ }
+
+ reset();
+
+ case 3:
+
+ if (isCharOneFourFiveNine(a)) {
+ convertToRoman(codedZero * 100);
+ } else if (a != '0') {
+ loop(100);
+ }
+
+ reset();
+
+ case 2:
+
+ if (isCharOneFourFiveNine(a)) {
+ convertToRoman(codedZero * 10);
+ } else if (a != '0') {
+
+ loop(10);
+
+ }
+
+ reset();
+
+ case 1:
+
+ if (isCharOneFourFiveNine(a)) {
+ c = codedZero;
+ convertToRoman(c);
+ } else if (a != '0') {
+ loop(1);
+ }
+
+ coded=null;
+
+ default:
+ System.out.println(MESSAGE_CANNOT_PROCESS + "Input is zero or less");
+ break;
+ }
+ }while (coded.length()==0);
+
+ }
+
+ public void reset (){
+ coded = coded.substring(1);
+ a = coded.charAt(0);
+ codedZero = Integer.parseInt(String.valueOf(a));
+ }
+
+ public void loop (int multiply){
+
+ do {
+
+ if (codedZero>5){
+ convertToRoman(codedZero*multiply);
+ codedZero -= 5;
+ }else {
+ convertToRoman(multiply);
+ codedZero--;
+ }
+
+ }while (codedZero!=0);
+ }
+
+
+
+ public void convertToRoman(int number) {
+
+ for (int i = 0; i