Next Week's Insight · 6:07pm Oct 15th, 2016
So finished the Fire of the fighter chapter 3 already now I just need to spend the next week shining it up. It contains the fight along with seeing an alchemy warrior briefly in action. Just under six thousand the fight is a bit extensive but it also contains two subchapters of Adridge and Lindestic. They get a bit personal.
As for what comes this week its the Hexers chapter two. That had been done for a while but Now I just need to spend the next week looking over it while also getting to work with chapter 4 of Fire with the fighter.
I'll see ya Friday and in the mean time you can take a look at this little peace of work I did in programming last week.
I would explain but basically its matrix math and if you know anything about the matrix its that its super damn hard to explain so yea.
package com.company;
import java.util.Random;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// write your code here
Random myRandom = new Random();
Scanner myScanner = new Scanner(System.in);
String userInput;
int userInput0;
System.out.println("Welcome to the Matrix Math Hirschi");
System.out.println("How manny Arrays will you have?");
userInput0 = myScanner.nextInt();
int[][] arrayA = new int[userInput0][userInput0];
int[][] arrayB = new int[userInput0][userInput0];
int[][] arrayC = new int[userInput0][userInput0];
if (userInput0 < 100) {
for (int rows = 0; rows < userInput0; rows++) {
for(int columns = 0; columns < userInput0; columns++){
arrayB[rows][columns] = myRandom.nextInt(101);
arrayC[rows][columns] = myRandom.nextInt(101);
}
}
}
else {
System.out.println("That is not a valid answer");
System.out.println("Game Over");
}
System.out.println("...");
int printRow;
int printColumns;
String space = " ";
for (printRow = 0; printRow < userInput0; printRow++) {
for (printColumns = 0; printColumns < userInput0; printColumns++) {
space = space.concat(arrayB[printRow][printColumns] + " ");
}
System.out.println(space);
space = " ";
}
System.out.println("...");
for (printRow = 0; printRow < userInput0; printRow++) {
for (printColumns = 0; printColumns < userInput0; printColumns++) {
space = space.concat(arrayC[printRow][printColumns] + " ");
}
System.out.println(space);
space = " ";
}
myScanner.nextLine();
System.out.println("Will you be doing addition or multiplication?");
userInput = myScanner.nextLine();
if (userInput.equals("+")) {System.out.println("Addition");
for (printRow = 0; printRow < userInput0; printRow++){
for (printColumns = 0; printColumns < userInput0; printRow++){
arrayA[printRow][printColumns] = arrayB[printRow][printColumns] + arrayC[printRow][printColumns];
}
}
}
if (userInput.equals("*")) {System.out.println("Multiplication");
for (printRow = 0; printRow < userInput0; printRow++){
for (printColumns = 0; printColumns < userInput0; printColumns++) {
arrayA[printRow][printColumns] = arrayB[printRow][printColumns] * arrayC[printRow][printColumns];
}
}
}
System.out.println("...");
for (printRow = 0; printRow < userInput0; printRow++) {
for (printColumns = 0; printColumns < userInput0; printColumns++)
//System.out.println(arrayA[printRow][printColumns]);
space = space.concat(arrayA[printRow][printColumns] + " ");
System.out.println(space);
}
}
}