MAKS_Enjoyer

Mental Anguish: Infinity Edition

Sep 19th, 2022 (edited)
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 90.43 KB | Source Code | 0 0
  1. import java.io.*;
  2. import java.time.*;
  3. import java.util.*;
  4. import java.nio.file.*;
  5. import org.apache.poi.xwpf.usermodel.*;
  6. import java.time.format.DateTimeFormatter;
  7.  
  8. public class i_will_shoot_yourself {
  9.     static String bussy (String altitude_Of_Operation_Chosen) {
  10.         String nozzle_Type_Chosen = null;
  11.         switch (altitude_Of_Operation_Chosen) {
  12.             case "0-10 km (Sea Level)" -> {
  13.                 String[] nozzle_Type_List_SL = {"De Laval Cone (Without Nozzle Extension)",
  14.                         "De Laval Bell (Without Nozzle Extension)"};
  15.                 Collections.shuffle(Arrays.asList(nozzle_Type_List_SL));
  16.                 Random nozzleTypeSLspikeChosen = new Random();
  17.                 int nozzleTypeSLspikeChosen_index = nozzleTypeSLspikeChosen.nextInt(nozzle_Type_List_SL.length);
  18.                 nozzle_Type_Chosen = nozzle_Type_List_SL[nozzleTypeSLspikeChosen_index];
  19.             } case "20-30 km (Medium Atmosphere)" -> {
  20.                 String[] nozzle_Type_List_HA = {"De Laval Bell (Without Nozzle Extension)", "De Laval Cone (With Nozzle Extension)",
  21.                         "De Laval Bell (With Nozzle Extension)", "Dual Bell Nozzle"};
  22.                 Collections.shuffle(Arrays.asList(nozzle_Type_List_HA));
  23.                 Random nozzleTypeHAspikeChosen = new Random();
  24.                 int nozzleTypeHAspikeChosen_index = nozzleTypeHAspikeChosen.nextInt(nozzle_Type_List_HA.length);
  25.                 nozzle_Type_Chosen = nozzle_Type_List_HA[nozzleTypeHAspikeChosen_index];
  26.             } case "30-80 km (High Atmosphere)" -> {
  27.                 String[] nozzle_Type_List_HAi = {"De Laval Cone (With Nozzle Extension)", "De Laval Bell (With Nozzle Extension)",
  28.                         "Dual Bell Nozzle"};
  29.                 Collections.shuffle(Arrays.asList(nozzle_Type_List_HAi));
  30.                 Random nozzleTypeHAispikeChosen = new Random();
  31.                 int nozzleTypeHAispikeChosen_index = nozzleTypeHAispikeChosen.nextInt(nozzle_Type_List_HAi.length);
  32.                 nozzle_Type_Chosen = nozzle_Type_List_HAi[nozzleTypeHAispikeChosen_index];
  33.             } case "80 km+ (Vacuum)" -> {
  34.                 String[] nozzle_Type_List_VA = {"De Laval Cone (With Nozzle Extension)",
  35.                         "De Laval Bell (With Nozzle Extension)", "Expanding Nozzle"};
  36.                 Collections.shuffle(Arrays.asList(nozzle_Type_List_VA));
  37.                 Random nozzleTypeVAspikeChosen = new Random();
  38.                 int nozzleTypeVAspikeChosen_index = nozzleTypeVAspikeChosen.nextInt(nozzle_Type_List_VA.length);
  39.                 nozzle_Type_Chosen = nozzle_Type_List_VA[nozzleTypeVAspikeChosen_index];
  40.             } case "Any Altitude (0-80 km+)" -> {
  41.                 String[] nozzle_Type_List_Aero = {"Linear Aerospike Nozzle", "Toroidal Aerospike Nozzle", "Expansion-Deflection Nozzle"};
  42.                 Collections.shuffle(Arrays.asList(nozzle_Type_List_Aero));
  43.                 Random nozzleTypeAerospikeChosen = new Random();
  44.                 int nozzleTypeAerospikeChosen_index = nozzleTypeAerospikeChosen.nextInt(nozzle_Type_List_Aero.length);
  45.                 nozzle_Type_Chosen = nozzle_Type_List_Aero[nozzleTypeAerospikeChosen_index];
  46.             }
  47.         }
  48.         return nozzle_Type_Chosen;
  49.     }
  50.     static String ass_crack(String[] engine_Name1, String[] firstPart) {
  51.         String engine_Name;
  52.         Collections.shuffle(Arrays.asList(engine_Name1));
  53.         Collections.shuffle(Arrays.asList(firstPart));
  54.         Random engineNameChosen = new Random();
  55.         Random firstPartC = new Random();
  56.         int engineNameChosen_index = engineNameChosen.nextInt(engine_Name1.length);
  57.         int firstPart_index = firstPartC.nextInt(firstPart.length);
  58.         String engNameFinalf = " " + engine_Name1[engineNameChosen_index];
  59.         String firstPart_f = firstPart[firstPart_index] + "-";
  60.         int finalNumber = 12 + ((int) (Math.random() * 1001));
  61.         if (finalNumber % 8 == 0) {
  62.             engine_Name = firstPart_f + finalNumber + engNameFinalf;
  63.         } else {
  64.             char randomizedCharacter;
  65.             int uio93 = 1 + ((int) (Math.random() * 1001));
  66.             int uio94 = 1 + ((int) (Math.random() * 11));
  67.             Random randomLetter = new Random();
  68.             if (uio93 % uio94 == 0) {
  69.                 randomizedCharacter = (char) (randomLetter.nextInt(26) + 'a');
  70.                 while (randomizedCharacter == 'o' || randomizedCharacter == 'i' || randomizedCharacter == 'q' || randomizedCharacter == 'e' || randomizedCharacter == 'h' || randomizedCharacter == 'g' || randomizedCharacter == 'c' || randomizedCharacter == 'j') {
  71.                     randomizedCharacter = (char) (randomLetter.nextInt(26) + 'a');
  72.                     if (randomizedCharacter == 'o' || randomizedCharacter == 'i' || randomizedCharacter == 'q' || randomizedCharacter == 'e' || randomizedCharacter == 'h' || randomizedCharacter == 'g' || randomizedCharacter == 'c' || randomizedCharacter == 'j') {
  73.                         break;
  74.                     }
  75.                 }
  76.             } else {
  77.                 randomizedCharacter = (char) (randomLetter.nextInt(26) + 'A');
  78.                 while (randomizedCharacter == 'O' || randomizedCharacter == 'I' || randomizedCharacter == 'Q') {
  79.                     randomizedCharacter = (char) (randomLetter.nextInt(26) + 'A');
  80.                     if (randomizedCharacter == 'O' || randomizedCharacter == 'I' || randomizedCharacter == 'Q') {
  81.                         break;
  82.                     }
  83.                 }
  84.             }
  85.             engine_Name = firstPart_f + finalNumber + randomizedCharacter + engNameFinalf;
  86.         }
  87.         return engine_Name;
  88.     }
  89.     static void output_mono(String ENN, String ECC, String AOOC, String PLC, String NTLC, String CMC) throws IOException {
  90.         String lbrk = "========================================================================================";
  91.         File pathn1 = new File("C:/Users/Public/Operational_Functional_Block/src/GeneratedFiles/ofb_rex.docx");
  92.         System.out.println(lbrk + "\n" + "Your Engine is called: " + ENN + "\n");
  93.         System.out.println("Your Engine Cycle is: " + ECC);
  94.         System.out.println("Your Propellant is: " + PLC);
  95.         System.out.println("Your Altitude of operation is: " + AOOC);
  96.         System.out.println("Your engine's nozzle type should be : " + NTLC);
  97.         System.out.println("Tank repressurisation would be impractical and unnecessary");
  98.         System.out.println("The Cooling Mechanism to be used would be " + CMC + '\n');
  99.         XWPFDocument docx = new XWPFDocument();
  100.         if (new File(String.valueOf(pathn1)).exists()) {
  101.             FileInputStream jesus = new FileInputStream(String.valueOf(pathn1));
  102.             docx = new XWPFDocument(jesus);
  103.         }
  104.         XWPFParagraph par = docx.createParagraph();
  105.         XWPFRun run = par.createRun();
  106.         run.setFontSize(12);
  107.         run.setBold(true);
  108.         run.setFontFamily("Arial");
  109.         run.setText("Your Engine is called: ");
  110.         run.setTextPosition(15);
  111.         XWPFRun run2 = par.createRun();
  112.         run2.setFontSize(12);
  113.         run.setBold(true);
  114.         run2.setFontFamily("Arial");
  115.         run2.setText(ENN);
  116.         run2.setTextPosition(15);
  117.         run2.addBreak();
  118.         // -----------------------------------------------------------
  119.         XWPFRun run3 = par.createRun();
  120.         run3.setFontSize(10);
  121.         run3.setBold(true);
  122.         run3.setFontFamily("Arial");
  123.         run3.setText("Your Engine Cycle is: ");
  124.         XWPFRun run4 = par.createRun();
  125.         run4.setFontSize(10);
  126.         run4.setFontFamily("Arial");
  127.         run4.setText(ECC);
  128.         run4.addBreak();
  129.         // -----------------------------------------------------------
  130.         XWPFRun run5 = par.createRun();
  131.         run5.setFontSize(10);
  132.         run5.setBold(true);
  133.         run5.setFontFamily("Arial");
  134.         run5.setText("Your Propellant is: ");
  135.         XWPFRun run6 = par.createRun();
  136.         run6.setFontSize(10);
  137.         run6.setFontFamily("Arial");
  138.         run6.setText(PLC);
  139.         run6.addBreak();
  140.         // -----------------------------------------------------------
  141.         XWPFRun run9 = par.createRun();
  142.         run9.setFontSize(10);
  143.         run9.setBold(true);
  144.         run9.setFontFamily("Arial");
  145.         run9.setText("Your engine's nozzle type should be: ");
  146.         XWPFRun run0 = par.createRun();
  147.         run0.setFontSize(10);
  148.         run0.setFontFamily("Arial");
  149.         run0.setText(NTLC);
  150.         run0.addBreak();
  151.         // -----------------------------------------------------------
  152.         XWPFRun run10 = par.createRun();
  153.         run10.setFontSize(10);
  154.         run10.setBold(true);
  155.         run10.setFontFamily("Arial");
  156.         run10.setText("Your Altitude of operation is: ");
  157.         XWPFRun run23 = par.createRun();
  158.         run23.setFontSize(10);
  159.         run23.setFontFamily("Arial");
  160.         run23.setText(AOOC);
  161.         run23.addBreak();
  162.         // -----------------------------------------------------------
  163.         XWPFRun run11 = par.createRun();
  164.         run11.setFontSize(10);
  165.         run11.setBold(true);
  166.         run11.setFontFamily("Arial");
  167.         run11.setText("Tank repressurisation would be impractical and unnecessary");
  168.         run11.addBreak();
  169.         // -----------------------------------------------------------
  170.         XWPFRun run13 = par.createRun();
  171.         run13.setFontSize(10);
  172.         run13.setBold(true);
  173.         run13.setFontFamily("Arial");
  174.         run13.setText("The Cooling Mechanism to be used would be ");
  175.         XWPFRun run14 = par.createRun();
  176.         run14.setFontSize(10);
  177.         run14.setBold(true);
  178.         run14.setFontFamily("Arial");
  179.         run14.setText(CMC);
  180.         run14.addBreak();
  181.         run14.addBreak();
  182.         // -----------------------------------------------------------
  183.         try (FileOutputStream out = new FileOutputStream(String.valueOf(pathn1))) {
  184.             docx.write(out);
  185.         }
  186.     }
  187.     public static void output_ex(String ENN, String ECC, String OCC, String FCC, String AOOC, String NTC, String TRR, String CMC) throws IOException {
  188.         String lbrk = "========================================================================================";
  189.         File pathn1 = new File("C:/Users/Public/Operational_Functional_Block/src/GeneratedFiles/ofb_rex.docx");
  190.         System.out.println(lbrk + "\n" + "Your Engine is called: " + ENN + "\n");
  191.         System.out.println("Your Engine Cycle is: " + ECC);
  192.         System.out.println("Your Oxidizer is: " + OCC);
  193.         System.out.println("Your Fuel is: " + FCC);
  194.         System.out.println("Your Altitude of operation is: " + AOOC);
  195.         System.out.println("Your engine's nozzle type should be : " + NTC);
  196.         System.out.println("Tank repressurisation would be done " + TRR);
  197.         System.out.println("The Cooling Mechanism to be used would be " + CMC + '\n');
  198.  
  199.         XWPFDocument docx = new XWPFDocument();
  200.         if (new File(String.valueOf(pathn1)).exists()) {
  201.             FileInputStream jesus = new FileInputStream(String.valueOf(pathn1));
  202.             docx = new XWPFDocument(jesus);
  203.         }
  204.         XWPFParagraph par = docx.createParagraph();
  205.         XWPFRun run = par.createRun();
  206.         run.setFontSize(12);
  207.         run.setBold(true);
  208.         run.setFontFamily("Arial");
  209.         run.setText("Your Engine is called: ");
  210.         run.setTextPosition(15);
  211.         XWPFRun run2 = par.createRun();
  212.         run2.setFontSize(12);
  213.         run.setBold(true);
  214.         run2.setFontFamily("Arial");
  215.         run2.setText(ENN);
  216.         run2.setTextPosition(15);
  217.         run2.addBreak();
  218.         // -----------------------------------------------------------
  219.         XWPFRun run3 = par.createRun();
  220.         run3.setFontSize(10);
  221.         run3.setBold(true);
  222.         run3.setFontFamily("Arial");
  223.         run3.setText("Your Engine Cycle is: ");
  224.         XWPFRun run4 = par.createRun();
  225.         run4.setFontSize(10);
  226.         run4.setFontFamily("Arial");
  227.         run4.setText(ECC);
  228.         run4.addBreak();
  229.         // -----------------------------------------------------------
  230.         XWPFRun run5 = par.createRun();
  231.         run5.setFontSize(10);
  232.         run5.setBold(true);
  233.         run5.setFontFamily("Arial");
  234.         run5.setText("Your Oxidizer is: ");
  235.         XWPFRun run6 = par.createRun();
  236.         run6.setFontSize(10);
  237.         run6.setFontFamily("Arial");
  238.         run6.setText(OCC);
  239.         run6.addBreak();
  240.         // -----------------------------------------------------------
  241.         XWPFRun run8 = par.createRun();
  242.         run8.setFontSize(10);
  243.         run8.setBold(true);
  244.         run8.setFontFamily("Arial");
  245.         run8.setText("Your Fuel is: ");
  246.         XWPFRun run7 = par.createRun();
  247.         run7.setFontSize(10);
  248.         run7.setFontFamily("Arial");
  249.         run7.setText(FCC);
  250.         run7.addBreak();
  251.         // -----------------------------------------------------------
  252.         XWPFRun run9 = par.createRun();
  253.         run9.setFontSize(10);
  254.         run9.setBold(true);
  255.         run9.setFontFamily("Arial");
  256.         run9.setText("Your engine's nozzle type should be: ");
  257.         XWPFRun run0 = par.createRun();
  258.         run0.setFontSize(10);
  259.         run0.setFontFamily("Arial");
  260.         run0.setText(NTC);
  261.         run0.addBreak();
  262.         // -----------------------------------------------------------
  263.         XWPFRun run10 = par.createRun();
  264.         run10.setFontSize(10);
  265.         run10.setBold(true);
  266.         run10.setFontFamily("Arial");
  267.         run10.setText("Your Altitude of operation is: ");
  268.         XWPFRun run23 = par.createRun();
  269.         run23.setFontSize(10);
  270.         run23.setFontFamily("Arial");
  271.         run23.setText(AOOC);
  272.         run23.addBreak();
  273.         // -----------------------------------------------------------
  274.         XWPFRun run11 = par.createRun();
  275.         run11.setFontSize(10);
  276.         run11.setBold(true);
  277.         run11.setFontFamily("Arial");
  278.         run11.setText("Tank repressurisation would be done ");
  279.         XWPFRun run12 = par.createRun();
  280.         run12.setFontSize(10);
  281.         run12.setBold(true);
  282.         run12.setFontFamily("Arial");
  283.         run12.setText(TRR);
  284.         run12.addBreak();
  285.         // -----------------------------------------------------------
  286.         XWPFRun run13 = par.createRun();
  287.         run13.setFontSize(10);
  288.         run13.setBold(true);
  289.         run13.setFontFamily("Arial");
  290.         run13.setText("The Cooling Mechanism to be used would be ");
  291.         XWPFRun run14 = par.createRun();
  292.         run14.setFontSize(10);
  293.         run14.setBold(true);
  294.         run14.setFontFamily("Arial");
  295.         run14.setText(CMC);
  296.         run14.addBreak();
  297.         run14.addBreak();
  298.         // -----------------------------------------------------------
  299.         try (FileOutputStream out = new FileOutputStream(String.valueOf(pathn1))) {
  300.             docx.write(out);
  301.         }
  302.     }
  303.     public static void output_nt(String ENN, String ECC, String AOOC, String NCC, String PLC, String RFC, String NTLC,
  304.                                  String TRC, String CMC) throws IOException {
  305.         String lbrk = "========================================================================================";
  306.         File pathn1 = new File("C:/Users/Public/Operational_Functional_Block/src/GeneratedFiles/ofb_rex.docx");
  307.         System.out.println(lbrk + "\n" + "Your Engine is called: " + ENN + "\n");
  308.         System.out.println("Your Engine Cycle is: " + NCC + " " + ECC);
  309.         System.out.println("Your Propellant is: " + PLC);
  310.         System.out.println("Your Reactor's Fuel is: " + RFC);
  311.         System.out.println("Your Altitude of operation is: " + AOOC);
  312.         System.out.println("Your engine's nozzle type should be : " + NTLC);
  313.         System.out.println("Tank repressurisation would be done " + TRC);
  314.         System.out.println("The Cooling Mechanism to be used would be " + CMC + '\n');
  315.  
  316.         XWPFDocument docx = new XWPFDocument();
  317.         if (new File(String.valueOf(pathn1)).exists()) {
  318.             FileInputStream jesus = new FileInputStream(String.valueOf(pathn1));
  319.             docx = new XWPFDocument(jesus);
  320.         }
  321.         XWPFParagraph par = docx.createParagraph();
  322.         XWPFRun run = par.createRun();
  323.         run.setFontSize(12);
  324.         run.setBold(true);
  325.         run.setFontFamily("Arial");
  326.         run.setText("Your Engine is called: ");
  327.         run.setTextPosition(15);
  328.         XWPFRun run2 = par.createRun();
  329.         run2.setFontSize(12);
  330.         run.setBold(true);
  331.         run2.setFontFamily("Arial");
  332.         run2.setText(ENN);
  333.         run2.setTextPosition(15);
  334.         run2.addBreak();
  335.         // -----------------------------------------------------------
  336.         XWPFRun run3 = par.createRun();
  337.         run3.setFontSize(10);
  338.         run3.setBold(true);
  339.         run3.setFontFamily("Arial");
  340.         run3.setText("Your Engine Cycle is: ");
  341.         XWPFRun run4 = par.createRun();
  342.         run4.setFontSize(10);
  343.         run4.setFontFamily("Arial");
  344.         run4.setText(NCC + " " + ECC);
  345.         run4.addBreak();
  346.         // -----------------------------------------------------------
  347.         XWPFRun run5 = par.createRun();
  348.         run5.setFontSize(10);
  349.         run5.setBold(true);
  350.         run5.setFontFamily("Arial");
  351.         run5.setText("Your Propellant is: ");
  352.         XWPFRun run6 = par.createRun();
  353.         run6.setFontSize(10);
  354.         run6.setFontFamily("Arial");
  355.         run6.setText(PLC);
  356.         run6.addBreak();
  357.         // -----------------------------------------------------------
  358.         XWPFRun run7 = par.createRun();
  359.         run7.setFontSize(10);
  360.         run7.setBold(true);
  361.         run7.setFontFamily("Arial");
  362.         run7.setText("Your Reactor's Fission Fuel is: ");
  363.         XWPFRun run8 = par.createRun();
  364.         run8.setFontSize(10);
  365.         run8.setFontFamily("Arial");
  366.         run8.setText(RFC);
  367.         run8.addBreak();
  368.         // -----------------------------------------------------------
  369.         XWPFRun run9 = par.createRun();
  370.         run9.setFontSize(10);
  371.         run9.setBold(true);
  372.         run9.setFontFamily("Arial");
  373.         run9.setText("Your engine's nozzle type should be: ");
  374.         XWPFRun run0 = par.createRun();
  375.         run0.setFontSize(10);
  376.         run0.setFontFamily("Arial");
  377.         run0.setText(NTLC);
  378.         run0.addBreak();
  379.         // -----------------------------------------------------------
  380.         XWPFRun run10 = par.createRun();
  381.         run10.setFontSize(10);
  382.         run10.setBold(true);
  383.         run10.setFontFamily("Arial");
  384.         run10.setText("Your Altitude of operation is: ");
  385.         XWPFRun run23 = par.createRun();
  386.         run23.setFontSize(10);
  387.         run23.setFontFamily("Arial");
  388.         run23.setText(AOOC);
  389.         run23.addBreak();
  390.         // ------------------------------------------------------------
  391.         XWPFRun run11 = par.createRun();
  392.         run11.setFontSize(10);
  393.         run11.setBold(true);
  394.         run11.setFontFamily("Arial");
  395.         run11.setText("Tank repressurisation would be done ");
  396.         XWPFRun run12 = par.createRun();
  397.         run12.setFontSize(10);
  398.         run12.setBold(true);
  399.         run12.setFontFamily("Arial");
  400.         run12.setText(TRC);
  401.         run12.addBreak();
  402.         // -----------------------------------------------------------
  403.         XWPFRun run13 = par.createRun();
  404.         run13.setFontSize(10);
  405.         run13.setBold(true);
  406.         run13.setFontFamily("Arial");
  407.         run13.setText("The Cooling Mechanism to be used would be ");
  408.         XWPFRun run14 = par.createRun();
  409.         run14.setFontSize(10);
  410.         run14.setBold(true);
  411.         run14.setFontFamily("Arial");
  412.         run14.setText(CMC);
  413.         run14.addBreak();
  414.         run14.addBreak();
  415.         // -----------------------------------------------------------
  416.         try (FileOutputStream out = new FileOutputStream(String.valueOf(pathn1))) {
  417.             docx.write(out);
  418.         }
  419.     }
  420.     public static void output_et(String ENN, String ECC, String AOOC, String PLC, String NTLC, String CMC) throws IOException {
  421.         String lbrk = "========================================================================================";
  422.         File pathn1 = new File("C:/Users/Public/Operational_Functional_Block/src/GeneratedFiles/ofb_rex.docx");
  423.         System.out.println(lbrk + "\n" + "Your Engine is called: " + ENN + "\n");
  424.         System.out.println("Your Engine Cycle is: " + ECC);
  425.         System.out.println("Your Propellant is: " + PLC);
  426.         System.out.println("Your Altitude of operation is: " + AOOC);
  427.         System.out.println("Your engine's nozzle type should be : " + NTLC);
  428.         System.out.println("Tank repressurisation would be impractical and unnecessary");
  429.         System.out.println("The Cooling Mechanism to be used would be " + CMC + '\n');
  430.  
  431.         XWPFDocument docx = new XWPFDocument();
  432.         if (new File(String.valueOf(pathn1)).exists()) {
  433.             FileInputStream jesus = new FileInputStream(String.valueOf(pathn1));
  434.             docx = new XWPFDocument(jesus);
  435.         }
  436.         XWPFParagraph par = docx.createParagraph();
  437.         XWPFRun run = par.createRun();
  438.         run.setFontSize(12);
  439.         run.setBold(true);
  440.         run.setFontFamily("Arial");
  441.         run.setText("Your Engine is called: ");
  442.         run.setTextPosition(15);
  443.         XWPFRun run2 = par.createRun();
  444.         run2.setFontSize(12);
  445.         run.setBold(true);
  446.         run2.setFontFamily("Arial");
  447.         run2.setText(ENN);
  448.         run2.setTextPosition(15);
  449.         run2.addBreak();
  450.         // -----------------------------------------------------------
  451.         XWPFRun run3 = par.createRun();
  452.         run3.setFontSize(10);
  453.         run3.setBold(true);
  454.         run3.setFontFamily("Arial");
  455.         run3.setText("Your Engine Cycle is: ");
  456.         XWPFRun run4 = par.createRun();
  457.         run4.setFontSize(10);
  458.         run4.setFontFamily("Arial");
  459.         run4.setText(ECC);
  460.         run4.addBreak();
  461.         // -----------------------------------------------------------
  462.         XWPFRun run5 = par.createRun();
  463.         run5.setFontSize(10);
  464.         run5.setBold(true);
  465.         run5.setFontFamily("Arial");
  466.         run5.setText("Your Propellant is: ");
  467.         XWPFRun run6 = par.createRun();
  468.         run6.setFontSize(10);
  469.         run6.setFontFamily("Arial");
  470.         run6.setText(PLC);
  471.         run6.addBreak();
  472.         // -----------------------------------------------------------
  473.         XWPFRun run9 = par.createRun();
  474.         run9.setFontSize(10);
  475.         run9.setBold(true);
  476.         run9.setFontFamily("Arial");
  477.         run9.setText("Your engine's nozzle type should be: ");
  478.         XWPFRun run0 = par.createRun();
  479.         run0.setFontSize(10);
  480.         run0.setFontFamily("Arial");
  481.         run0.setText(NTLC);
  482.         run0.addBreak();
  483.         // -----------------------------------------------------------
  484.         XWPFRun run10 = par.createRun();
  485.         run10.setFontSize(10);
  486.         run10.setBold(true);
  487.         run10.setFontFamily("Arial");
  488.         run10.setText("Your Altitude of operation is: ");
  489.         XWPFRun run23 = par.createRun();
  490.         run23.setFontSize(10);
  491.         run23.setFontFamily("Arial");
  492.         run23.setText(AOOC);
  493.         run23.addBreak();
  494.         // ------------------------------------------------------------
  495.         XWPFRun run11 = par.createRun();
  496.         run11.setFontSize(10);
  497.         run11.setBold(true);
  498.         run11.setFontFamily("Arial");
  499.         run11.setText("Tank repressurisation would be impractical and unnecessary");
  500.         run11.addBreak();
  501.         // -----------------------------------------------------------
  502.         XWPFRun run13 = par.createRun();
  503.         run13.setFontSize(10);
  504.         run13.setBold(true);
  505.         run13.setFontFamily("Arial");
  506.         run13.setText("The Cooling Mechanism to be used would be ");
  507.         XWPFRun run14 = par.createRun();
  508.         run14.setFontSize(10);
  509.         run14.setBold(true);
  510.         run14.setFontFamily("Arial");
  511.         run14.setText(CMC);
  512.         run14.addBreak();
  513.         run14.addBreak();
  514.         // -----------------------------------------------------------
  515.         try (FileOutputStream out = new FileOutputStream(String.valueOf(pathn1))) {
  516.             docx.write(out);
  517.         }
  518.     }
  519.     public static void output_def(String ENN, String ECC, String OCC, String FCC, String AOOC, String NTC, String TRC, String CMC) throws IOException {
  520.         String lbrk = "========================================================================================";
  521.         File pathn1 = new File("C:/Users/Public/Operational_Functional_Block/src/GeneratedFiles/ofb_rex.docx");
  522.         System.out.println(lbrk + "\n" + "Your Engine is called: " + ENN + "\n");
  523.         System.out.println("Your Engine Cycle is: " + ECC);
  524.         System.out.println("Your Oxidizer is: " + OCC);
  525.         System.out.println("Your Fuel is: " + FCC);
  526.         System.out.println("Your Altitude of operation is: " + AOOC);
  527.         System.out.println("Your engine's nozzle type should be : " + NTC);
  528.         System.out.println("Tank repressurisation would be done " + TRC);
  529.         System.out.println("The Cooling Mechanism to be used would be " + CMC + '\n');
  530.  
  531.         XWPFDocument docx = new XWPFDocument();
  532.         if (new File(String.valueOf(pathn1)).exists()) {
  533.             docx = new XWPFDocument(new FileInputStream(String.valueOf(pathn1)));
  534.         }
  535.         XWPFParagraph par = docx.createParagraph();
  536.         XWPFRun run = par.createRun();
  537.         run.setFontSize(12);
  538.         run.setBold(true);
  539.         run.setFontFamily("Arial");
  540.         run.setText("Your Engine is called: ");
  541.         run.setTextPosition(15);
  542.         XWPFRun run2 = par.createRun();
  543.         run2.setFontSize(12);
  544.         run.setBold(true);
  545.         run2.setFontFamily("Arial");
  546.         run2.setText(ENN);
  547.         run2.setTextPosition(15);
  548.         run2.addBreak();
  549.         // -----------------------------------------------------------
  550.         XWPFRun run3 = par.createRun();
  551.         run3.setFontSize(10);
  552.         run3.setBold(true);
  553.         run3.setFontFamily("Arial");
  554.         run3.setText("Your Engine Cycle is: ");
  555.         XWPFRun run4 = par.createRun();
  556.         run4.setFontSize(10);
  557.         run4.setFontFamily("Arial");
  558.         run4.setText(ECC);
  559.         run4.addBreak();
  560.         // -----------------------------------------------------------
  561.         XWPFRun run5 = par.createRun();
  562.         run5.setFontSize(10);
  563.         run5.setBold(true);
  564.         run5.setFontFamily("Arial");
  565.         run5.setText("Your Oxidizer is: ");
  566.         XWPFRun run6 = par.createRun();
  567.         run6.setFontSize(10);
  568.         run6.setFontFamily("Arial");
  569.         run6.setText(OCC);
  570.         run6.addBreak();
  571.         // -----------------------------------------------------------
  572.         XWPFRun run8 = par.createRun();
  573.         run8.setFontSize(10);
  574.         run8.setBold(true);
  575.         run8.setFontFamily("Arial");
  576.         run8.setText("Your Fuel is: ");
  577.         XWPFRun run7 = par.createRun();
  578.         run7.setFontSize(10);
  579.         run7.setFontFamily("Arial");
  580.         run7.setText(FCC);
  581.         run7.addBreak();
  582.         // -----------------------------------------------------------
  583.         XWPFRun run9 = par.createRun();
  584.         run9.setFontSize(10);
  585.         run9.setBold(true);
  586.         run9.setFontFamily("Arial");
  587.         run9.setText("Your engine's nozzle type should be: ");
  588.         XWPFRun run0 = par.createRun();
  589.         run0.setFontSize(10);
  590.         run0.setFontFamily("Arial");
  591.         run0.setText(NTC);
  592.         run0.addBreak();
  593.         // -----------------------------------------------------------
  594.         XWPFRun run10 = par.createRun();
  595.         run10.setFontSize(10);
  596.         run10.setBold(true);
  597.         run10.setFontFamily("Arial");
  598.         run10.setText("Your Altitude of operation is: ");
  599.         XWPFRun run23 = par.createRun();
  600.         run23.setFontSize(10);
  601.         run23.setFontFamily("Arial");
  602.         run23.setText(AOOC);
  603.         run23.addBreak();
  604.         // -----------------------------------------------------------
  605.         XWPFRun run11 = par.createRun();
  606.         run11.setFontSize(10);
  607.         run11.setBold(true);
  608.         run11.setFontFamily("Arial");
  609.         run11.setText("Tank repressurisation would be done ");
  610.         XWPFRun run12 = par.createRun();
  611.         run12.setFontSize(10);
  612.         run12.setBold(true);
  613.         run12.setFontFamily("Arial");
  614.         run12.setText(TRC);
  615.         run12.addBreak();
  616.         // -----------------------------------------------------------
  617.         XWPFRun run13 = par.createRun();
  618.         run13.setFontSize(10);
  619.         run13.setBold(true);
  620.         run13.setFontFamily("Arial");
  621.         run13.setText("The Cooling Mechanism to be used would be ");
  622.         XWPFRun run14 = par.createRun();
  623.         run14.setFontSize(10);
  624.         run14.setBold(true);
  625.         run14.setFontFamily("Arial");
  626.         run14.setText(CMC);
  627.         run14.addBreak();
  628.         run14.addBreak();
  629.         // -----------------------------------------------------------
  630.         try (FileOutputStream out = new FileOutputStream(String.valueOf(pathn1))) {
  631.             docx.write(out);
  632.         }
  633.     }
  634.     public static void main(String[] args) throws IOException {
  635.         File org = new File("C:/Users/Public/Operational_Functional_Block/src/GeneratedFiles");
  636.         org.mkdir();
  637.         // -------------------------------------
  638.         File pathn1 = new File("C:/Users/Public/Operational_Functional_Block/src/GeneratedFiles/ofb_rex.docx");
  639.         if (!(new File(String.valueOf(pathn1)).exists())) {
  640.             XWPFDocument docx1 = new XWPFDocument();
  641.             XWPFParagraph par1 = docx1.createParagraph();
  642.             par1.setAlignment(ParagraphAlignment.CENTER);
  643.             XWPFRun run1 = par1.createRun();
  644.             run1.setText("Rocket Engine Generator");
  645.             run1.setFontFamily("Arial");
  646.             run1.setBold(true);
  647.             run1.setFontSize(33);
  648.             run1.setTextPosition(60);
  649.             // -----------------------------------------------------------------------------
  650.             XWPFParagraph par2 = docx1.createParagraph();
  651.             par2.setAlignment(ParagraphAlignment.RIGHT);
  652.             XWPFRun run2 = par2.createRun();
  653.             LocalDateTime date = LocalDateTime.now();
  654.             DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd MMM yyyy, HH:mm:ss");
  655.             String dt = date.format(formatter);
  656.             run2.setText("Created on: " + dt);
  657.             run2.setFontFamily("Arial");
  658.             run2.setBold(true);
  659.             run2.setFontSize(10);
  660.             run2.setTextPosition(75);
  661.             // ----------------------------------------------------------------------------------------------------
  662.             try (FileOutputStream out1 = new FileOutputStream(String.valueOf(pathn1))) {
  663.                 docx1.write(out1);
  664.                 out1.close();
  665.                 docx1.close();
  666.             }
  667.         }
  668.         System.out.println("Welcome to the rocket engine generator!" + '\n');
  669.         Scanner scanner = new Scanner(System.in);
  670.         String repeatCommand = "Y";
  671.         while (!repeatCommand.equals("N")) {
  672.             System.out.println("Do you want to generate a new engine? [Y/N]");
  673.             System.out.print("> ");
  674.             // repeatCommand = scanner.next();
  675.             Path onlyfans = Path.of(String.valueOf(pathn1));
  676.             if (repeatCommand.equalsIgnoreCase("N") || repeatCommand.equalsIgnoreCase("NO")) {
  677.                 System.out.println("App exit was successful");
  678.                 System.exit(0);
  679.             } else if (repeatCommand.equalsIgnoreCase("Y") || repeatCommand.equalsIgnoreCase("YES")) {
  680.                 double sizeInbytes = pathn1.length();
  681.                 double sizeInKilobytes = (sizeInbytes / 1000);
  682.                 if (sizeInKilobytes >= 25) {
  683.                     File logM = new File("C:/Users/Public/Operational_Functional_Block/src/GeneratedFiles/Data");
  684.                     logM.mkdir();
  685.                     // ------------------------------
  686.                     if ((new File("C:/Users/Public/Operational_Functional_Block/src/GeneratedFiles/Data/ofb_rex[Full].docx")).exists()) {
  687.                         int i;
  688.                         int x = 2;
  689.                         for (i = 1; i < x; i++) {
  690.                             if ((new File("C:/Users/Public/Operational_Functional_Block/src/GeneratedFiles/Data/ofb_rex[Full]" + i + ".docx")).exists()) {
  691.                                 x++;
  692.                             } else {
  693.                                 Files.copy(onlyfans, Paths.get("C:/Users/Public/Operational_Functional_Block/src/GeneratedFiles/Data/ofb_rex[Full]" + i + ".docx"));
  694.                             }
  695.                         }
  696.                     } else {
  697.                         Path logPF = Paths.get("C:/Users/Public/Operational_Functional_Block/src/GeneratedFiles/Data/ofb_rex[Full].docx");
  698.                         Files.copy(onlyfans, logPF);
  699.                     }
  700.                     XWPFDocument docx1 = new XWPFDocument();
  701.                     XWPFParagraph par1 = docx1.createParagraph();
  702.                     par1.setAlignment(ParagraphAlignment.CENTER);
  703.                     XWPFRun run1 = par1.createRun();
  704.                     run1.setText("Rocket Engine Generator");
  705.                     run1.setFontFamily("Arial");
  706.                     run1.setBold(true);
  707.                     run1.setFontSize(33);
  708.                     run1.setTextPosition(60);
  709.                     // -----------------------------------------------------------------------------
  710.                     XWPFParagraph par2 = docx1.createParagraph();
  711.                     par2.setAlignment(ParagraphAlignment.RIGHT);
  712.                     XWPFRun run2 = par2.createRun();
  713.                     LocalDateTime date = LocalDateTime.now();
  714.                     DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd MMM yyyy, HH:mm:ss");
  715.                     String dt = date.format(formatter);
  716.                     run2.setText("Created on: " + dt);
  717.                     run2.setFontFamily("Arial");
  718.                     run2.setBold(true);
  719.                     run2.setFontSize(10);
  720.                     run2.setTextPosition(60);
  721.                     // ----------------------------------------------------------------------------------------------------
  722.                     FileOutputStream out1 = new FileOutputStream(String.valueOf(pathn1));
  723.                     docx1.write(out1);
  724.                     out1.close();
  725.                     docx1.close();
  726.                 }
  727.                 // Arrays
  728.                 String[] engine_Name1 = {"\"Argosy\"", "\"Galileo\"", "\"Callisto\"", "\"Nauka\"",
  729.                         "\"Rassvet\"", "\"Zvezda\"", "\"Zarya\"", "\"Orion\"", "\"Ares\"", "\"Delta\"", "\"Atlas\"",
  730.                         "\"Daedalus\"", "\"Baltia\"", "\"Dizhou\"", "\"Hermes\"", "\"Icarus\"", "\"Connestoga\"", "\"Yupiter\"",
  731.                         "\"Emphasis\"", "\"Olympus\"", "\"Kronos\"", "\"Helios\"", "\"Alabaster\"", "\"Falcon\"",
  732.                         "\"Eagle\"", "\"Endeavour\"", "\"Atlantis\"", "\"Cygnus\"", "\"Apollo\"", "\"Horizon\"",
  733.                         "\"Pioneer\"", "\"Voyager\"", "\"Exploration\"", "\"Expedition\"", "\"Vulcan\"",
  734.                         "\"Federation\"", "\"Sojourner\"", "\"Nautilus\"", "\"Jubilance\"", "\"Lagrange\"",
  735.                         "\"Prometheus\"", "\"Tellus\"", "\"Alpha\"", "\"Delta\"", "\"Proton\"", "\"Neutron\"",
  736.                         "\"Electron\"", "\"Pluton\"", "\"Poodle\"", "\"Skipper\"", "\"Convair\"", "\"Nexus\"",
  737.                         "\"Vector\"", "\"Terrier\"", "\"Rhino\"", "\"Panther\"", "\"Goliath\"", "\"Juno\"", "\"Shrimp\"",
  738.                         "\"Thumper\"", "\"Mainsail\"", "\"Dart\"", "\"Twitch\"", "\"Stratus\"", "\"Oscar\"",
  739.                         "\"Sentinel\"", "\"Pegasus\"", "\"Kelus\"", "\"Starshot\"", "\"Vernor\"", "\"Mammoth\"",
  740.                         "\"Douglas\"", "\"Heimdall\"", "\"Dynetics\"", "\"Pathfinder\"", "\"Horizon\"", "\"Poisk\"",
  741.                         "\"Pirs\"", "\"Philae\"", "\"Mariner\"", "\"Centaur\"", "\"Orel\"", "\"Pratt\"", "\"Hyperion\"",
  742.                         "\"Sagittarius\"", "\"Apollo\"", "\"Bryton\"", "\"Volga\"", "\"Harmony\"", "\"Cassini\"", "\"Contour\"",
  743.                         "\"Altair\"", "\"Dream\"", "\"Baikal\"", "\"Zenith\"", "\"Urpinod\"", "\"Bernal\"", "\"Condor\"",
  744.                         "\"Athena\"", "\"Astra\"", "\"Aerolus\"", "\"Rombus\"", "\"Lunokhod\"", "\"Fregat\"", "\"Glonass\"",
  745.                         "\"Dragon\"", "\"Salyut\"", "\"Starliner\"", "\"Skylab\"", "\"Briz\"", "\"Colombus\"", "\"Rosetta\"",
  746.                         "\"Redstone\"", "\"Antares\"", "\"Philae\"", "\"Prospero\"", "\"Leonardo\"", "\"Parker\"", "\"Dyson\"",
  747.                         "\"Oberon\"", "\"DragonFly\"", "\"Energia\"", "\"Buran\"", "\"Urgan\"", "\"Angara\"", "\"Vostok\"",
  748.                         "\"Voskhod\"", "\"Shenzhou\"", "\"Ingenuity\"", "\"Oberon\"", "\"Discovery\"", "\"Horizon\"",
  749.                         "\"Cerasus\"", "\"Progress\"", "\"Unity\"", "\"Surveyor\"", "\"Prospector\"", "\"Ikar\"", "\"Redstone\"",
  750.                         "\"Lapis\"", "\"Caesius\"", "\"Iridium\"", "\"Daedlus\"", "\"Aelita\"", "\"Beta\"", "\"Gamma\"",
  751.                         "\"Alpha\"", "\"Epsilon\"", "\"Omega\"", "\"Discoverer\"", "\"Explorer\"", "\"Hornet\"", "\"Serenity\"",
  752.                         "\"Ariane\"", "\"Hornet\"", "\"Asimov\"", "\"Pegasus\"", "\"Venture\"", "\"Antares\"", "\"Star\"",
  753.                         "\"Archimedes\"", "\"Hera\"", "\"Iris\"", "\"Titan\"", "\"Artemis\"", "\"Phoenix\"", "\"Ross\"",
  754.                         "\"Sarychev\"", "\"Nemesis\"", "\"Heimdall\"", "\"Sturt\"", "\"Odin\"", "\"Aethelred\"", "\"Vesper\"",
  755.                         "\"Aces\"", "\"Argon\"", "\"Olympia\"", "\"Perseus\"", "\"Chyron\"", "\"Proxima\"", "\"Arminus\"",
  756.                         "\"Destiny\"", "\"Valient\"", "\"FireFly\"", "\"Obsidian\"", "\"Leviathan\"", "\"Magellan\"", "\"Voyager\"",
  757.                         "\"Mariner\"", "\"Joist\"", "\"Crimson\"", "\"Fortune\"", "\"Vanguard\"", "\"Aurora\"", "\"Ulysses\"",
  758.                         "\"Crusader\"", "\"Python\"", "\"Kuiper\"", "\"Insurgent\"", "\"Pathfinder\"", "\"Kvant\"", "\"Spektr\"",
  759.                         "\"Cassini\"", "\"Zemlya\"", "\"Dawn\"", "\"Kepler\"", "\"Parom\"", "\"Elektron\"", "\"Aeonian\"",
  760.                         "\"Node\"", "\"Burya\"", "\"Voyager\"", "\"Ceres\"", "\"Bayern\"", "\"Chasovoy\"", "\"Copernicus\"",
  761.                         "\"Quaoar\"", "\"Minotaur\"", "\"Agena\"", "\"Thor\"", "\"Vega\"", "\"Scout\"", "\"Coeus\"", "\"Minerva\"",
  762.                         "\"Kratos\"", "\"Neith\"", "\"Omoikane\"", "\"Gayamun\"", "\"Odin\"", "\"Kronos\"", "\"Hope\"", "\"Polet\"",
  763.                         "\"Polyot\"", "\"Sputnik\"", "\"Clementine\"", "\"Sojourner\"", "\"Ingenuity\"", "\"Perseverence\"", "\"Insider\"",
  764.                         "\"Onatchesko\"", "\"Atlantis\"", "\"Tsyklon\"", "\"Zenit\"", "\"Almaz\"", "\"Soyuz\"", "\"Molniya\"", "\"Kosmos\"",
  765.                         "\"Oreol\"", "\"Yantar\"", "\"Foton\"", "\"Meteor\"", "\"Ekran\"", "\"Strela\"", "\"Bion\"", "\"Piroda\"",
  766.                         "\"Salyut\"", "\"Strela\"", "\"Luch\"", "\"Potok\"", "\"Prognoz\"", "\"Orlets\"", "\"Etalon\"", "\"Astron\"",
  767.                         "\"Efir\"", "\"Kometa\"", "\"Fram\"", "\"Zemlya\"", "\"Gorizont\"", "\"Arkon\"", "\"Gamma\"", "\"Ekspress\"",
  768.                         "\"Gonets\"", "\"Taifun\"", "\"Okean\"", "\"Reflektor\"", "\"Kolibr\"", "\"Sever\"", "\"Comet\"",
  769.                         "\"Roton\"", "\"Solaris\"", "\"Altaris\"", "\"Ithacus\"", "\"Dekto\"", "\"Dream\"", "\"Impuls\"",
  770.                         "\"Vremya\"", "\"Portal\"", "\"Zodiak\"", "\"Slava\"", "\"Inertsiya\"", "\"Stimuls\"", "\"Ambross\"",
  771.                         "\"Amal\"", "\"Thea\"", "\"Orphelia\"", "\"Polyot\"", "\"Mudrost\"", "\"Carrack\"", "\"Artak\"",
  772.                         "\"Questar\"", "\"Artyom\"", "\"Tsyclon\"", "\"Ascension\"", "\"Tenacity\"", "\"Contour\"", "\"Zephyr\"",
  773.                         "\"Atlanta\"", "\"Polaris\"", "\"Aeolus\"", "\"Mayak\"", "\"Pamir\"", "\"Taimyr\"", "\"Cheget\"", "\"Sirius\"",
  774.                         "\"Uragan\"", "\"Agat\"", "\"Skiph\"", "\"Kristall\"", "\"Altair\"", "\"Uran\"", "\"Ingul\"", "\"Carat\"",
  775.                         "\"Pulsar\"", "\"Titan\"", "\"Eridanus\"", "\"Parus\"", "\"Cepheus\"", "\"Varagian\"", "\"Olympus\"",
  776.                         "\"Tarkhaniy\"", "\"Astraeus\"", "\"Antares\"", "\"Kazbek\"", "\"Burlak\"", "\"Borei\"", "\"Favor\"",
  777.                         "\"Rubin\"", "\"Almaz\"", "\"Granit\"", "\"Ruby\"", "\"Sokol\"", "\"Argon\"", "\"Kavkaz\"", "\"Ural\"",
  778.                         "\"Berkut\"", "\"Dunay\"", "\"Yastreb\"", "\"Terek\"", "\"Radon\"", "\"Taymyr\"", "\"Pamir\"", "\"Photon\"",
  779.                         "\"Elbrus\"", "\"Isayiev\"", "\"Shmel\"", "\"Kobra\"", "\"Shturn\"", "\"Metis\"", "\"Malyutka\"", "\"Fleyta\"",
  780.                         "\"Konkurs\"", "\"Bastion\"", "\"Svir\"", "\"Ataka\"", "\"Vodopad\"", "\"Veter\"", "\"Vyuga\"", "\"Vulga\"",
  781.                         "\"Tochka\"", "\"Oka\"", "\"Dvina\"", "\"Almaz\"", "\"Araks\"", "\"Kanopus\"", "\"Kliper\"", "\"Kobalt\"",
  782.                         "\"Siluet\"", "\"Kondor\"", "\"Lotos\"", "\"Luch\"", "\"Mir\"", "\"Neman\"", "\"Obzor\"", "\"Okean\"", "\"Oko\"",
  783.                         "\"Oktan\"", "\"Orlets\"", "\"Poisk\"", "\"Potok\"", "\"Pirs\"", "\"Prognoz\"", "\"Resurs\"", "\"Rodnik\"",
  784.                         "\"Romb\"", "\"Kapustin\"", "\"Oplot\"", "\"Tsygan\"", "\"Teplokhod\"", "\"Sokosha\"", "\"Rubezh\"", "\"Topol\"",
  785.                         "\"Zircon\"", "\"Moskva\"", "\"Tryol\"", "\"Ustinov\"", "\"Belyayev\"", "\"Novorod\"", "\"Argos\"", "\"Dreadnought\"",
  786.                         "\"Nerthus\"", "\"Janus\"", "\"Hephaestus\"", "\"Themis\"", "\"Chronos\"", "\"Tethys\"", "\"Minos\"", "\"Visionalis\"",
  787.                         "\"Autumn\"", "\"Resilience\"", "\"Aelita\"", "\"Rheus\"", "\"Solntspek\"", "\"Spitzer\"", "\"Cartago\"", "\"Liberty\"",
  788.                         "\"Melibea\"", "\"Spartacus\"", "\"Pulsar\"", "\"Fusion\"", "\"Reliant\"", "\"Thunder\"", "\"Novo\"", "\"Granis\"",
  789.                         "\"Panthera\"", "\"Nematoda\"", "\"Anelida\"", "\"Chordata\"", "\"Tetrapoda\"", "\"Cyclero\"", "\"Carrier\"", "\"Saturn\"",
  790.                         "\"Gaia\"", "\"Irtysh\"", "\"Wyvern\"", "\"Tarsier\"", "\"Alpina\"", "\"Espadon\"", "\"Parlos\"", "\"Nebula\"",
  791.                         "\"Lazarus\"", "\"Rufus\"", "\"Dornier\"", "\"Argus\"", "\"Kybau\"", "\"Kalau\"", "\"Chasvoy\"", "\"Zephyr\"",
  792.                         "\"Temny\"", "\"Gorizont\"", "\"Yars\"", "\"Krugazor\"", "\"Soprotivlenye\"", "\"Shtil\"", "\"Layner\"", "\"Bulava\"",
  793.                         "\"Vysota\"", "\"Volna\""};
  794.                 String[] engine_Cycle = {"Gas Generator", "Staged Combustion (Oxidizer Rich)", "Staged Combustion (Fuel Rich)",
  795.                         "Expander (Open/Bleed)", "Expander (Closed)", "Dual Expander (Open/Bleed)", "Dual Expander (Closed)",
  796.                         "Pressure-Fed", "Full Flow Staged", "Electric Pump Fed", "Combustion Tap Off", "Cold Gas Monopropellant",
  797.                         "Monopropellant (Decomposition)", "Gas Core", "Liquid Core", "Solid Core", "Pulsed Nuclear", "Pebble-Bed Core",
  798.                         "Nuclear SaltWater", "MagnetoPlasmaDynamic Thruster", "Hall Effect Thruster", "Gridded Ion Thruster",
  799.                         "Colloid Thruster", "Variable Specific Impulse Magnetoplasma Rocket (VASIMR)"};
  800.                 String[] propellant_List1 = {"H2O2 (Hydrogen Peroxide)", "N2H4 (Hydrazine)", "NH2OH+NO3 (Hydroxylammonium nitrate)"};
  801.                 String[] propellant_List2 = {"Nitrogen (N2)", "Helium (He)", "Carbon Dioxide (CO2)", "Ammonia (NH3)", "Hydrogen (H2)",
  802.                         "Methane (CH4)"};
  803.                 String[] propellant_List3 = {"Hydrogen (H2)", "Helium (He)", "Nitrogen (N2)", "Hydrogen (H)", "Ammonia (NH3)",
  804.                         "Water (H2O)", "Oxygen (O2)", "Carbon Dioxide (CO2)", "Carbon Monoxide (CO)", "Methane (CH4)"};
  805.                 String[] altitude_Of_Operation = {"0-10 km (Sea Level)", "20-30 km (Medium Atmosphere)",
  806.                         "30-80 km (High Atmosphere)", "80 km+ (Vacuum)", "Any Altitude (0-80 km+)"};
  807.                 String[] tank_Repressurisation = {"Autogenously", "using Inert gas"};
  808.                 String[] nozzle_Type_List1 = {"De Laval Cone (Without Nozzle Extension)",
  809.                         "De Laval Bell (Without Nozzle Extension)"};
  810.                 String[] firstPart = {"RD", "RS", "AJ", "XLR", "NK", "RL", "KDTU", "AR", "BE", "MV",
  811.                         "YF", "PKA", "TQ", "MJ", "XS", "LM10", "HM", "LE", "LRE", "CE", "DST",
  812.                         "DOK", "KDU", "KRD", "R", "RO"};
  813.  
  814.                 // Randomise Arrays
  815.                 boolean Flagger;
  816.                 String engine_Name = "";
  817.                 if (new File("C:/Users/sfsga/IdeaProjects/demo/ofb_rex.docx").exists()) {
  818.                     Flagger = true;
  819.                     while (Flagger) {
  820.                         engine_Name = ass_crack(engine_Name1, firstPart);
  821.                         try {
  822.                             File fila = new File("C:/Users/sfsga/IdeaProjects/demo/ofb_rex.docx");
  823.                             Scanner reader = new Scanner(fila);
  824.                             while (reader.hasNextLine()) {
  825.                                 String data = reader.nextLine();
  826.                                 Flagger = data.equals(engine_Name);
  827.                             }
  828.                             reader.close();
  829.  
  830.                         } catch (FileNotFoundException e) {
  831.                             e.printStackTrace();
  832.                         }
  833.                     }
  834.  
  835.                 } else {
  836.                     engine_Name = ass_crack(engine_Name1, firstPart);
  837.                 }
  838.                 Collections.shuffle(Arrays.asList(engine_Cycle));
  839.                 Random engineCycleChosen = new Random();
  840.                 int engineTypeChosen_index = engineCycleChosen.nextInt(engine_Cycle.length);
  841.                 String engine_Cycle_Chosen = engine_Cycle[engineTypeChosen_index];
  842.  
  843.                 switch (engine_Cycle_Chosen) {
  844.                     case "Gas Core", "Liquid Core", "Solid Core", "Pulsed Nuclear", "Nuclear SaltWater", "Pebble-Bed Core" -> {
  845.                         String propellant_List_Chosen;
  846.                         String nuclear_Cycle_Chosen;
  847.                         String reactor_Fuel_Chosen;
  848.                         String nozzle_Type_List_Chosen;
  849.                         switch (engine_Cycle_Chosen) {
  850.                             case "Gas Core" -> {
  851.                                 String[] remass_List = {"Hydrogen (H2)", "Nitrogen (N2)", "Monoatomic Hydrogen (H)", "Ammonia (NH3)",
  852.                                         "Water (H2O)", "Oxygen (O2)", "Carbon Dioxide (CO2)", "Carbon Monoxide (CO)",
  853.                                         "Methane (CH4)"};
  854.                                 Collections.shuffle(Arrays.asList(remass_List));
  855.                                 Random remassChosen = new Random();
  856.                                 int remassChosen_index = remassChosen.nextInt(remass_List.length);
  857.                                 String remass_List_Chosen = remass_List[remassChosen_index];
  858.                                 propellant_List_Chosen = "Uranium HexaFluoride Salt (UF6) and " + remass_List_Chosen + " as remass";
  859.                                 // Nuclear Cycle (Nuclear Thermal)
  860.                                 String[] nuclear_cycle1 = {"\"Expander Bleed\"", "\"Expander Closed\"", "\"Nuclear Lightbulb\"", "\"Vortex Confined\"",
  861.                                         "\"Wheel Flow\"", "\"Magnetohydrodynamic(MHD) vortex\"", "\"Expander Open\""};
  862.                                 Collections.shuffle(Arrays.asList(nuclear_cycle1));
  863.                                 Random nuclearCycleChosen = new Random();
  864.                                 int nuclearCycleChosen_index = nuclearCycleChosen.nextInt(nuclear_cycle1.length);
  865.                                 nuclear_Cycle_Chosen = nuclear_cycle1[nuclearCycleChosen_index];
  866.                                 // Reactor Fuel (Nuclear Thermal)
  867.                                 String[] reactor_fuel = {"100-90% Uranium-235", "50% Uranium-235", "25-8% Uranium-235", "1-2% Uranium-235"};
  868.                                 Collections.shuffle(Arrays.asList(reactor_fuel));
  869.                                 Random reactorfuelChosen = new Random();
  870.                                 int reactorfuelChosen_index = reactorfuelChosen.nextInt(reactor_fuel.length);
  871.                                 reactor_Fuel_Chosen = reactor_fuel[reactorfuelChosen_index];
  872.                                 // Nozzle Type (Nuclear Thermal)
  873.                                 nozzle_Type_List_Chosen = "De Laval Bell (With Nozzle Extension)";
  874.                             }
  875.                             case "Liquid Core", "Colloid-Core", "Pebble-Bed Core" -> {
  876.                                 // Remass (Nuclear Thermal)
  877.                                 String[] remass_List2 = {"Hydrogen (H2)", "Nitrogen (N2)", "Monoatomic Hydrogen (H)", "Ammonia (NH3)",
  878.                                         "Water (H2O)", "Oxygen (O2)", "Carbon Dioxide (CO2)", "Carbon Monoxide (CO)",
  879.                                         "Methane (CH4)", "Hydrogen (H2) + Hexane (C6H14)"};
  880.                                 Collections.shuffle(Arrays.asList(remass_List2));
  881.                                 Random remassChosen = new Random();
  882.                                 int remassChosen_index = remassChosen.nextInt(remass_List2.length);
  883.                                 String remass_List_Chosen = remass_List2[remassChosen_index];
  884.                                 propellant_List_Chosen = "Uranium HexaFluoride Salt (UF6) and " + remass_List_Chosen + " as a remass";
  885.                                 // Nuclear Cycle (Nuclear Thermal)
  886.                                 String[] nuclear_cycle1 = {"\"Expander Bleed\"", "\"Expander Closed\"", "\"Vortex Confined\"", "\"Expander Open\""};
  887.                                 Collections.shuffle(Arrays.asList(nuclear_cycle1));
  888.                                 Random nuclearCycleChosen = new Random();
  889.                                 int nuclearCycleChosen_index = nuclearCycleChosen.nextInt(nuclear_cycle1.length);
  890.                                 nuclear_Cycle_Chosen = nuclear_cycle1[nuclearCycleChosen_index];
  891.                                 // Reactor Fuel (Nuclear Thermal)
  892.                                 String[] reactor_fuel = {"100-90% Uranium-235", "50% Uranium-235", "25-8% Uranium-235", "1-2% Uranium-235"};
  893.                                 Collections.shuffle(Arrays.asList(reactor_fuel));
  894.                                 Random reactorfuelChosen = new Random();
  895.                                 int reactorfuelChosen_index = reactorfuelChosen.nextInt(reactor_fuel.length);
  896.                                 reactor_Fuel_Chosen = reactor_fuel[reactorfuelChosen_index];
  897.                                 // Nozzle Type (Nuclear Thermal)
  898.                                 nozzle_Type_List_Chosen = "De Laval Bell (With Nozzle Extension)";
  899.                             }
  900.                             case "Nuclear SaltWater" -> {
  901.                                 propellant_List_Chosen = "Uranium TetraBromide (UBr4) + Water (H2O)";
  902.                                 nuclear_Cycle_Chosen = "";
  903.                                 // Reactor Fuel (Nuclear Thermal)
  904.                                 String[] reactor_fuel = {"100-90% Uranium-235", "50% Uranium-235", "25-8% Uranium-235", "1-2% Uranium-235"};
  905.                                 Collections.shuffle(Arrays.asList(reactor_fuel));
  906.                                 Random reactorfuelChosen = new Random();
  907.                                 int reactorfuelChosen_index = reactorfuelChosen.nextInt(reactor_fuel.length);
  908.                                 reactor_Fuel_Chosen = reactor_fuel[reactorfuelChosen_index];
  909.                                 // Nozzle Type (Nuclear Thermal)
  910.                                 nozzle_Type_List_Chosen = "De Laval Bell (With Nozzle Extension)";
  911.                             }
  912.                             default -> {
  913.                                 // Propellant (Nuclear Thermal)
  914.                                 Collections.shuffle(Arrays.asList(propellant_List3));
  915.                                 Random propellantChosen = new Random();
  916.                                 int propellantChosen_index = propellantChosen.nextInt(propellant_List3.length);
  917.                                 propellant_List_Chosen = propellant_List3[propellantChosen_index];
  918.                                 // Nuclear Cycle (Nuclear Thermal)
  919.                                 String[] nuclear_cycle1 = {"\"Expander Bleed\"", "\"Expander Closed\"", "\"Expander Open\""};
  920.                                 Collections.shuffle(Arrays.asList(nuclear_cycle1));
  921.                                 Random nuclearCycleChosen = new Random();
  922.                                 int nuclearCycleChosen_index = nuclearCycleChosen.nextInt(nuclear_cycle1.length);
  923.                                 nuclear_Cycle_Chosen = nuclear_cycle1[nuclearCycleChosen_index];
  924.                                 // Reactor Fuel (Nuclear Thermal)
  925.                                 String[] reactor_fuel = {"100-90% Uranium-235", "50% Uranium-235", "20-8% Uranium-235", "1-2% Uranium-235",
  926.                                         "100-90% Plutonium-238", "50% Plutonium-238", "25-8% Plutonium-238", "1-2% Plutonium-238"};
  927.                                 Collections.shuffle(Arrays.asList(reactor_fuel));
  928.                                 Random reactorfuelChosen = new Random();
  929.                                 int reactorfuelChosen_index = reactorfuelChosen.nextInt(reactor_fuel.length);
  930.                                 reactor_Fuel_Chosen = reactor_fuel[reactorfuelChosen_index];
  931.                                 // Nozzle Type (Nuclear Thermal)
  932.                                 nozzle_Type_List_Chosen = "De Laval Bell (With Nozzle Extension)";
  933.                             }
  934.                         }
  935.                         // Altitude of Operation (Nuclear Thermal)
  936.                         String altitude_Of_Operation_Chosen = "80 km+ (Vacuum)";
  937.                         // Tank Repressurisation (Nuclear Thermal)
  938.                         Collections.shuffle(Arrays.asList(tank_Repressurisation));
  939.                         Random tankRepressurisationChosen = new Random();
  940.                         int tankRepressurisationChosen_index = tankRepressurisationChosen.nextInt(tank_Repressurisation.length);
  941.                         String tank_Repressurisation_Chosen = tank_Repressurisation[tankRepressurisationChosen_index];
  942.                         // Cooling Mechanism (Nuclear Thermal)
  943.                         String[] cooling_mechanism = {"Radiative Cooling", "Dump Cooling", "Film Cooling",
  944.                                 "Regenerative Cooling", "Transpiration Cooling"};
  945.                         Collections.shuffle(Arrays.asList(cooling_mechanism));
  946.                         Random coolingMechanismChosen = new Random();
  947.                         int coolingMechanismChosen_index = coolingMechanismChosen.nextInt(cooling_mechanism.length);
  948.                         String cooling_Mechanism_Chosen = cooling_mechanism[coolingMechanismChosen_index];
  949.                         // Beautiful Part (Nuclear Thermal)
  950.                         output_nt(engine_Name, engine_Cycle_Chosen, altitude_Of_Operation_Chosen, nuclear_Cycle_Chosen,
  951.                                 propellant_List_Chosen, reactor_Fuel_Chosen, nozzle_Type_List_Chosen,
  952.                                 tank_Repressurisation_Chosen, cooling_Mechanism_Chosen);
  953.  
  954.                     } case "MagnetoPlasmaDynamic Thruster", "Hall Effect Thruster", "Gridded Ion Thruster",
  955.                             "Colloid Thruster", "Variable Specific Impulse Magnetoplasma Rocket (VASIMR)" -> {
  956.                         String propellant_List_Chosen = null;
  957.                         String nozzle_Type_List_Chosen = null;
  958.                         switch (engine_Cycle_Chosen) {
  959.                             case "Hall Effect Thruster" -> {
  960.                                 String[] propellant_List = {"Xenon", "Krypton", "Argon", "Bismuth", "Iodine",
  961.                                         "Magnesium", "Zinc", "Adamantane"};
  962.                                 Collections.shuffle(Arrays.asList(propellant_List));
  963.                                 Random propellantChosen = new Random();
  964.                                 int propellantChosen_index = propellantChosen.nextInt(propellant_List.length);
  965.                                 propellant_List_Chosen = propellant_List[propellantChosen_index];
  966.                                 // Nozzle Type (Nuclear Thermal)
  967.                                 nozzle_Type_List_Chosen = "Hall Effect Thruster Nozzle";
  968.                             } case "Gridded Ion Thruster" -> {
  969.                                 String[] propellant_List = {"Xenon", "Mercury", "Caesium"};
  970.                                 Collections.shuffle(Arrays.asList(propellant_List));
  971.                                 Random propellantChosen = new Random();
  972.                                 int propellantChosen_index = propellantChosen.nextInt(propellant_List.length);
  973.                                 propellant_List_Chosen = propellant_List[propellantChosen_index];
  974.                                 // Nozzle Type (Nuclear Thermal)
  975.                                 nozzle_Type_List_Chosen = "Electrostatic Ion Nozzle";
  976.                             } case "Colloid Thruster" -> {
  977.                                 propellant_List_Chosen = "NH2OH+NO3 (Hydroxylammonium nitrate)";
  978.                                 // Nozzle Type (Nuclear Thermal)
  979.                                 nozzle_Type_List_Chosen = "Capillary Emitter-Electrode Cone";
  980.                             } case "Variable Specific Impulse Magnetoplasma Rocket (VASIMR)" -> {
  981.                                 String[] propellant_List = {"Xenon", "Krypton", "Argon"};
  982.                                 Collections.shuffle(Arrays.asList(propellant_List));
  983.                                 Random propellantChosen = new Random();
  984.                                 int propellantChosen_index = propellantChosen.nextInt(propellant_List.length);
  985.                                 propellant_List_Chosen = propellant_List[propellantChosen_index];
  986.                                 // Nozzle Type (Nuclear Thermal)
  987.                                 nozzle_Type_List_Chosen = "VASIMR Magnetic Confinement Nozzle";
  988.                             } case "MagnetoPlasmaDynamic Thruster" -> {
  989.                                 String[] propellant_List = {"Xenon", "Neon", "Argon", "Hydrogen", "Hydrazine", "Lithium"};
  990.                                 Collections.shuffle(Arrays.asList(propellant_List));
  991.                                 Random propellantChosen = new Random();
  992.                                 int propellantChosen_index = propellantChosen.nextInt(propellant_List.length);
  993.                                 propellant_List_Chosen = propellant_List[propellantChosen_index];
  994.                                 // Nozzle Type (Nuclear Thermal)
  995.                                 nozzle_Type_List_Chosen = "Cathode Plug Magnetic Confinement Nozzle";
  996.                             }
  997.                         }
  998.                         // Altitude of Operation (Electric Propulsion)
  999.                         String altitude_Of_Operation_Chosen = "80 km+ (Vacuum)";
  1000.                         // Cooling Mechanism (Electric Propulsion)
  1001.                         String[] cooling_mechanism = {"Radiative Cooling", "Dump Cooling", "Film Cooling",
  1002.                                 "Regenerative Cooling", "Transpiration Cooling"};
  1003.                         Collections.shuffle(Arrays.asList(cooling_mechanism));
  1004.                         Random coolingMechanismChosen = new Random();
  1005.                         int coolingMechanismChosen_index = coolingMechanismChosen.nextInt(cooling_mechanism.length);
  1006.                         String cooling_Mechanism_Chosen = cooling_mechanism[coolingMechanismChosen_index];
  1007.                         // Beautiful Part (Electric Propulsion)
  1008.                         output_et(engine_Name, engine_Cycle_Chosen, altitude_Of_Operation_Chosen,
  1009.                                 propellant_List_Chosen, nozzle_Type_List_Chosen,
  1010.                                 cooling_Mechanism_Chosen);
  1011.  
  1012.                     } case "Monopropellant (Decomposition)" -> {
  1013.                         // Propellant (Decomposing Monopropellant)
  1014.                         Collections.shuffle(Arrays.asList(propellant_List1));
  1015.                         Random propellantChosen = new Random();
  1016.                         int propellantChosen_index = propellantChosen.nextInt(propellant_List1.length);
  1017.                         String propellant_List_Chosen = propellant_List1[propellantChosen_index];
  1018.                         // Altitude of Operation (Decomposing Monopropellant)
  1019.                         String altitude_Of_Operation_Chosen = "80 km+ (Vacuum)";
  1020.                         // Nozzle Type (Decomposing Monopropellant)
  1021.                         Collections.shuffle(Arrays.asList(nozzle_Type_List1));
  1022.                         Random nozzle_chosen = new Random();
  1023.                         int nozzleChosen_index = nozzle_chosen.nextInt(nozzle_Type_List1.length);
  1024.                         String nozzle_Type_List_Chosen = nozzle_Type_List1[nozzleChosen_index];
  1025.                         // Cooling Mechanism (Decomposing Monopropellant)
  1026.                         String[] cooling_mechanism = {"Ablative Cooling", "Radiative Cooling", "Dump Cooling", "Film Cooling"};
  1027.                         Collections.shuffle(Arrays.asList(cooling_mechanism));
  1028.                         Random coolingMechanismChosen = new Random();
  1029.                         int coolingMechanismChosen_index = coolingMechanismChosen.nextInt(cooling_mechanism.length);
  1030.                         String cooling_Mechanism_Chosen = cooling_mechanism[coolingMechanismChosen_index];
  1031.                         // Beautiful Part (Least non-ugly)
  1032.                         output_mono(engine_Name, engine_Cycle_Chosen, altitude_Of_Operation_Chosen,
  1033.                                 propellant_List_Chosen, nozzle_Type_List_Chosen, cooling_Mechanism_Chosen);
  1034.  
  1035.                     } case "Cold Gas Monopropellant" -> {
  1036.                         Collections.shuffle(Arrays.asList(propellant_List2));
  1037.                         Random propellantChosen = new Random();
  1038.                         int propellantChosen_index = propellantChosen.nextInt(propellant_List2.length);
  1039.                         String propellant_List_Chosen = propellant_List2[propellantChosen_index];
  1040.                         // Altitude of Operation (Cold Gas Monopropellant)
  1041.                         String altitude_Of_Operation_Chosen = "80 km+ (Vacuum)";
  1042.                         // Nozzle Type (Cold Gas Monopropellant)
  1043.                         Collections.shuffle(Arrays.asList(nozzle_Type_List1));
  1044.                         Random nozzle_chosen = new Random();
  1045.                         int nozzleChosen_index = nozzle_chosen.nextInt(nozzle_Type_List1.length);
  1046.                         String nozzle_Type_List_Chosen = nozzle_Type_List1[nozzleChosen_index];
  1047.                         // Beautiful Part (Least non-ugly)
  1048.                         output_mono(engine_Name, engine_Cycle_Chosen, altitude_Of_Operation_Chosen,
  1049.                             propellant_List_Chosen, nozzle_Type_List_Chosen, "unnecessary");
  1050.  
  1051.                     } case "Expander (Closed)", "Expander (Open/Bleed)" -> {
  1052.                         String[] oxidizer_List2 = {"O2 (Oxygen)", "F2 (Fluorine)", "F2 (Fluorine) + O2 (Oxygen)",
  1053.                                 "O3 (Ozone)"};
  1054.                         Collections.shuffle(Arrays.asList(oxidizer_List2));
  1055.                         Random oxidizerChosen = new Random();
  1056.                         int oxidizerChosen_index = oxidizerChosen.nextInt(oxidizer_List2.length);
  1057.                         String oxidizer_Chosen = oxidizer_List2[oxidizerChosen_index];
  1058.                         String fuel_Chosen = "";
  1059.                         switch (oxidizer_Chosen) {
  1060.                             case "O2 (Oxygen)" -> {
  1061.                                 String[] fuel_List20 = {"H2 (Hydrogen)", "CH4 (Methane)", "C2H5OH(Ethanol) 85%", "C2H5OH(Ethanol) 75%",
  1062.                                         "C6H5NH2 (Aniline)", "NH3 (Ammonia)", "CH6N2 (MonomethylHydrazine)", "N2H4 (Hydrazine)",
  1063.                                         "CH3OH (Methanol)", "C12H24 (Kerosene)", "B2H6 (Diborane)", "B5H9 (Pentaborane)"};
  1064.                                 Collections.shuffle(Arrays.asList(fuel_List20));
  1065.                                 Random fuelChosen = new Random();
  1066.                                 int fuelChosen_index = fuelChosen.nextInt(fuel_List20.length);
  1067.                                 fuel_Chosen = fuel_List20[fuelChosen_index];
  1068.                             } case "F2 (Fluorine)" -> {
  1069.                                 String[] fuel_List1 = {"H2 (Hydrogen)", "CH4 (Methane)", "C2H5OH(Ethanol) 85%", "C2H5OH(Ethanol) 75%",
  1070.                                         "C6H5NH2 (Aniline)", "NH3 (Ammonia)", "C2H8N2 (UnsymetricalDimethylHydrazine)",
  1071.                                         "CH6N2 (MonomethylHydrazine)", "N2H4 (Hydrazine)", "CH3OH (Methanol)", "C12H24 (Kerosene)",
  1072.                                         "B2H6 (Diborane)", "B5H9 (Pentaborane)"};
  1073.                                 Collections.shuffle(Arrays.asList(fuel_List1));
  1074.                                 Random fuelChosen = new Random();
  1075.                                 int fuelChosen_index = fuelChosen.nextInt(fuel_List1.length);
  1076.                                 fuel_Chosen = fuel_List1[fuelChosen_index];
  1077.                             } case "F2 (Fluorine) + O2 (Oxygen)", "O3 (Ozone)" -> {
  1078.                                 String[] fuel_List2 = {"H2 (Hydrogen)", "N2H4 (Hydrazine)", "CH3OH (Methanol)",
  1079.                                         "C12H24 (Kerosene)", "B2H6 (Diborane)", "B5H9 (Pentaborane)"};
  1080.                                 Collections.shuffle(Arrays.asList(fuel_List2));
  1081.                                 Random fuelChosen = new Random();
  1082.                                 int fuelChosen_index = fuelChosen.nextInt(fuel_List2.length);
  1083.                                 fuel_Chosen = fuel_List2[fuelChosen_index];
  1084.                             }
  1085.                         }
  1086.  
  1087.                         Collections.shuffle(Arrays.asList(altitude_Of_Operation));
  1088.                         Random altitudeOfOperationChosen = new Random();
  1089.                         int altitudeOfOperationChosen_index = altitudeOfOperationChosen.nextInt(altitude_Of_Operation.length);
  1090.                         String altitude_Of_Operation_Chosen = altitude_Of_Operation[altitudeOfOperationChosen_index];
  1091.  
  1092.                         String nozzle_Type_Chosen = bussy(altitude_Of_Operation_Chosen);
  1093.  
  1094.                         String[] cooling_mechanism = {"Ablative Cooling", "Radiative Cooling", "Dump Cooling", "Film Cooling",
  1095.                                 "Regenerative Cooling", "Transpiration Cooling"};
  1096.                         Collections.shuffle(Arrays.asList(cooling_mechanism));
  1097.                         Random coolingMechanismChosen = new Random();
  1098.                         int coolingMechanismChosen_index = coolingMechanismChosen.nextInt(cooling_mechanism.length);
  1099.                         String cooling_Mechanism_Chosen = cooling_mechanism[coolingMechanismChosen_index];
  1100.  
  1101.                         output_ex(engine_Name, engine_Cycle_Chosen, oxidizer_Chosen, fuel_Chosen, altitude_Of_Operation_Chosen,
  1102.                                 nozzle_Type_Chosen,"Autogenously", cooling_Mechanism_Chosen);
  1103.                     }
  1104.  
  1105.                     case "Dual Expander (Closed)", "Dual Expander (Open/Bleed)" -> {
  1106.                         String[] oxidizer_List3 = {"O2 (Oxygen)", "F2 (Fluorine)", "F2 (Fluorine) + O2 (Oxygen)"};
  1107.                         Collections.shuffle(Arrays.asList(oxidizer_List3));
  1108.                         Random oxidizerChosen = new Random();
  1109.                         int oxidizerChosen_index = oxidizerChosen.nextInt(oxidizer_List3.length);
  1110.                         String oxidizer_Chosen = oxidizer_List3[oxidizerChosen_index];
  1111.  
  1112.                         String fuel_Chosen = "";
  1113.                         String[] fuel_List3 = {"H2 (Hydrogen)", "CH4 (Methane)"};
  1114.                         switch (oxidizer_Chosen) {
  1115.                             case "O2 (Oxygen)", "F2 (Fluorine)" -> {
  1116.                                 Collections.shuffle(Arrays.asList(fuel_List3));
  1117.                                 Random fuelChosen = new Random();
  1118.                                 int fuelChosen_index = fuelChosen.nextInt(fuel_List3.length);
  1119.                                 fuel_Chosen = fuel_List3[fuelChosen_index];
  1120.                             } case "F2 (Fluorine) + O2 (Oxygen)" -> fuel_Chosen = "H2 (Hydrogen)";
  1121.                         }
  1122.  
  1123.                         Collections.shuffle(Arrays.asList(altitude_Of_Operation));
  1124.                         Random altitudeOfOperationChosen = new Random();
  1125.                         int altitudeOfOperationChosen_index = altitudeOfOperationChosen.nextInt(altitude_Of_Operation.length);
  1126.                         String altitude_Of_Operation_Chosen = altitude_Of_Operation[altitudeOfOperationChosen_index];
  1127.  
  1128.                         String nozzle_Type_Chosen = bussy(altitude_Of_Operation_Chosen);
  1129.  
  1130.                         String[] cooling_mechanism = {"Ablative Cooling", "Radiative Cooling", "Dump Cooling", "Film Cooling",
  1131.                                 "Regenerative Cooling", "Transpiration Cooling"};
  1132.                         Collections.shuffle(Arrays.asList(cooling_mechanism));
  1133.                         Random coolingMechanismChosen = new Random();
  1134.                         int coolingMechanismChosen_index = coolingMechanismChosen.nextInt(cooling_mechanism.length);
  1135.                         String cooling_Mechanism_Chosen = cooling_mechanism[coolingMechanismChosen_index];
  1136.                         output_ex(engine_Name, engine_Cycle_Chosen, oxidizer_Chosen, fuel_Chosen,
  1137.                                 altitude_Of_Operation_Chosen, nozzle_Type_Chosen,"Autogenously", cooling_Mechanism_Chosen);
  1138.  
  1139.                     }
  1140.                     case "Staged Combustion (Fuel Rich)" -> {
  1141.                         String[] oxidizer_List4 = {"O2 (Oxygen)", "F2 (Fluorine)", "F2 (Fluorine) + O2 (Oxygen)", "O3 (Ozone)"};
  1142.                         Collections.shuffle(Arrays.asList(oxidizer_List4));
  1143.                         Random oxidizerChosen = new Random();
  1144.                         int oxidizerChosen_index = oxidizerChosen.nextInt(oxidizer_List4.length);
  1145.                         String oxidizer_Chosen = oxidizer_List4[oxidizerChosen_index];
  1146.  
  1147.                         String fuel_Chosen = "";
  1148.                         switch (oxidizer_Chosen) {
  1149.                             case "O2 (Oxygen)", "F2 (Fluorine)" -> {
  1150.                                 String[] fuel_List4 = {"H2 (Hydrogen)", "NH3 (Ammonia)", "N2H4 (Hydrazine)"};
  1151.                                 Collections.shuffle(Arrays.asList(fuel_List4));
  1152.                                 Random fuelChosen = new Random();
  1153.                                 int fuelChosen_index = fuelChosen.nextInt(fuel_List4.length);
  1154.                                 fuel_Chosen = fuel_List4[fuelChosen_index];
  1155.                             } case "F2 (Fluorine) + O2 (Oxygen)", "O3 (Ozone)" -> {
  1156.                                 String[] fuel_List6 = {"H2 (Hydrogen)"};
  1157.                                 Collections.shuffle(Arrays.asList(fuel_List6));
  1158.                                 Random fuelChosen = new Random();
  1159.                                 int fuelChosen_index = fuelChosen.nextInt(fuel_List6.length);
  1160.                                 fuel_Chosen = fuel_List6[fuelChosen_index];
  1161.                             }
  1162.                         }
  1163.                         Collections.shuffle(Arrays.asList(tank_Repressurisation));
  1164.                         Random tankRepressurisationChosen = new Random();
  1165.                         int tankRepressurisationChosen_index = tankRepressurisationChosen.nextInt(tank_Repressurisation.length);
  1166.                         String tank_Repressurisation_Chosen = tank_Repressurisation[tankRepressurisationChosen_index];
  1167.  
  1168.                         Collections.shuffle(Arrays.asList(altitude_Of_Operation));
  1169.                         Random altitudeOfOperationChosen = new Random();
  1170.                         int altitudeOfOperationChosen_index = altitudeOfOperationChosen.nextInt(altitude_Of_Operation.length);
  1171.                         String altitude_Of_Operation_Chosen = altitude_Of_Operation[altitudeOfOperationChosen_index];
  1172.  
  1173.                         String nozzle_Type_Chosen = bussy(altitude_Of_Operation_Chosen);
  1174.  
  1175.                         String[] cooling_mechanism = {"Ablative Cooling", "Radiative Cooling", "Dump Cooling", "Film Cooling",
  1176.                                 "Regenerative Cooling", "Transpiration Cooling"};
  1177.                         Collections.shuffle(Arrays.asList(cooling_mechanism));
  1178.                         Random coolingMechanismChosen = new Random();
  1179.                         int coolingMechanismChosen_index = coolingMechanismChosen.nextInt(cooling_mechanism.length);
  1180.                         String cooling_Mechanism_Chosen = cooling_mechanism[coolingMechanismChosen_index];
  1181.                         output_def(engine_Name, engine_Cycle_Chosen, oxidizer_Chosen, fuel_Chosen,
  1182.                                 altitude_Of_Operation_Chosen, nozzle_Type_Chosen, tank_Repressurisation_Chosen, cooling_Mechanism_Chosen);
  1183.                     }
  1184.  
  1185.                     case "Staged Combustion (Oxidizer Rich)" -> {
  1186.                         String[] oxidizer_List4 = {"O2 (Oxygen)", "N2H4 (Hydrazine)", "O3 (Ozone)", "N2O4 (Nitrogen Tetroxide)"};
  1187.                         Collections.shuffle(Arrays.asList(oxidizer_List4));
  1188.                         Random oxidizerChosen = new Random();
  1189.                         int oxidizerChosen_index = oxidizerChosen.nextInt(oxidizer_List4.length);
  1190.                         String oxidizer_Chosen = oxidizer_List4[oxidizerChosen_index];
  1191.  
  1192.                         String fuel_Chosen = "";
  1193.                         switch (oxidizer_Chosen) {
  1194.                             case "O2 (Oxygen)", "O3 (Ozone)" -> {
  1195.                                 String[] fuel_List4 = {"H2 (Hydrogen)", "CH4 (Methane)", "C2H5OH(Ethanol) 85%", "C2H5OH(Ethanol) 75%",
  1196.                                         "C6H5NH2 (Aniline)", "NH3 (Ammonia)", "CH6N2 (MonomethylHydrazine)", "N2H4 (Hydrazine)",
  1197.                                         "CH3OH (Methanol)"};
  1198.                                 Collections.shuffle(Arrays.asList(fuel_List4));
  1199.                                 Random fuelChosen = new Random();
  1200.                                 int fuelChosen_index = fuelChosen.nextInt(fuel_List4.length);
  1201.                                 fuel_Chosen = fuel_List4[fuelChosen_index];
  1202.                             } case "N2H4 (Hydrazine)", "N2O4 (Nitrogen Tetroxide)" -> {
  1203.                                 String[] fuel_List7 = {"C6H5NH2 (Aniline)", "75% CH6N2 + 25% N2H4 (UH-25)", "50% CH6N2 + 50% N2H4 (Aerosine-50)",
  1204.                                         "C2H8N2 (UnsymetricalDimethylHydrazine)"};
  1205.                                 Collections.shuffle(Arrays.asList(fuel_List7));
  1206.                                 Random fuelChosen = new Random();
  1207.                                 int fuelChosen_index = fuelChosen.nextInt(fuel_List7.length);
  1208.                                 fuel_Chosen = fuel_List7[fuelChosen_index];
  1209.                             }
  1210.                         }
  1211.                         Collections.shuffle(Arrays.asList(tank_Repressurisation));
  1212.                         Random tankRepressurisationChosen = new Random();
  1213.                         int tankRepressurisationChosen_index = tankRepressurisationChosen.nextInt(tank_Repressurisation.length);
  1214.                         String tank_Repressurisation_Chosen = tank_Repressurisation[tankRepressurisationChosen_index];
  1215.  
  1216.                         Collections.shuffle(Arrays.asList(altitude_Of_Operation));
  1217.                         Random altitudeOfOperationChosen = new Random();
  1218.                         int altitudeOfOperationChosen_index = altitudeOfOperationChosen.nextInt(altitude_Of_Operation.length);
  1219.                         String altitude_Of_Operation_Chosen = altitude_Of_Operation[altitudeOfOperationChosen_index];
  1220.  
  1221.                         String nozzle_Type_Chosen = bussy(altitude_Of_Operation_Chosen);
  1222.  
  1223.                         String[] cooling_mechanism = {"Ablative Cooling", "Radiative Cooling", "Dump Cooling", "Film Cooling",
  1224.                                 "Regenerative Cooling", "Transpiration Cooling"};
  1225.                         Collections.shuffle(Arrays.asList(cooling_mechanism));
  1226.                         Random coolingMechanismChosen = new Random();
  1227.                         int coolingMechanismChosen_index = coolingMechanismChosen.nextInt(cooling_mechanism.length);
  1228.                         String cooling_Mechanism_Chosen = cooling_mechanism[coolingMechanismChosen_index];
  1229.                         output_def(engine_Name, engine_Cycle_Chosen, oxidizer_Chosen, fuel_Chosen,
  1230.                                 altitude_Of_Operation_Chosen, nozzle_Type_Chosen, tank_Repressurisation_Chosen, cooling_Mechanism_Chosen);
  1231.                     }
  1232.  
  1233.                     case "Full Flow Staged Combustion", "Combustion Tap Off" -> {
  1234.                         String[] oxidizer_List4 = {"O2 (Oxygen)", "F2 (Fluorine)", "F2 (Fluorine) + O2 (Oxygen)",
  1235.                                 "N2H4 (Hydrazine)", "O3 (Ozone)", "N2O4 (Nitrogen Tetroxide)"};
  1236.                         Collections.shuffle(Arrays.asList(oxidizer_List4));
  1237.                         Random oxidizerChosen = new Random();
  1238.                         int oxidizerChosen_index = oxidizerChosen.nextInt(oxidizer_List4.length);
  1239.                         String oxidizer_Chosen = oxidizer_List4[oxidizerChosen_index];
  1240.  
  1241.                         String fuel_Chosen = "";
  1242.                         switch (oxidizer_Chosen) {
  1243.                             case "O2 (Oxygen)" -> {
  1244.                                 String[] fuel_List4 = {"H2 (Hydrogen)", "CH4 (Methane)", "C2H5OH(Ethanol) 85%", "C2H5OH(Ethanol) 75%",
  1245.                                         "C6H5NH2 (Aniline)", "NH3 (Ammonia)", "CH6N2 (MonomethylHydrazine)", "N2H4 (Hydrazine)",
  1246.                                         "CH3OH (Methanol)", "B2H6 (Diborane)", "B5H9 (Pentaborane)"};
  1247.                                 Collections.shuffle(Arrays.asList(fuel_List4));
  1248.                                 Random fuelChosen = new Random();
  1249.                                 int fuelChosen_index = fuelChosen.nextInt(fuel_List4.length);
  1250.                                 fuel_Chosen = fuel_List4[fuelChosen_index];
  1251.                             } case "F2 (Fluorine)" -> {
  1252.                                 String[] fuel_List5 = {"H2 (Hydrogen)", "CH4 (Methane)", "C2H5OH(Ethanol) 85%", "C2H5OH(Ethanol) 75%",
  1253.                                         "NH3 (Ammonia)", "C2H8N2 (UnsymetricalDimethylHydrazine)", "CH6N2 (MonomethylHydrazine)",
  1254.                                         "N2H4 (Hydrazine)", "CH3OH (Methanol)"};
  1255.                                 Collections.shuffle(Arrays.asList(fuel_List5));
  1256.                                 Random fuelChosen = new Random();
  1257.                                 int fuelChosen_index = fuelChosen.nextInt(fuel_List5.length);
  1258.                                 fuel_Chosen = fuel_List5[fuelChosen_index];
  1259.                             } case "F2 (Fluorine) + O2 (Oxygen)", "O3 (Ozone)" -> {
  1260.                                 String[] fuel_List6 = {"H2 (Hydrogen)", "CH4 (Methane)", "C2H5OH(Ethanol) 85%", "C2H5OH(Ethanol) 75%",
  1261.                                         "C6H5NH2 (Aniline)", "75% CH6N2 + 25% N2H4 (UH-25)", "50% CH6N2 + 50% N2H4 (Aerosine-50)",
  1262.                                         "CH6N2 (MonomethylHydrazine)", "B2H6 (Diborane)", "B5H9 (Pentaborane)"};
  1263.                                 Collections.shuffle(Arrays.asList(fuel_List6));
  1264.                                 Random fuelChosen = new Random();
  1265.                                 int fuelChosen_index = fuelChosen.nextInt(fuel_List6.length);
  1266.                                 fuel_Chosen = fuel_List6[fuelChosen_index];
  1267.                             } case "N2H4 (Hydrazine)", "N2O4 (Nitrogen Tetroxide)" -> {
  1268.                                 String[] fuel_List7 = {"H2 (Hydrogen)", "C2H5OH(Ethanol) 85%", "C2H5OH(Ethanol) 75%",
  1269.                                         "C6H5NH2 (Aniline)", "75% CH6N2 + 25% N2H4 (UH-25)", "50% CH6N2 + 50% N2H4 (Aerosine-50)",
  1270.                                         "C2H8N2 (UnsymetricalDimethylHydrazine)", "CH3OH (Methanol)", "B2H6 (Diborane)"};
  1271.                                 Collections.shuffle(Arrays.asList(fuel_List7));
  1272.                                 Random fuelChosen = new Random();
  1273.                                 int fuelChosen_index = fuelChosen.nextInt(fuel_List7.length);
  1274.                                 fuel_Chosen = fuel_List7[fuelChosen_index];
  1275.                             }
  1276.                         }
  1277.                         Collections.shuffle(Arrays.asList(tank_Repressurisation));
  1278.                         Random tankRepressurisationChosen = new Random();
  1279.                         int tankRepressurisationChosen_index = tankRepressurisationChosen.nextInt(tank_Repressurisation.length);
  1280.                         String tank_Repressurisation_Chosen = tank_Repressurisation[tankRepressurisationChosen_index];
  1281.  
  1282.                         Collections.shuffle(Arrays.asList(altitude_Of_Operation));
  1283.                         Random altitudeOfOperationChosen = new Random();
  1284.                         int altitudeOfOperationChosen_index = altitudeOfOperationChosen.nextInt(altitude_Of_Operation.length);
  1285.                         String altitude_Of_Operation_Chosen = altitude_Of_Operation[altitudeOfOperationChosen_index];
  1286.  
  1287.                         String nozzle_Type_Chosen = bussy(altitude_Of_Operation_Chosen);
  1288.  
  1289.                         String[] cooling_mechanism = {"Ablative Cooling", "Radiative Cooling", "Dump Cooling", "Film Cooling",
  1290.                                 "Regenerative Cooling", "Transpiration Cooling"};
  1291.                         Collections.shuffle(Arrays.asList(cooling_mechanism));
  1292.                         Random coolingMechanismChosen = new Random();
  1293.                         int coolingMechanismChosen_index = coolingMechanismChosen.nextInt(cooling_mechanism.length);
  1294.                         String cooling_Mechanism_Chosen = cooling_mechanism[coolingMechanismChosen_index];
  1295.                         output_def(engine_Name, engine_Cycle_Chosen, oxidizer_Chosen, fuel_Chosen,
  1296.                                 altitude_Of_Operation_Chosen, nozzle_Type_Chosen, tank_Repressurisation_Chosen, cooling_Mechanism_Chosen);
  1297.                     }
  1298.  
  1299.                     default -> {
  1300.                         String[] oxidizer_List6 = {"O2 (Oxygen)", "F2 (Fluorine)", "F2 (Fluorine) + O2 (Oxygen)",
  1301.                                 "N2O4 (Nitrogen Tetroxide)", "N2H4 (Hydrazine)", "H2O2 (Hydrogen Peroxide) 95%",
  1302.                                 "H2O2 (Hydrogen Peroxide) 85%", "O3 (Ozone)", "AK20F: 80% HNO3 + 20% N2O4 (Nitric Acid)",
  1303.                                 "AK20I: 80% HNO3 + 20% N2O4 (Nitric Acid)", "AK20K: 80% HNO3 + 20% N2O4 (Nitric Acid)",
  1304.                                 "AK27I: 73% HNO3 + 27% N2O4 (Nitric Acid)", "AK27P: 73% HNO3 + 27% N2O4 (Nitric Acid)",
  1305.                                 "ClF3 (Chlorine Trifluoride)", "ClF5 (Chlorine Pentafluoride)"};
  1306.                         Collections.shuffle(Arrays.asList(oxidizer_List6));
  1307.                         Random oxidizerChosen = new Random();
  1308.                         int oxidizerChosen_index = oxidizerChosen.nextInt(oxidizer_List6.length);
  1309.                         String oxidizer_Chosen = oxidizer_List6[oxidizerChosen_index];
  1310.  
  1311.                         String fuel_Chosen = "";
  1312.                         switch (oxidizer_Chosen) {
  1313.                             case "O2 (Oxygen)" -> {
  1314.                                 String[] fuel_List8 = {"H2 (Hydrogen)", "CH4 (Methane)", "C2H5OH(Ethanol) 85%", "C2H5OH(Ethanol) 75%",
  1315.                                         "C6H5NH2 (Aniline)", "NH3 (Ammonia)", "CH6N2 (MonomethylHydrazine)",
  1316.                                         "N2H4 (Hydrazine)", "CH3OH (Methanol)", "C12H24 (Kerosene)", "B2H6 (Diborane)", "B5H9 (Pentaborane)",
  1317.                                         "C2H6 (Ethane)"};
  1318.                                 Collections.shuffle(Arrays.asList(fuel_List8));
  1319.                                 Random fuelChosen = new Random();
  1320.                                 int fuelChosen_index = fuelChosen.nextInt(fuel_List8.length);
  1321.                                 fuel_Chosen = fuel_List8[fuelChosen_index];
  1322.                             } case "F2 (Fluorine)" -> {
  1323.                                 String[] fuel_List9 = {"H2 (Hydrogen)", "CH4 (Methane)", "C2H5OH(Ethanol) 85%", "C2H5OH(Ethanol) 75%",
  1324.                                         "C6H5NH2 (Aniline)", "NH3 (Ammonia)",
  1325.                                         "C2H8N2 (UnsymetricalDimethylHydrazine)", "CH6N2 (MonomethylHydrazine)", "N2H4 (Hydrazine)",
  1326.                                         "CH3OH (Methanol)", "C12H24 (Kerosene)", "B2H6 (Diborane)", "B5H9 (Pentaborane)"};
  1327.                                 Collections.shuffle(Arrays.asList(fuel_List9));
  1328.                                 Random fuelChosen = new Random();
  1329.                                 int fuelChosen_index = fuelChosen.nextInt(fuel_List9.length);
  1330.                                 fuel_Chosen = fuel_List9[fuelChosen_index];
  1331.                             } case "F2 (Fluorine) + O2 (Oxygen)", "O3 (Ozone)" -> {
  1332.                                 String[] fuel_List10 = {"H2 (Hydrogen)", "CH3OH (Methanol)", "C12H24 (Kerosene)", "B2H6 (Diborane)",
  1333.                                         "B5H9 (Pentaborane)"};
  1334.                                 Collections.shuffle(Arrays.asList(fuel_List10));
  1335.                                 Random fuelChosen = new Random();
  1336.                                 int fuelChosen_index = fuelChosen.nextInt(fuel_List10.length);
  1337.                                 fuel_Chosen = fuel_List10[fuelChosen_index];
  1338.                             } case "AK20F: 80% HNO3 + 20% N2O4 (Nitric Acid)", "AK20I: 80% HNO3 + 20% N2O4 (Nitric Acid)",
  1339.                                     "AK20K: 80% HNO3 + 20% N2O4 (Nitric Acid)", "AK27I: 73% HNO3 + 27% N2O4 (Nitric Acid)",
  1340.                                     "AK27P: 73% HNO3 + 27% N2O4 (Nitric Acid)", "ClF3 (Chlorine Trifluoride)",
  1341.                                     "ClF5 (Chlorine Pentafluoride)" -> {
  1342.                                 String[] fuel_List11 = {"C2H5OH(Ethanol) 85%", "CH6N2 (MonomethylHydrazine)", "N2H4 (Hydrazine)",
  1343.                                         "CH3OH (Methanol)"};
  1344.                                 Collections.shuffle(Arrays.asList(fuel_List11));
  1345.                                 Random fuelChosen = new Random();
  1346.                                 int fuelChosen_index = fuelChosen.nextInt(fuel_List11.length);
  1347.                                 fuel_Chosen = fuel_List11[fuelChosen_index];
  1348.                             } case "N2O4 (Nitrogen Tetroxide)", "H2O2 (Hydrogen Peroxide) 95%", "H2O2 (Hydrogen Peroxide) 85%" -> {
  1349.                                 String[] fuel_List12 = {"H2 (Hydrogen)", "C2H5OH(Ethanol) 85%", "C2H5OH(Ethanol) 75%",
  1350.                                         "C6H5NH2 (Aniline)", "75% CH6N2 + 25% N2H4 (UH-25)", "50% CH6N2 + 50% N2H4 (Aerosine-50)",
  1351.                                         "C2H8N2 (UnsymmetricalDimethylHydrazine)", "CH6N2 (MonomethylHydrazine)", "N2H4 (Hydrazine)",
  1352.                                         "CH3OH (Methanol)", "C12H24 (Kerosene)"};
  1353.                                 Collections.shuffle(Arrays.asList(fuel_List12));
  1354.                                 Random fuelChosen = new Random();
  1355.                                 int fuelChosen_index = fuelChosen.nextInt(fuel_List12.length);
  1356.                                 fuel_Chosen = fuel_List12[fuelChosen_index];
  1357.                             } case "N2H4 (Hydrazine)" -> {
  1358.                                 String[] fuel_List13 = {"B2H6 (Diborane)", "B5H9 (Pentaborane)"};
  1359.                                 Collections.shuffle(Arrays.asList(fuel_List13));
  1360.                                 Random fuelChosen = new Random();
  1361.                                 int fuelChosen_index = fuelChosen.nextInt(fuel_List13.length);
  1362.                                 fuel_Chosen = fuel_List13[fuelChosen_index];
  1363.                             }
  1364.                         }
  1365.  
  1366.                         Collections.shuffle(Arrays.asList(tank_Repressurisation));
  1367.                         Random tankRepressurisationChosen = new Random();
  1368.                         int tankRepressurisationChosen_index = tankRepressurisationChosen.nextInt(tank_Repressurisation.length);
  1369.                         String tank_Repressurisation_Chosen = tank_Repressurisation[tankRepressurisationChosen_index];
  1370.  
  1371.                         Collections.shuffle(Arrays.asList(altitude_Of_Operation));
  1372.                         Random altitudeOfOperationChosen = new Random();
  1373.                         int altitudeOfOperationChosen_index = altitudeOfOperationChosen.nextInt(altitude_Of_Operation.length);
  1374.                         String altitude_Of_Operation_Chosen = altitude_Of_Operation[altitudeOfOperationChosen_index];
  1375.  
  1376.                         String nozzle_Type_Chosen = bussy(altitude_Of_Operation_Chosen);
  1377.  
  1378.                         String[] cooling_mechanism = {"Ablative Cooling", "Radiative Cooling", "Dump Cooling", "Film Cooling",
  1379.                                 "Regenerative Cooling", "Transpiration Cooling"};
  1380.                         Collections.shuffle(Arrays.asList(cooling_mechanism));
  1381.                         Random coolingMechanismChosen = new Random();
  1382.                         int coolingMechanismChosen_index = coolingMechanismChosen.nextInt(cooling_mechanism.length);
  1383.                         String cooling_Mechanism_Chosen = cooling_mechanism[coolingMechanismChosen_index];
  1384.                         output_def(engine_Name, engine_Cycle_Chosen, oxidizer_Chosen, fuel_Chosen,
  1385.                                 altitude_Of_Operation_Chosen, nozzle_Type_Chosen, tank_Repressurisation_Chosen, cooling_Mechanism_Chosen);
  1386.                     }
  1387.                 }
  1388.             } else {
  1389.                 while (!(repeatCommand.equalsIgnoreCase("Y") && repeatCommand.equalsIgnoreCase("N"))) {
  1390.                     System.out.println("Wrong input! Input must be either [Y/N] or [Yes/No]");
  1391.                     System.out.print("> ");
  1392.                     repeatCommand = scanner.next();
  1393.                     if (repeatCommand.equalsIgnoreCase("Y") || repeatCommand.equalsIgnoreCase("N") || repeatCommand.equalsIgnoreCase("YES") || repeatCommand.equalsIgnoreCase("NO")) {
  1394.                         break;
  1395.                     }
  1396.                 }
  1397.             }
  1398.         }
  1399.     }
  1400. }
  1401.  
Add Comment
Please, Sign In to add comment