+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/HW1.iml b/.idea/HW1.iml
new file mode 100644
index 0000000..c90834f
--- /dev/null
+++ b/.idea/HW1.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/README.md b/.idea/README.md
new file mode 100644
index 0000000..837786d
--- /dev/null
+++ b/.idea/README.md
@@ -0,0 +1,20 @@
+# HW1
+
+* Create a folder for your files, and put all your work in those files.
+* Please do not modify the original files (you can make a copy of them in your folder and modify that copy.)
+* DO NOT check in changes to other students folders. This means that you should not be committing anything that changes files in a folder that is not yours. If it happens by accident, let the professor and the student know, and the professor will help undo the change.
+
+For each problem I want you to submit to me at least three files:
+* A file with your code in it that will compile, and that you feel solves the problem (or as ar as you got in that process.)
+* A file with test cases you used to see if your program is working (needs at least 5 unique tet cases.)
+* Anwers for your test cases. This can be a file with what the expected output is for the input file, or A file with the test cases from the previous file, and the answer per case on the line following that case.
+
+
+## Discussion
+
+You can discuss approaches to the problems with anyone. I strongly suggest that you do not share your code except by pulling up what you have handed into the class repo.
+
+
+## Due
+
+These programs will be due no earlier than Mon 26th. We will talk about the due date on the 19th.
diff --git a/.idea/SkylarGalloway/.idea/workspace.xml b/.idea/SkylarGalloway/.idea/workspace.xml
new file mode 100644
index 0000000..fbc8620
--- /dev/null
+++ b/.idea/SkylarGalloway/.idea/workspace.xml
@@ -0,0 +1,267 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/SkylarGalloway/Problem 1/FiveOutput.txt b/.idea/SkylarGalloway/Problem 1/FiveOutput.txt
new file mode 100644
index 0000000..a4ff8f5
--- /dev/null
+++ b/.idea/SkylarGalloway/Problem 1/FiveOutput.txt
@@ -0,0 +1,4 @@
+Boston_Walking_Dead_Zombie_Run
+Man_BunRun
+No_Concrete_Run_In_Mud
+
diff --git a/.idea/SkylarGalloway/Problem 1/Problem_One.iml b/.idea/SkylarGalloway/Problem 1/Problem_One.iml
new file mode 100644
index 0000000..c90834f
--- /dev/null
+++ b/.idea/SkylarGalloway/Problem 1/Problem_One.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/SkylarGalloway/Problem 1/fiveInput.txt b/.idea/SkylarGalloway/Problem 1/fiveInput.txt
new file mode 100644
index 0000000..9076097
--- /dev/null
+++ b/.idea/SkylarGalloway/Problem 1/fiveInput.txt
@@ -0,0 +1,10 @@
+Input files
+5
+# of keywords to match
+2
+
+Boston_Walking_Dead_Zombie_Run
+300_SparTan_Run
+Man_BunRun
+No_Concrete_Run_In_Mud
+BunRun_Spartan_Mud_Run
diff --git a/.idea/SkylarGalloway/Problem 1/out/production/Problem_One/findFIle.class b/.idea/SkylarGalloway/Problem 1/out/production/Problem_One/findFIle.class
new file mode 100644
index 0000000..2e646bb
Binary files /dev/null and b/.idea/SkylarGalloway/Problem 1/out/production/Problem_One/findFIle.class differ
diff --git a/.idea/SkylarGalloway/Problem 1/problem1.md b/.idea/SkylarGalloway/Problem 1/problem1.md
new file mode 100644
index 0000000..bb6eb4b
--- /dev/null
+++ b/.idea/SkylarGalloway/Problem 1/problem1.md
@@ -0,0 +1,43 @@
+# Problem 1
+
+You have a friend who has a lot of files where each one contains the results from a race. These files do not have a standard naming system.
+However you do know the names of the races, and also that each race puts it's name in the file name for it's results.
+
+The races your friend is interested in are:
+* BunRun
+* Zombie
+* Boston
+* Spartan
+* Mud
+
+There happen to have an index file of all the file names. Your friend is willing totype these names in on the command line to your program.
+
+They are asking you to find all file names that contain exactly one of the names of the races, and print them to the screen so they can find them.
+
+Here is a small version of the index file (Note the number on the first line that says how many files there are to consider):
+
+~~~
+4
+2014_Mud-run_for_fun.xml
+Spartan_run_in_the_Mud.doc
+Boston-Marathon_2019
+Bun_Run_In_The_Sun.pdf
+~~~
+
+Result for these file names:
+
+~~~
+2014_Mud-run_for_fun.xml
+Boston-Marathon_2019
+~~~
+
+## What to have in your answer:
+* A file that has your program in it that can be compiled. It should be named: .java
+* A seperate file with at least 5 test possible file names that you create.
+* A seperate file with the answers to the test cases you created (list the file name on one line and then the answer on the following line.)
+
+
+## Bonus:
+1. Get your program to give an option to print either the file names that contain exactly one of the race names, or any/multiple of the race names, based upon input from the user (to decide which they want to do.)
+2. Your friend has found an additional batch of files that are in folders. Look for the race names, ignoring any characters before the last '/' in the file name:
+races/summer/north/Zombie_run_for_your_life.docx
diff --git a/.idea/SkylarGalloway/Problem 1/src/findFIle.java b/.idea/SkylarGalloway/Problem 1/src/findFIle.java
new file mode 100644
index 0000000..8ce6daf
--- /dev/null
+++ b/.idea/SkylarGalloway/Problem 1/src/findFIle.java
@@ -0,0 +1,87 @@
+/*
+My Test
+Boston_Walking_Dead_Zombie_Run
+300_SparTan_Run
+Man_BunRun
+No_Concrete_Run_In_Mud
+BunRun_Spartan_Mud_Run
+
+Professor Ifland
+
+*/
+
+import java.util.Scanner;
+public class findFIle {
+ public static void main(String[]args){
+ Scanner numFiles = new Scanner(System.in); //input number of files
+ System.out.println("Enter number of files: ");
+ int num = numFiles.nextInt();
+
+ Scanner numfiles = new Scanner(System.in); //input number of files
+ System.out.println("How Many Keywords Matches: ");
+ int nUm = numfiles.nextInt();
+
+ Scanner fiLe = new Scanner(System.in); // input file names
+ //String[] userFile = new String[num]; Array for files
+ for (int i=0; i
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/SkylarGalloway/Problem 2/Problem_Two/Problem_Two.iml b/.idea/SkylarGalloway/Problem 2/Problem_Two/Problem_Two.iml
new file mode 100644
index 0000000..c90834f
--- /dev/null
+++ b/.idea/SkylarGalloway/Problem 2/Problem_Two/Problem_Two.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/SkylarGalloway/Problem 2/Problem_Two/out/production/Problem_Two/bonusGrouping.class b/.idea/SkylarGalloway/Problem 2/Problem_Two/out/production/Problem_Two/bonusGrouping.class
new file mode 100644
index 0000000..a5deff4
Binary files /dev/null and b/.idea/SkylarGalloway/Problem 2/Problem_Two/out/production/Problem_Two/bonusGrouping.class differ
diff --git a/.idea/SkylarGalloway/Problem 2/Problem_Two/out/production/Problem_Two/grouping.class b/.idea/SkylarGalloway/Problem 2/Problem_Two/out/production/Problem_Two/grouping.class
new file mode 100644
index 0000000..aedd45a
Binary files /dev/null and b/.idea/SkylarGalloway/Problem 2/Problem_Two/out/production/Problem_Two/grouping.class differ
diff --git a/.idea/SkylarGalloway/Problem 2/Problem_Two/src/bonusGrouping.java b/.idea/SkylarGalloway/Problem 2/Problem_Two/src/bonusGrouping.java
new file mode 100644
index 0000000..e1ed469
--- /dev/null
+++ b/.idea/SkylarGalloway/Problem 2/Problem_Two/src/bonusGrouping.java
@@ -0,0 +1,50 @@
+//Alex Kerr helped explain a way to achieve the bonus
+/*Input for bonus code
+max number in group: 4
+1 2 3 4 0
+max number in group: 5
+5 5 5 5 4 0
+max number in group: 3
+1 1 1 1 1 1 1 1 1 1 0
+
+max number in group: 7
+1 2 3 2 3 4 4 7 0
+
+max number in group: 9
+1 2 3 4 5 6 7 9 0
+
+max number in group:5
+1 2 3 4 4 5 0*/
+import java.util.Scanner;
+
+public class bonusGrouping {
+ public static void main(String[]args){
+ Scanner num = new Scanner(System.in); //input number of files
+ System.out.println("Max group size: ");
+ int nUm = num.nextInt();
+
+ int givenData=1;
+ int sumGivendata=0;
+ Scanner groupData = new Scanner(System.in);
+ for (int i = 0; givenData>0; i++){
+ System.out.println("Enter number of people in group");
+ givenData = groupData.nextInt();
+ sumGivendata+= givenData;
+
+ System.out.println(sumGivendata+" this is sum");
+
+
+ }
+
+ int groupNum = sumGivendata/nUm;
+ int leftover=sumGivendata %nUm; //Dustin Monroe gave me the code to compute the remainder
+ if(leftover==0){
+ System.out.println(groupNum + " full groups can be formed, and no students will still need a group");
+
+ }
+ else{
+ System.out.println(groupNum + " full groups can be formed, and " +leftover +" students will still need a group");
+ }
+ }
+
+}
diff --git a/.idea/SkylarGalloway/Problem 2/Problem_Two/src/grouping.java b/.idea/SkylarGalloway/Problem 2/Problem_Two/src/grouping.java
new file mode 100644
index 0000000..c428359
--- /dev/null
+++ b/.idea/SkylarGalloway/Problem 2/Problem_Two/src/grouping.java
@@ -0,0 +1,60 @@
+/*Input for nonbonus code:
+
+1 2 2 2 0
+3 3 3 3 3 3 1 0
+3 2 2 2 1 0
+1 1 1 2 0
+1 3 3 3 3 0
+1 1 1 3 0
+*/
+import java.util.Scanner;
+public class grouping {
+ public static void main(String[]args){
+ int numOne=0;
+ int numTwo =0;
+ int numThree=0 ;
+ int givenData=1;
+ Scanner groupData = new Scanner(System.in);
+ for (int i = 0; givenData>0; i++) {//do not know how to start for loop and to end at 0
+ System.out.println("Enter number of people in group");
+ givenData = groupData.nextInt();
+ if (givenData == 1) {
+ numOne = numOne + 1;
+ } else if (givenData == 2) {
+ numTwo = numTwo + 1;
+ } else if(givenData==3) {
+ numThree = numThree + 1;
+ }
+ // System.out.println("one is "+numOne + " two is "+numTwo+" three is "+numThree);
+ }
+ //int group1 = numOne-1;//this is done to nullify the fact that I had to use givenData =1 to intialize the for loop
+ // System.out.println("one is "+group1); NOT NEEDED
+
+ int fullGroups= 0;
+ int leftOver =0;
+ if(numOne==numTwo){
+ fullGroups = numOne;
+ }
+ else if(numOne>numTwo){
+ fullGroups = numTwo;
+ leftOver = numOne-numTwo;
+ }
+ else{
+ fullGroups = numOne;
+ leftOver = 2*(numTwo-numOne);
+ }
+
+ int totalGroup=numThree+fullGroups;
+ if(leftOver==0) {
+ System.out.println(totalGroup + " full groups can be formed, and no students will still need a group");
+ }
+ else{
+ System.out.println(totalGroup + " full groups can be formed, and " + leftOver + " students will still need a group");
+
+
+ }
+
+ }
+
+
+}
diff --git a/.idea/SkylarGalloway/Problem 2/Test output.txt b/.idea/SkylarGalloway/Problem 2/Test output.txt
new file mode 100644
index 0000000..f91d0d1
--- /dev/null
+++ b/.idea/SkylarGalloway/Problem 2/Test output.txt
@@ -0,0 +1,14 @@
+Output Non bonus
+1 full groups can be formed, and 4 students will still need a group
+
+6 full groups can be formed, and 1 students will still need a group
+
+2 full groups can be formed, and 4 students will still need a group
+
+1 full groups can be formed, and 2 students will still need a group
+
+4 full groups can be formed, and 1 students will still need a group
+
+for input 1 1 1 3 0
+ 1 full groups can be formed, and 3 students will still need a group
+This is an issue because there can be 2 full groups formed.
\ No newline at end of file
diff --git a/.idea/SkylarGalloway/Problem 2/test input.txt b/.idea/SkylarGalloway/Problem 2/test input.txt
new file mode 100644
index 0000000..71945bc
--- /dev/null
+++ b/.idea/SkylarGalloway/Problem 2/test input.txt
@@ -0,0 +1,25 @@
+Input for nonbonus code:
+
+1 2 2 2 0
+3 3 3 3 3 3 1 0
+3 2 2 2 1 0
+1 1 1 2 0
+1 3 3 3 3 0
+1 1 1 3 0
+
+Input for bonus code
+max number in group: 4
+1 2 3 4 0
+max number in group: 5
+5 5 5 5 4 0
+max number in group: 3
+1 1 1 1 1 1 1 1 1 1 0
+
+max number in group: 7
+1 2 3 2 3 4 4 7 0
+
+max number in group: 9
+1 2 3 4 5 6 7 9 0
+
+max number in group:5
+1 2 3 4 4 5 0
\ No newline at end of file
diff --git a/.idea/SkylarGalloway/Problem 3/.idea/misc.xml b/.idea/SkylarGalloway/Problem 3/.idea/misc.xml
new file mode 100644
index 0000000..0548357
--- /dev/null
+++ b/.idea/SkylarGalloway/Problem 3/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/SkylarGalloway/Problem 3/.idea/modules.xml b/.idea/SkylarGalloway/Problem 3/.idea/modules.xml
new file mode 100644
index 0000000..34621e3
--- /dev/null
+++ b/.idea/SkylarGalloway/Problem 3/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/SkylarGalloway/Problem 3/.idea/workspace.xml b/.idea/SkylarGalloway/Problem 3/.idea/workspace.xml
new file mode 100644
index 0000000..fecdfd2
--- /dev/null
+++ b/.idea/SkylarGalloway/Problem 3/.idea/workspace.xml
@@ -0,0 +1,274 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/SkylarGalloway/Problem 3/Problem 3.iml b/.idea/SkylarGalloway/Problem 3/Problem 3.iml
new file mode 100644
index 0000000..c90834f
--- /dev/null
+++ b/.idea/SkylarGalloway/Problem 3/Problem 3.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/SkylarGalloway/Problem 3/out/production/Problem 3/userName.class b/.idea/SkylarGalloway/Problem 3/out/production/Problem 3/userName.class
new file mode 100644
index 0000000..de313e6
Binary files /dev/null and b/.idea/SkylarGalloway/Problem 3/out/production/Problem 3/userName.class differ
diff --git a/.idea/SkylarGalloway/Problem 3/src/userName.java b/.idea/SkylarGalloway/Problem 3/src/userName.java
new file mode 100644
index 0000000..eb5de20
--- /dev/null
+++ b/.idea/SkylarGalloway/Problem 3/src/userName.java
@@ -0,0 +1,78 @@
+import java.util.Scanner;
+
+public class userName {
+ public static void main(String[]args){
+ char username[] = new char[8];
+ Scanner numUsers = new Scanner(System.in); //input number of files
+ System.out.println("Enter number of names: ");
+ int num = numUsers.nextInt();
+
+ Scanner naMe = new Scanner(System.in); // input file names
+ for (int i=0; i=8){
+ for(int ii =1; iilastName.charAt(jj)){
+ for(int iii=ii; iii<8; iii++){
+ username[iii]=lastName.charAt(jj);//It is stuck in an infinite loop goes through this completely
+ //but prints out sggggggg infinte amount of time. Will not go through each char
+ }
+ String userName = new String (username);
+ System.out.println(userName);
+
+ }
+ else{
+ //for(int x=ii; x<8; x++) {
+ if (ii<8) {
+ username[ii] = firstName.charAt(ii);
+ }
+ else {
+ String userName = new String(username);
+ //System.out.println(userName);
+ System.out.println(userName);
+
+ }
+ //}
+
+ }
+ }
+
+ }
+ }
+ else {
+ System.out.println(firstName+lastName);
+ }
+
+ //char userBuild; //This is to add character wanted from name into new character array
+ //userBuild= firstName.charAt(1);
+
+
+
+
+ }
+
+
+
+
+
+ }
+
+
+ }
+}
diff --git a/.idea/SkylarGalloway/Problem 3/testinput.txt b/.idea/SkylarGalloway/Problem 3/testinput.txt
new file mode 100644
index 0000000..e69de29
diff --git a/.idea/SkylarGalloway/Problem 3/testoutput.txt b/.idea/SkylarGalloway/Problem 3/testoutput.txt
new file mode 100644
index 0000000..e69de29
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..4c1c37a
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..2c4f6ec
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/problem1.md b/.idea/problem1.md
new file mode 100644
index 0000000..bb6eb4b
--- /dev/null
+++ b/.idea/problem1.md
@@ -0,0 +1,43 @@
+# Problem 1
+
+You have a friend who has a lot of files where each one contains the results from a race. These files do not have a standard naming system.
+However you do know the names of the races, and also that each race puts it's name in the file name for it's results.
+
+The races your friend is interested in are:
+* BunRun
+* Zombie
+* Boston
+* Spartan
+* Mud
+
+There happen to have an index file of all the file names. Your friend is willing totype these names in on the command line to your program.
+
+They are asking you to find all file names that contain exactly one of the names of the races, and print them to the screen so they can find them.
+
+Here is a small version of the index file (Note the number on the first line that says how many files there are to consider):
+
+~~~
+4
+2014_Mud-run_for_fun.xml
+Spartan_run_in_the_Mud.doc
+Boston-Marathon_2019
+Bun_Run_In_The_Sun.pdf
+~~~
+
+Result for these file names:
+
+~~~
+2014_Mud-run_for_fun.xml
+Boston-Marathon_2019
+~~~
+
+## What to have in your answer:
+* A file that has your program in it that can be compiled. It should be named: .java
+* A seperate file with at least 5 test possible file names that you create.
+* A seperate file with the answers to the test cases you created (list the file name on one line and then the answer on the following line.)
+
+
+## Bonus:
+1. Get your program to give an option to print either the file names that contain exactly one of the race names, or any/multiple of the race names, based upon input from the user (to decide which they want to do.)
+2. Your friend has found an additional batch of files that are in folders. Look for the race names, ignoring any characters before the last '/' in the file name:
+races/summer/north/Zombie_run_for_your_life.docx
diff --git a/problem2.md b/.idea/problem2.md
similarity index 100%
rename from problem2.md
rename to .idea/problem2.md
diff --git a/problem3.md b/.idea/problem3.md
similarity index 100%
rename from problem3.md
rename to .idea/problem3.md
diff --git a/.idea/src/.classpath b/.idea/src/.classpath
new file mode 100644
index 0000000..233be1d
--- /dev/null
+++ b/.idea/src/.classpath
@@ -0,0 +1,6 @@
+
+
+
+
+
+
diff --git a/.idea/src/.gitignore b/.idea/src/.gitignore
new file mode 100644
index 0000000..127c57c
--- /dev/null
+++ b/.idea/src/.gitignore
@@ -0,0 +1 @@
+/search4file.class
diff --git a/.idea/src/.project b/.idea/src/.project
new file mode 100644
index 0000000..0f6f6a7
--- /dev/null
+++ b/.idea/src/.project
@@ -0,0 +1,17 @@
+
+
+ src
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+
+ org.eclipse.jdt.core.javanature
+
+
diff --git a/.idea/src/search4file.java b/.idea/src/search4file.java
new file mode 100644
index 0000000..a5642ef
--- /dev/null
+++ b/.idea/src/search4file.java
@@ -0,0 +1,3 @@
+public class search4file {
+
+}
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
new file mode 100644
index 0000000..06312c0
--- /dev/null
+++ b/.idea/workspace.xml
@@ -0,0 +1,258 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Jackson Maschman/LabHW1/LabHW1.iml b/Jackson Maschman/LabHW1/LabHW1.iml
new file mode 100644
index 0000000..c90834f
--- /dev/null
+++ b/Jackson Maschman/LabHW1/LabHW1.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Jackson Maschman/LabHW1/out/production/LabHW1/LabHW1_1.class b/Jackson Maschman/LabHW1/out/production/LabHW1/LabHW1_1.class
new file mode 100644
index 0000000..e3e03c7
Binary files /dev/null and b/Jackson Maschman/LabHW1/out/production/LabHW1/LabHW1_1.class differ
diff --git a/Jackson Maschman/LabHW1/out/production/LabHW1/LabHW1_2.class b/Jackson Maschman/LabHW1/out/production/LabHW1/LabHW1_2.class
new file mode 100644
index 0000000..936997d
Binary files /dev/null and b/Jackson Maschman/LabHW1/out/production/LabHW1/LabHW1_2.class differ
diff --git a/Jackson Maschman/LabHW1/out/production/LabHW1/LabHW1_3.class b/Jackson Maschman/LabHW1/out/production/LabHW1/LabHW1_3.class
new file mode 100644
index 0000000..5ffb946
Binary files /dev/null and b/Jackson Maschman/LabHW1/out/production/LabHW1/LabHW1_3.class differ
diff --git a/Jackson Maschman/LabHW1/src/LabHW1_1.java b/Jackson Maschman/LabHW1/src/LabHW1_1.java
new file mode 100644
index 0000000..8bf91f7
--- /dev/null
+++ b/Jackson Maschman/LabHW1/src/LabHW1_1.java
@@ -0,0 +1,49 @@
+import java.util.Scanner;
+
+public class LabHW1_1 {
+ public static void main(String[] args)
+ {
+ //Scans the file and processes the number at the beginning of every file
+ Scanner scan = new Scanner(System.in);
+ String line = scan.nextLine();
+ Integer numFiles = Integer.parseInt(line);
+ //Goes through the files based on the initial number
+ for(int x = 0; x < numFiles; x++)
+ {
+ //Resets counter to 0
+ int counter = 0;
+ //Has scanner go to next line
+ line = scan.nextLine();
+ //The contains() function checks if the string contains the specified string of characters
+ if(line.contains("BunRun"))
+ {
+ counter = counter + 1;
+ }
+
+ if(line.contains("Zombie"))
+ {
+ counter = counter + 1;
+ }
+
+ if(line.contains("Boston"))
+ {
+ counter = counter + 1;
+ }
+
+ if(line.contains("Spartan"))
+ {
+ counter = counter + 1;
+ }
+
+ if(line.contains("Mud"))
+ {
+ counter = counter + 1;
+ }
+ //I only want to display files that have only one of the specified words
+ if(counter == 1)
+ {
+ System.out.println(line);
+ }
+ }
+ }
+}
diff --git a/Jackson Maschman/LabHW1/src/LabHW1_2.java b/Jackson Maschman/LabHW1/src/LabHW1_2.java
new file mode 100644
index 0000000..fc58694
--- /dev/null
+++ b/Jackson Maschman/LabHW1/src/LabHW1_2.java
@@ -0,0 +1,67 @@
+import java.util.Scanner;
+
+public class LabHW1_2
+{
+ public static void main(String[] args)
+ {
+ //Scans the number line
+ Scanner scan = new Scanner(System.in);
+
+ //Goes to the next number in the line
+ int Number = scan.nextInt();
+ //Sorts the 1's, 2's, 3's (3's are Groups) and extra students
+ int num1 = 0;
+ int num2 = 0;
+ int Groups = 0;
+ int Empty = 0;
+ int Extra = 0;
+ //Will end once the program reaches the 0 at the end of the number line
+ while(Number != 0)
+ {
+ if(Number == 1)
+ {
+ num1 = num1 + 1;
+ }
+ if(Number == 2)
+ {
+ num2 = num2 + 1;
+ }
+ if(Number == 3)
+ {
+ Groups = Groups + 1;
+ }
+ Number = scan.nextInt();
+ }
+ //This is the sequence if there are more groups of two than lone students
+ if(num2 >= num1)
+ {
+ Empty = Empty + (2*(num2-num1));
+ Groups = Groups + num1;
+ }
+ //This is the sequence if there are more lone students than groups of two
+ if(num1 > num2)
+ {
+ num1 = num1 - num2;
+ Groups = Groups + num2;
+ //This is to get the lone students into groups of 3 (if there are enough)
+ for(int x = num1; x > 0; x--)
+ {
+ Extra = Extra + 1;
+ if(Extra == 3)
+ {
+ Groups = Groups +1;
+ Extra = 0;
+ }
+ }
+ Empty = Empty + Extra;
+ }
+ //There are two dialogue options. One if there is no one left over and one if there is at least 1 left over
+ if(Empty != 0)
+ {
+ System.out.println(Groups + " full groups can be formed, and " + Empty + " students will still need a group.");
+ }
+ else {
+ System.out.println(Groups + " full groups can be formed, and no students will still need a group.");
+ }
+ }
+}
diff --git a/Jackson Maschman/LabHW1/src/LabHW1_3.java b/Jackson Maschman/LabHW1/src/LabHW1_3.java
new file mode 100644
index 0000000..8495468
--- /dev/null
+++ b/Jackson Maschman/LabHW1/src/LabHW1_3.java
@@ -0,0 +1,38 @@
+import java.util.Scanner;
+
+public class LabHW1_3
+{
+ public static void main(String[] args)
+ {
+ //Scans the number at the beginning of each file
+ Scanner scan = new Scanner(System.in);
+ String line = scan.nextLine();
+ Integer numNames = Integer.parseInt(line);
+
+ //I'll take 1 away from numNames (or the number at the beginning of the file) after each username generated
+ while(numNames != 0)
+ {
+ //Resets my username to nothing and scans both the first and last name
+ String user = "";
+ String fName = scan.next();
+ String lName = scan.next();
+ //Counter to be used in next loop to count how many characters are in the username currently
+ int counter = 0;
+ //Adds a character in order of the input and is either as long as the name or only the first 7 characters
+ for(int y = 0; y < fName.length() && y <= 7; y++)
+ {
+ user = user + fName.charAt(y);
+ counter = counter + 1;
+ }
+ //Has same purpose as the first loop, except this loop is for last names
+ //Makes sure that
+ for(int z = 0; z < (8 - counter) && z < lName.length(); z++)
+ {
+ user = user + lName.charAt(z);
+ }
+
+ System.out.println(user);
+ numNames = numNames - 1;
+ }
+ }
+}
diff --git a/Jackson Maschman/ProgramDesign_HW1.docx b/Jackson Maschman/ProgramDesign_HW1.docx
new file mode 100644
index 0000000..1ee900a
Binary files /dev/null and b/Jackson Maschman/ProgramDesign_HW1.docx differ
diff --git a/Jackson Maschman/ProgramDesign_HW1_Answers.docx b/Jackson Maschman/ProgramDesign_HW1_Answers.docx
new file mode 100644
index 0000000..ea37f35
Binary files /dev/null and b/Jackson Maschman/ProgramDesign_HW1_Answers.docx differ
diff --git a/Jared Pohlmann/HW1/HW1 Problem 1/.idea/misc.xml b/Jared Pohlmann/HW1/HW1 Problem 1/.idea/misc.xml
new file mode 100644
index 0000000..e1f830b
--- /dev/null
+++ b/Jared Pohlmann/HW1/HW1 Problem 1/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Jared Pohlmann/HW1/HW1 Problem 1/.idea/modules.xml b/Jared Pohlmann/HW1/HW1 Problem 1/.idea/modules.xml
new file mode 100644
index 0000000..2c4f6ec
--- /dev/null
+++ b/Jared Pohlmann/HW1/HW1 Problem 1/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Jared Pohlmann/HW1/HW1 Problem 1/.idea/workspace.xml b/Jared Pohlmann/HW1/HW1 Problem 1/.idea/workspace.xml
new file mode 100644
index 0000000..0fba211
--- /dev/null
+++ b/Jared Pohlmann/HW1/HW1 Problem 1/.idea/workspace.xml
@@ -0,0 +1,328 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Jared Pohlmann/HW1/HW1 Problem 3/HW1 Problem 3.iml b/Jared Pohlmann/HW1/HW1 Problem 3/HW1 Problem 3.iml
new file mode 100644
index 0000000..c90834f
--- /dev/null
+++ b/Jared Pohlmann/HW1/HW1 Problem 3/HW1 Problem 3.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Jared Pohlmann/HW1/HW1 Problem 3/out/production/HW1 Problem 3/JaredPohlmann.class b/Jared Pohlmann/HW1/HW1 Problem 3/out/production/HW1 Problem 3/JaredPohlmann.class
new file mode 100644
index 0000000..b47eda1
Binary files /dev/null and b/Jared Pohlmann/HW1/HW1 Problem 3/out/production/HW1 Problem 3/JaredPohlmann.class differ
diff --git a/Jared Pohlmann/HW1/HW1 Problem 3/src/JaredPohlmann.java b/Jared Pohlmann/HW1/HW1 Problem 3/src/JaredPohlmann.java
new file mode 100644
index 0000000..6b69125
--- /dev/null
+++ b/Jared Pohlmann/HW1/HW1 Problem 3/src/JaredPohlmann.java
@@ -0,0 +1,52 @@
+import java.util.Scanner;
+import java.lang.*;
+
+public class JaredPohlmann {
+ public static void main(String[] args) {
+ System.out.println("How many user names need to be created?");
+ Scanner scan = new Scanner(System.in);
+ int inputNum = Integer.parseInt(scan.nextLine());
+ String name = scan.next();
+ name=name.toLowerCase();
+ char[] firstName= new char[8];
+ char[] lastName= new char[8];
+ char[] userNames= new char [8];
+ char[] firstNameHold;
+ char [] lastNameHold;
+
+ while (inputNum > 0) {
+ firstNameHold = name.toCharArray();
+ for(int m=0; mlastName[0]|| firstName[j]== 0){
+ for (int i = 0; i < j; i++){
+ userNames[i]=firstName[i];
+ }
+ for(int z = 0; z<8-j && z< lastNameHold.length; z++){
+ userNames[z+j]=lastName[z];
+ }
+ break outerloop;
+ }
+
+
+ }
+ System.out.println(userNames);
+ inputNum--;
+ name = scan.next();
+ name =name.toLowerCase();
+ firstName= new char[8];
+ lastName= new char[8];
+ userNames= new char [8];
+
+ }
+ }
+}
diff --git a/Jared Pohlmann/HW1/Test Cases b/Jared Pohlmann/HW1/Test Cases
new file mode 100644
index 0000000..b002565
--- /dev/null
+++ b/Jared Pohlmann/HW1/Test Cases
@@ -0,0 +1,8 @@
+Test Cases
+Problem 1: Select the number of inputs. I want to make sure 5 lines work.
+I input BunRun, Mud1234, zombee, murk, and 2019Spartan.
+
+
+Problem 2: I made a list of integers 1 2 3 3 2 1 1 0. I also made the same sequence vertically. I repeated this step for the sequences 1 1 0, 1 1 0, 3 3 3 3 0, and 3 3 3 0.
+
+Problem 3: I decided to select 5 usernames. I used Jared Pohlmann, Ashton Oak, aaa bbb, tttt jjjj, and Jeff Ifland.
diff --git a/Jared Pohlmann/HW1/Test Cases Answered b/Jared Pohlmann/HW1/Test Cases Answered
new file mode 100644
index 0000000..1ad9ebc
--- /dev/null
+++ b/Jared Pohlmann/HW1/Test Cases Answered
@@ -0,0 +1,12 @@
+Test Cases Answered
+
+Problem 1: When run, my test cases proved to work where BunRun, Mud1234, and 2019Spartan were shown. Zombee and murk did not work since it is not on the list as expected.
+
+Problem 2: For the first sequence I got 4 groups with 1 person left out. This was expected and it worked verticallly as well. The next case I got 0 groups with 2 left over as expected. Then the next I got 0 groups with 1 left over. Then 4 groups with 0 left over. Finaly I got 3 groups with 0 left over.
+
+Problem 3: For my name I got japohlma. This is what I expected.
+
+Ashton Oak= aoak
+aaa bbb= aaabbb
+tttt jjjj = tjjjj
+jeff ifland = jeffifla
\ No newline at end of file
diff --git a/Jeff V submit files Folder/Problem 1 Code.txt b/Jeff V submit files Folder/Problem 1 Code.txt
new file mode 100644
index 0000000..4c067f0
--- /dev/null
+++ b/Jeff V submit files Folder/Problem 1 Code.txt
@@ -0,0 +1,57 @@
+import.java.util.Scanner;
+
+public class fileScanner {
+ public static void main(String args[]) {
+
+
+ int numberOfFiles;
+ String fileName;
+
+ Scanner input = new Scanner(System.in);
+ numberOfFiles = input.nextInt();
+
+ input.nextLine(); // get rid of remaining line after the number
+
+ //loop through a list of files
+ for(int i = 0; i < numberOfFiles; i = i + 1)
+ {
+ int numberOfStingsFound = 0;
+
+ fileName = input.nextLine();
+ //test how many of the strings are in the file name
+
+ if (fileName.contains("Mud"))
+ {
+ numberOfStingsFound = numberOfStingsFound + 1;
+ }
+ if (fileName.contains("BunRun"))
+ {
+ numberOfStingsFound = numberOfStingsFound + 1;
+ }
+ if (fileName.contains("Zombie"))
+ {
+ numberOfStingsFound = numberOfStingsFound + 1;
+ }
+ if (fileName.contains("Boston"))
+ {
+ numberOfStingsFound = numberOfStingsFound + 1;
+ }
+ if (fileName.contains("Spartan"))
+ {
+ numberOfStingsFound = numberOfStingsFound + 1;
+
+ }
+
+
+ // if exactly one of them is
+ {
+ if (numberOfStingsFound == 1)
+ {
+ System.out.println(fileName);
+ }
+ //print out the strings
+ }
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/Jeff V submit files Folder/Problem 1 Input.txt b/Jeff V submit files Folder/Problem 1 Input.txt
new file mode 100644
index 0000000..cd14c8b
--- /dev/null
+++ b/Jeff V submit files Folder/Problem 1 Input.txt
@@ -0,0 +1,5 @@
+4
+BunRun_is_Fun
+Spartan_Mud_Marathon
+Boston_runtime_environment
+ZombieTime_is_now
\ No newline at end of file
diff --git a/Jeff V submit files Folder/Problem 1 Output.txt b/Jeff V submit files Folder/Problem 1 Output.txt
new file mode 100644
index 0000000..ea8ded5
--- /dev/null
+++ b/Jeff V submit files Folder/Problem 1 Output.txt
@@ -0,0 +1,3 @@
+BunRun_is_Fun
+Boston_runtime_environment
+ZombieTime_is_now
\ No newline at end of file
diff --git a/Jeff V submit files Folder/Problem 2 Code.txt b/Jeff V submit files Folder/Problem 2 Code.txt
new file mode 100644
index 0000000..0ce89f1
--- /dev/null
+++ b/Jeff V submit files Folder/Problem 2 Code.txt
@@ -0,0 +1,66 @@
+import java.util.Scanner;
+
+public class Problem2 {
+ public static void main(String args[]) {
+ //Piia helped me out by recommending against using arrays and using number totals instead
+ int workingNumber;
+ int numberOf2s = 0;
+ int numberOf1s = 0;
+ int numberOfGroups = 0;
+ //pull the stuff from the teacher
+ Scanner input = new Scanner(System.in);
+ workingNumber = input.nextInt();
+
+ //this while sorts all the groups
+ while (workingNumber != 0 )
+ {
+ if (workingNumber == 3) {
+ numberOfGroups++;
+ }
+
+ else if ( workingNumber == 1 ){
+ numberOf1s++;
+ }
+
+ else if ( workingNumber == 2 ) {
+ numberOf2s++;
+ }
+
+ else if (workingNumber >= 4) {
+ System.out.print("Someone made a group too big");
+ }
+ workingNumber = input.nextInt();
+ }
+
+ if (numberOf1s > numberOf2s) {
+ numberOfGroups = numberOfGroups + numberOf2s;
+ numberOf1s = numberOf1s - numberOf2s;
+ numberOf2s = 0;
+ }
+ else if (numberOf1s < numberOf2s){
+ numberOfGroups = numberOfGroups + numberOf1s;
+ numberOf2s = numberOf2s - numberOf1s;
+ numberOf1s = numberOf1s - numberOf1s; //NUMBER OF OOOOOONNNNEEESSSSSSSS!!!!!!!!
+ }
+
+ if (numberOf1s / 3 >= 1){
+ numberOfGroups = numberOfGroups + (numberOf1s / 3);
+ numberOf1s = numberOf1s - numberOf1s / 3;
+ }
+
+ System.out.println( numberOfGroups + " full groups can be formed, and " + (numberOf2s * 2 + numberOf1s) + " students will still need a group, excluding" +
+ " the group thats too big." );
+ //number of threes added to the number of groups
+
+ //how many 1s and 2s are there?
+
+
+ //is the number of 1's more than 3? combine them
+
+
+ // are there pairable 1s and 2s
+
+
+
+ }
+}
diff --git a/Jeff V submit files Folder/Problem 2 Input.txt b/Jeff V submit files Folder/Problem 2 Input.txt
new file mode 100644
index 0000000..6f4e0d8
--- /dev/null
+++ b/Jeff V submit files Folder/Problem 2 Input.txt
@@ -0,0 +1 @@
+2 2 2 1 3 1 2 3 3 1 2 4 2 0
\ No newline at end of file
diff --git a/Jeff V submit files Folder/Problem 2 Output.txt b/Jeff V submit files Folder/Problem 2 Output.txt
new file mode 100644
index 0000000..115f367
--- /dev/null
+++ b/Jeff V submit files Folder/Problem 2 Output.txt
@@ -0,0 +1,2 @@
+Someone made a group that's too big. 6 full groups can be formed, and 6 students will still need a group, excluding
+the too big group.
\ No newline at end of file
diff --git a/Jeff V submit files Folder/Problem 3 Code.txt b/Jeff V submit files Folder/Problem 3 Code.txt
new file mode 100644
index 0000000..8badd01
--- /dev/null
+++ b/Jeff V submit files Folder/Problem 3 Code.txt
@@ -0,0 +1,40 @@
+import java.util.Scanner;
+
+public class Problem3 {
+
+ public static void main(String[] args) {
+ Scanner sc = new Scanner(System.in);
+
+ int numberOfNames = sc.nextInt();
+
+
+ for (int i = 0; i < numberOfNames; i++) {
+ String firstName = sc.next();
+ firstName = firstName.toLowerCase();
+ String userName = "";
+ int firstNameLength = firstName.length();
+ String lastName = sc.next();
+ lastName = lastName.toLowerCase();
+ int lastNameLength = lastName.length();
+ boolean onLastName = false;
+
+ int lastNameLetter = 0;
+
+ for (int a = 0; a < 8 ; a++) {
+
+
+ if (a < firstNameLength && firstName.charAt(a) <= lastName.charAt(0) && !onLastName)
+ {
+ userName = userName + firstName.charAt(a);
+ }
+ else if (lastNameLetter < lastNameLength)
+ {
+ userName = userName + lastName.charAt(lastNameLetter);
+ onLastName = true;
+ lastNameLetter++;
+ }
+ }
+ System.out.println(userName);
+ }
+ }
+}
diff --git a/Jeff V submit files Folder/Problem 3 Input.txt b/Jeff V submit files Folder/Problem 3 Input.txt
new file mode 100644
index 0000000..49d1e06
--- /dev/null
+++ b/Jeff V submit files Folder/Problem 3 Input.txt
@@ -0,0 +1,5 @@
+4
+aabbccdd abcdefghi
+aaabbbcccddd abcdef
+dcba ddccbbaa
+ddccbbbbAAAAAAAAAAAAHHHHHHHH!
\ No newline at end of file
diff --git a/Jeff V submit files Folder/Problem 3 Output.txt b/Jeff V submit files Folder/Problem 3 Output.txt
new file mode 100644
index 0000000..96527af
--- /dev/null
+++ b/Jeff V submit files Folder/Problem 3 Output.txt
@@ -0,0 +1,4 @@
+aaabcdef
+aaaabcde
+dcddccbb
+zddccbbb
\ No newline at end of file
diff --git a/SkylarGalloway/.idea/workspace.xml b/SkylarGalloway/.idea/workspace.xml
new file mode 100644
index 0000000..fbc8620
--- /dev/null
+++ b/SkylarGalloway/.idea/workspace.xml
@@ -0,0 +1,267 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/SkylarGalloway/Problem 1/FiveOutput.txt b/SkylarGalloway/Problem 1/FiveOutput.txt
new file mode 100644
index 0000000..a4ff8f5
--- /dev/null
+++ b/SkylarGalloway/Problem 1/FiveOutput.txt
@@ -0,0 +1,4 @@
+Boston_Walking_Dead_Zombie_Run
+Man_BunRun
+No_Concrete_Run_In_Mud
+
diff --git a/SkylarGalloway/Problem 1/Problem_One.iml b/SkylarGalloway/Problem 1/Problem_One.iml
new file mode 100644
index 0000000..c90834f
--- /dev/null
+++ b/SkylarGalloway/Problem 1/Problem_One.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/SkylarGalloway/Problem 1/fiveInput.txt b/SkylarGalloway/Problem 1/fiveInput.txt
new file mode 100644
index 0000000..9076097
--- /dev/null
+++ b/SkylarGalloway/Problem 1/fiveInput.txt
@@ -0,0 +1,10 @@
+Input files
+5
+# of keywords to match
+2
+
+Boston_Walking_Dead_Zombie_Run
+300_SparTan_Run
+Man_BunRun
+No_Concrete_Run_In_Mud
+BunRun_Spartan_Mud_Run
diff --git a/SkylarGalloway/Problem 1/out/production/Problem_One/findFIle.class b/SkylarGalloway/Problem 1/out/production/Problem_One/findFIle.class
new file mode 100644
index 0000000..2e646bb
Binary files /dev/null and b/SkylarGalloway/Problem 1/out/production/Problem_One/findFIle.class differ
diff --git a/SkylarGalloway/Problem 1/problem1.md b/SkylarGalloway/Problem 1/problem1.md
new file mode 100644
index 0000000..bb6eb4b
--- /dev/null
+++ b/SkylarGalloway/Problem 1/problem1.md
@@ -0,0 +1,43 @@
+# Problem 1
+
+You have a friend who has a lot of files where each one contains the results from a race. These files do not have a standard naming system.
+However you do know the names of the races, and also that each race puts it's name in the file name for it's results.
+
+The races your friend is interested in are:
+* BunRun
+* Zombie
+* Boston
+* Spartan
+* Mud
+
+There happen to have an index file of all the file names. Your friend is willing totype these names in on the command line to your program.
+
+They are asking you to find all file names that contain exactly one of the names of the races, and print them to the screen so they can find them.
+
+Here is a small version of the index file (Note the number on the first line that says how many files there are to consider):
+
+~~~
+4
+2014_Mud-run_for_fun.xml
+Spartan_run_in_the_Mud.doc
+Boston-Marathon_2019
+Bun_Run_In_The_Sun.pdf
+~~~
+
+Result for these file names:
+
+~~~
+2014_Mud-run_for_fun.xml
+Boston-Marathon_2019
+~~~
+
+## What to have in your answer:
+* A file that has your program in it that can be compiled. It should be named: .java
+* A seperate file with at least 5 test possible file names that you create.
+* A seperate file with the answers to the test cases you created (list the file name on one line and then the answer on the following line.)
+
+
+## Bonus:
+1. Get your program to give an option to print either the file names that contain exactly one of the race names, or any/multiple of the race names, based upon input from the user (to decide which they want to do.)
+2. Your friend has found an additional batch of files that are in folders. Look for the race names, ignoring any characters before the last '/' in the file name:
+races/summer/north/Zombie_run_for_your_life.docx
diff --git a/SkylarGalloway/Problem 1/src/findFIle.java b/SkylarGalloway/Problem 1/src/findFIle.java
new file mode 100644
index 0000000..8ce6daf
--- /dev/null
+++ b/SkylarGalloway/Problem 1/src/findFIle.java
@@ -0,0 +1,87 @@
+/*
+My Test
+Boston_Walking_Dead_Zombie_Run
+300_SparTan_Run
+Man_BunRun
+No_Concrete_Run_In_Mud
+BunRun_Spartan_Mud_Run
+
+Professor Ifland
+
+*/
+
+import java.util.Scanner;
+public class findFIle {
+ public static void main(String[]args){
+ Scanner numFiles = new Scanner(System.in); //input number of files
+ System.out.println("Enter number of files: ");
+ int num = numFiles.nextInt();
+
+ Scanner numfiles = new Scanner(System.in); //input number of files
+ System.out.println("How Many Keywords Matches: ");
+ int nUm = numfiles.nextInt();
+
+ Scanner fiLe = new Scanner(System.in); // input file names
+ //String[] userFile = new String[num]; Array for files
+ for (int i=0; i
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/SkylarGalloway/Problem 2/Problem_Two/src/bonusGrouping.java b/SkylarGalloway/Problem 2/Problem_Two/src/bonusGrouping.java
new file mode 100644
index 0000000..e1ed469
--- /dev/null
+++ b/SkylarGalloway/Problem 2/Problem_Two/src/bonusGrouping.java
@@ -0,0 +1,50 @@
+//Alex Kerr helped explain a way to achieve the bonus
+/*Input for bonus code
+max number in group: 4
+1 2 3 4 0
+max number in group: 5
+5 5 5 5 4 0
+max number in group: 3
+1 1 1 1 1 1 1 1 1 1 0
+
+max number in group: 7
+1 2 3 2 3 4 4 7 0
+
+max number in group: 9
+1 2 3 4 5 6 7 9 0
+
+max number in group:5
+1 2 3 4 4 5 0*/
+import java.util.Scanner;
+
+public class bonusGrouping {
+ public static void main(String[]args){
+ Scanner num = new Scanner(System.in); //input number of files
+ System.out.println("Max group size: ");
+ int nUm = num.nextInt();
+
+ int givenData=1;
+ int sumGivendata=0;
+ Scanner groupData = new Scanner(System.in);
+ for (int i = 0; givenData>0; i++){
+ System.out.println("Enter number of people in group");
+ givenData = groupData.nextInt();
+ sumGivendata+= givenData;
+
+ System.out.println(sumGivendata+" this is sum");
+
+
+ }
+
+ int groupNum = sumGivendata/nUm;
+ int leftover=sumGivendata %nUm; //Dustin Monroe gave me the code to compute the remainder
+ if(leftover==0){
+ System.out.println(groupNum + " full groups can be formed, and no students will still need a group");
+
+ }
+ else{
+ System.out.println(groupNum + " full groups can be formed, and " +leftover +" students will still need a group");
+ }
+ }
+
+}
diff --git a/SkylarGalloway/Problem 2/Problem_Two/src/grouping.java b/SkylarGalloway/Problem 2/Problem_Two/src/grouping.java
new file mode 100644
index 0000000..4735835
--- /dev/null
+++ b/SkylarGalloway/Problem 2/Problem_Two/src/grouping.java
@@ -0,0 +1,82 @@
+/*Input for nonbonus code:
+
+1 2 2 2 0
+3 3 3 3 3 3 1 0
+3 2 2 2 1 0
+1 1 1 2 0
+1 3 3 3 3 0
+1 1 1 3 0
+*/
+import java.util.Scanner;
+public class grouping {
+ public static void main(String[]args){
+ int numOne=0;
+ int numTwo =0;
+ int numThree=0 ;
+ int givenData=1;
+ Scanner groupData = new Scanner(System.in);
+ for (int i = 0; givenData>0; i++) {//do not know how to start for loop and to end at 0
+ System.out.println("Enter number of people in group");
+ givenData = groupData.nextInt();
+ if (givenData == 1) {
+ numOne = numOne + 1;
+ } else if (givenData == 2) {
+ numTwo = numTwo + 1;
+ } else if(givenData==3) {
+ numThree = numThree + 1;
+ }
+ // System.out.println("one is "+numOne + " two is "+numTwo+" three is "+numThree);
+ }
+ //int group1 = numOne-1;//this is done to nullify the fact that I had to use givenData =1 to intialize the for loop
+ // System.out.println("one is "+group1); NOT NEEDED
+
+ int fullGroups= 0;
+ int leftOver =0;
+ int oneLeftover=0;
+ int oneGroups = 0; // used to combine groups of (1 1 1) if need be
+ int onesTrueleftover=0; // used to combine groups of (1 1 1) if need be
+
+ if(numOne==numTwo){
+ fullGroups = numOne;
+ }
+ else if(numOne>numTwo){
+ fullGroups = numTwo;
+ oneLeftover = numOne-numTwo; // used to combine groups of (1 1 1) if need be
+ //oneLeftover=leftOver;
+ }
+ else{
+ fullGroups = numOne;
+ leftOver = 2*(numTwo-numOne);
+ }
+ if(oneLeftover>2){ // used to combine groups of (1 1 1) if need be
+ oneGroups = oneLeftover/3; // used to combine groups of (1 1 1) if need be
+ onesTrueleftover=oneLeftover %3; // used to combine groups of (1 1 1) if need be
+ }
+ else{ // used to combine groups of (1 1 1) if need be
+ onesTrueleftover=oneLeftover;
+ }
+
+ int totalGroup=numThree+fullGroups+oneGroups;
+ int trueLeftovers= leftOver+onesTrueleftover;
+ if(leftOver==0) {
+ if (trueLeftovers == 0){
+ System.out.println(totalGroup + " full groups can be formed, and no students will still need a group");
+ }
+ else{
+ System.out.println(totalGroup + " full groups can be formed, and " +trueLeftovers+ " students will still need a group");
+
+ }
+ }
+ else{
+ System.out.println(totalGroup + " full groups can be formed, and " + trueLeftovers+ " students will still need a group");
+ //System.out.println(numOne+" =group one "+ numTwo+" group two");
+ System.out.println(oneGroups+" = group one formed that many "+ onesTrueleftover+" = there are this many leftover "+ trueLeftovers +" this is the leftover taking into account 1 1 1 "
+ + leftOver + "= his runs through original leftover" );
+
+
+ }
+
+ }
+
+
+}
diff --git a/SkylarGalloway/Problem 2/Test output.txt b/SkylarGalloway/Problem 2/Test output.txt
new file mode 100644
index 0000000..03ce443
--- /dev/null
+++ b/SkylarGalloway/Problem 2/Test output.txt
@@ -0,0 +1,17 @@
+Output Non bonus
+1 full groups can be formed, and 4 students will still need a group
+
+6 full groups can be formed, and 1 students will still need a group
+
+2 full groups can be formed, and 4 students will still need a group
+
+1 full groups can be formed, and 2 students will still need a group
+
+4 full groups can be formed, and 1 students will still need a group
+
+for input 1 1 1 3 0
+ 1 full groups can be formed, and 3 students will still need a group
+This is an issue because there can be 2 full groups formed ***.
+
+2 full groups can be formed, and no students will still need a group
+ ***fixed this issue
\ No newline at end of file
diff --git a/SkylarGalloway/Problem 2/test input.txt b/SkylarGalloway/Problem 2/test input.txt
new file mode 100644
index 0000000..71945bc
--- /dev/null
+++ b/SkylarGalloway/Problem 2/test input.txt
@@ -0,0 +1,25 @@
+Input for nonbonus code:
+
+1 2 2 2 0
+3 3 3 3 3 3 1 0
+3 2 2 2 1 0
+1 1 1 2 0
+1 3 3 3 3 0
+1 1 1 3 0
+
+Input for bonus code
+max number in group: 4
+1 2 3 4 0
+max number in group: 5
+5 5 5 5 4 0
+max number in group: 3
+1 1 1 1 1 1 1 1 1 1 0
+
+max number in group: 7
+1 2 3 2 3 4 4 7 0
+
+max number in group: 9
+1 2 3 4 5 6 7 9 0
+
+max number in group:5
+1 2 3 4 4 5 0
\ No newline at end of file
diff --git a/SkylarGalloway/Problem 3/.idea/misc.xml b/SkylarGalloway/Problem 3/.idea/misc.xml
new file mode 100644
index 0000000..0548357
--- /dev/null
+++ b/SkylarGalloway/Problem 3/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/SkylarGalloway/Problem 3/.idea/modules.xml b/SkylarGalloway/Problem 3/.idea/modules.xml
new file mode 100644
index 0000000..34621e3
--- /dev/null
+++ b/SkylarGalloway/Problem 3/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/SkylarGalloway/Problem 3/.idea/workspace.xml b/SkylarGalloway/Problem 3/.idea/workspace.xml
new file mode 100644
index 0000000..fecdfd2
--- /dev/null
+++ b/SkylarGalloway/Problem 3/.idea/workspace.xml
@@ -0,0 +1,274 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Yesenia/Problem 1/Problem 1.iml b/Yesenia/Problem 1/Problem 1.iml
new file mode 100644
index 0000000..c90834f
--- /dev/null
+++ b/Yesenia/Problem 1/Problem 1.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Yesenia/Problem 1/src/Problem1.java b/Yesenia/Problem 1/src/Problem1.java
new file mode 100644
index 0000000..2f0a082
--- /dev/null
+++ b/Yesenia/Problem 1/src/Problem1.java
@@ -0,0 +1,59 @@
+//This ran at one point but now it won't open as a java file (at least on my computer) we had this problem before//
+
+import java.util.Scanner;
+
+public class Problem1 {
+ public static void main(String args[]) {
+
+ int AmountOfFiles;
+ String fileName;
+
+ Scanner input = new Scanner(System.in);
+ AmountOfFiles = input.nextInt();
+
+ input.nextLine(); // get rid of remaining line after the number
+
+//loop through a list of files
+ for(int i = 0; i < AmountOfFiles; i = i + 1)
+ {
+ int StringsFound = 0;
+
+ fileName = input.nextLine();
+//test how many of the strings are in the file name
+
+ if (fileName.contains("Spartan"))
+ {
+ StringsFound = StringsFound + 1;
+ }
+ if (fileName.contains("BunRun"))
+ {
+ StringsFound = StringsFound + 1;
+ }
+ if (fileName.contains("Boston"))
+ {
+ StringsFound = StringsFound + 1;
+ }
+ if (fileName.contains("Zombie"))
+ {
+ StringsFound = StringsFound + 1;
+ }
+ if (fileName.contains("Mud"))
+ {
+ StringsFound = StringsFound + 1;
+
+ }
+
+
+// if exactly one of them is
+ {
+ if (StringsFound == 1)
+ {
+ System.out.println(fileName);
+ }
+//print out the strings
+ }
+ }
+
+ }
+}
+// I WORKED ON THIS WITH ALEX, SHANE, AND JACOB
\ No newline at end of file
diff --git a/Yesenia/Problem 1_test files.txt b/Yesenia/Problem 1_test files.txt
new file mode 100644
index 0000000..6a72a62
--- /dev/null
+++ b/Yesenia/Problem 1_test files.txt
@@ -0,0 +1,8 @@
+Test Files:::
+
+5
+2017_MUd_race.exc
+Zombie-will-kill.pdf
+BunRun_is_better_than_Spartan.doc
+This_is_SpArtA.jpeg
+
diff --git a/Yesenia/Problem 2/.idea/misc.xml b/Yesenia/Problem 2/.idea/misc.xml
new file mode 100644
index 0000000..0548357
--- /dev/null
+++ b/Yesenia/Problem 2/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Yesenia/Problem 2/.idea/modules.xml b/Yesenia/Problem 2/.idea/modules.xml
new file mode 100644
index 0000000..4b7dd62
--- /dev/null
+++ b/Yesenia/Problem 2/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Yesenia/Problem 2/.idea/workspace.xml b/Yesenia/Problem 2/.idea/workspace.xml
new file mode 100644
index 0000000..de88c64
--- /dev/null
+++ b/Yesenia/Problem 2/.idea/workspace.xml
@@ -0,0 +1,258 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/bkeller/Problem1/Problem1.iml b/bkeller/Problem1/Problem1.iml
new file mode 100644
index 0000000..c90834f
--- /dev/null
+++ b/bkeller/Problem1/Problem1.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/bkeller/Problem1/out/production/Problem1/Problem1.class b/bkeller/Problem1/out/production/Problem1/Problem1.class
new file mode 100644
index 0000000..3cd9cae
Binary files /dev/null and b/bkeller/Problem1/out/production/Problem1/Problem1.class differ
diff --git a/bkeller/Problem1/src/Problem1.java b/bkeller/Problem1/src/Problem1.java
new file mode 100644
index 0000000..f2727ae
--- /dev/null
+++ b/bkeller/Problem1/src/Problem1.java
@@ -0,0 +1,53 @@
+import java.util.Scanner;
+
+public class Problem1 {
+
+
+ public static void main(String[] args) {
+ int numberOfFiles;
+ String fileName;
+
+ Scanner input = new Scanner(System.in);
+ numberOfFiles = input.nextInt();
+
+ input.nextLine();
+ //get rid of remaining line after the number
+
+ //loop through a list of files
+ for (int i = 0; i < numberOfFiles; i = i + 1)
+ {
+ fileName = input.nextLine();
+
+ int numberOfStringsFound = 0;
+ //test how many of the strings ar in the file name
+ if (fileName.contains("Mud")) {
+ numberOfStringsFound = numberOfStringsFound + 1;
+ }
+
+ if (fileName.contains("BunRun")) {
+ numberOfStringsFound = numberOfStringsFound + 1;
+ }
+
+ if (fileName.contains("Boston")) {
+ numberOfStringsFound = numberOfStringsFound + 1;
+ }
+ if (fileName.contains("Spartan")) {
+ numberOfStringsFound = numberOfStringsFound + 1;
+ }
+ if (fileName.contains("Zombie")) {
+ numberOfStringsFound = numberOfStringsFound + 1;
+ }
+
+ //if exactly one of them is
+ if (numberOfStringsFound == 1) {
+ //print out the string
+ System.out.println(fileName);
+ }
+ }
+
+ //System.out.println(fileName);
+
+
+ }
+
+}
\ No newline at end of file
diff --git a/bkeller/Problem2/Problem 2 Notes.txt b/bkeller/Problem2/Problem 2 Notes.txt
new file mode 100644
index 0000000..6118e89
--- /dev/null
+++ b/bkeller/Problem2/Problem 2 Notes.txt
@@ -0,0 +1,40 @@
+
+Problem 2 Process:
+
+
+? Locate all groups of three.
+
+Add this total to a running total of how many groups there can be.
+
+
+? If the number of singles > the number of doubles,
+
+
+(-- Find all groups of 1.
+
+Match each single up with a group of 2 to create a trio.
+
+Add this trio to the running sum.
+
+Pair up any remaining singles. --)
+
+
+? If the number of singles < the number of doubles,
+
+
+(-- Find all groups of 2.
+
+Match up a single with a group of 2 to create a trio.
+
+Add this trio to the running sum.
+
+Pair up any remaining singles. --)
+
+
+? Count the remaining students not in a group of 3.
+
+ This is your remainder.
+
+
+? Print total number of trios and the remainder.
+
diff --git a/bkeller/Problem2/Problem2/.idea/misc.xml b/bkeller/Problem2/Problem2/.idea/misc.xml
new file mode 100644
index 0000000..4c1c37a
--- /dev/null
+++ b/bkeller/Problem2/Problem2/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/bkeller/Problem2/Problem2/.idea/modules.xml b/bkeller/Problem2/Problem2/.idea/modules.xml
new file mode 100644
index 0000000..4cacfcb
--- /dev/null
+++ b/bkeller/Problem2/Problem2/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/bkeller/Problem2/Problem2/.idea/workspace.xml b/bkeller/Problem2/Problem2/.idea/workspace.xml
new file mode 100644
index 0000000..b8aac26
--- /dev/null
+++ b/bkeller/Problem2/Problem2/.idea/workspace.xml
@@ -0,0 +1,349 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/bkeller/Problem2/Problem2/Problem2.iml b/bkeller/Problem2/Problem2/Problem2.iml
new file mode 100644
index 0000000..c90834f
--- /dev/null
+++ b/bkeller/Problem2/Problem2/Problem2.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/bkeller/Problem2/Problem2/out/production/Problem2/Problem2.class b/bkeller/Problem2/Problem2/out/production/Problem2/Problem2.class
new file mode 100644
index 0000000..67fecc0
Binary files /dev/null and b/bkeller/Problem2/Problem2/out/production/Problem2/Problem2.class differ
diff --git a/bkeller/Problem2/Problem2/src/Problem2.java b/bkeller/Problem2/Problem2/src/Problem2.java
new file mode 100644
index 0000000..7615432
--- /dev/null
+++ b/bkeller/Problem2/Problem2/src/Problem2.java
@@ -0,0 +1,56 @@
+import java.util.Scanner;
+
+public class Problem2 {
+
+
+ public static void main(String[] args) {
+ int groupsOf3 = 0;
+ int groupsOf2 = 0;
+ int groupsOf1 = 0;
+ int totalGroups = 0;
+ int unfilledGroups = 0;
+ String group;
+ int i = 0;
+
+
+ Scanner input = new Scanner(System.in);
+
+ group = input.nextLine();
+
+ // create space for the running total of the number of groups
+ while( group.charAt(i) != '0' )
+ {
+ if (group.charAt(i) == '3') {
+ groupsOf3 = groupsOf3 + 1;
+ } else if (group.charAt(i) == '2') {
+ groupsOf2 = groupsOf2 + 1;
+ } else if (group.charAt(i) == '1') {
+ groupsOf1 = groupsOf1 + 1;
+ }
+ i = i + 1;
+ }
+
+
+ if( groupsOf2 > groupsOf1){
+ totalGroups = groupsOf1 + groupsOf3;
+ unfilledGroups = groupsOf2 - groupsOf1;
+ unfilledGroups *= 2;
+ }
+
+ if( groupsOf1 >= groupsOf2){
+ totalGroups = groupsOf2 + groupsOf3;
+ unfilledGroups = groupsOf1 - groupsOf2;
+ }
+ System.out.println(totalGroups + " full groups can be formed, and " + unfilledGroups + " students will still need a group.");
+ // add all groups of three to the running total
+
+ // loop through all remaining integers
+
+ // if the number of groupsOf2 > groupsOf1
+ // find all groups of 2
+ // match up a 'single' with a groupOf2
+ // add this new group to the running total
+ }
+}
+
+
diff --git a/bkeller/Problem3/.idea/misc.xml b/bkeller/Problem3/.idea/misc.xml
new file mode 100644
index 0000000..0548357
--- /dev/null
+++ b/bkeller/Problem3/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/bkeller/Problem3/.idea/modules.xml b/bkeller/Problem3/.idea/modules.xml
new file mode 100644
index 0000000..482b526
--- /dev/null
+++ b/bkeller/Problem3/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/bkeller/Problem3/.idea/workspace.xml b/bkeller/Problem3/.idea/workspace.xml
new file mode 100644
index 0000000..75c4497
--- /dev/null
+++ b/bkeller/Problem3/.idea/workspace.xml
@@ -0,0 +1,272 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/bkeller/Problem3/Problem3.iml b/bkeller/Problem3/Problem3.iml
new file mode 100644
index 0000000..c90834f
--- /dev/null
+++ b/bkeller/Problem3/Problem3.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/bkeller/Problem3/out/production/Problem3/Problem3.class b/bkeller/Problem3/out/production/Problem3/Problem3.class
new file mode 100644
index 0000000..45f67f6
Binary files /dev/null and b/bkeller/Problem3/out/production/Problem3/Problem3.class differ
diff --git a/bkeller/Problem3/src/Problem3.java b/bkeller/Problem3/src/Problem3.java
new file mode 100644
index 0000000..c5f8c85
--- /dev/null
+++ b/bkeller/Problem3/src/Problem3.java
@@ -0,0 +1,46 @@
+import java.util.Scanner;
+
+public class Problem3 {
+ public static void main(String[] args) {
+ int numberofEntries;
+ String userName, entryFirstName, entryLastName;
+
+ Scanner input = new Scanner(System.in);
+ numberofEntries = input.nextInt();
+
+
+ for (int i = 0; i < numberofEntries; i = i + 1) {
+
+ userName = "";
+ entryFirstName = input.next();
+ entryLastName = input.next();
+ System.out.print(entryFirstName.toLowerCase().charAt(0));
+ int a = 0;
+
+ // Take the entry names to form usernames for each student. Usernames will be in lowercase.
+
+ for (a = 0; (entryLastName).toLowerCase().charAt(0) > entryFirstName.toLowerCase().charAt(a + 1); a = a + 1) {
+ System.out.print(entryFirstName.charAt(a + 1));
+ }
+
+ // Use the beginning letter of the first name and then use a for( ) loop:
+ // If the next letter of the first name comes before the first letter of the last name in the alphabet,
+ // print that letter.
+ // If the next letter of the first name does not come before the first letter of the last name in the alphabet,
+ // start printing the last name.
+
+ for (int d = 0; d < (entryLastName.length()) && d < 7 - a; d = d + 1)
+
+ // Use 7 characters or less from the last name.
+
+ {
+ System.out.print(entryLastName.toLowerCase().charAt(d));
+
+ // Print the final username.
+
+ }
+ }
+ }
+}
+
+
diff --git a/dburrigh/Problem 2/.idea/misc.xml b/dburrigh/Problem 2/.idea/misc.xml
new file mode 100644
index 0000000..0548357
--- /dev/null
+++ b/dburrigh/Problem 2/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/dburrigh/Problem 2/.idea/modules.xml b/dburrigh/Problem 2/.idea/modules.xml
new file mode 100644
index 0000000..4b7dd62
--- /dev/null
+++ b/dburrigh/Problem 2/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/dburrigh/Problem 2/.idea/workspace.xml b/dburrigh/Problem 2/.idea/workspace.xml
new file mode 100644
index 0000000..11fe038
--- /dev/null
+++ b/dburrigh/Problem 2/.idea/workspace.xml
@@ -0,0 +1,291 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/jhinze/Problem3/Input Names.txt b/jhinze/Problem3/Input Names.txt
new file mode 100644
index 0000000..e57e3a5
--- /dev/null
+++ b/jhinze/Problem3/Input Names.txt
@@ -0,0 +1,6 @@
+5
+Jack Hinze
+Kacie Gribble
+Caleb Conway
+Dylan Hike
+Clay Goodwin
\ No newline at end of file
diff --git a/jhinze/Problem3/Outline.txt b/jhinze/Problem3/Outline.txt
new file mode 100644
index 0000000..4a7a543
--- /dev/null
+++ b/jhinze/Problem3/Outline.txt
@@ -0,0 +1,27 @@
+Problem3
+
+Start
+
+int numberOfNames;
+String userName;
+
+Scanner input = new Scanner(System.in);
+numberOfPeople = input.nextInt();
+
+input.nextLine();
+
+Now we want to loop through a list of names
+
+For each name we want to have the first letter of the first name and the first letter of the last name amongst the 8 character username.
+We will have a loop that will start with the first person, get their username, then loop back up to get to start on the second person.
+Within that loop, we will start by taking the first letter of the first name.
+Next, we will have another loop.
+In this loop, we will take the next letter of the first name and compare it to the first letter of the last name.
+There will be a boolean command set up here.
+For this boolean, if the first letter of the last name comes before the next letter in the first name, then add the last name or atleast until 8 characters have been used.
+If not, then use the next letter of the first name and then loop back up to the boolean command and compare the next letter with the first letter of the last name.
+Once the last name is used, end this loop.
+Once the username has been made, print the username.
+Now go up to the first for and begin finding the username for the next person.
+Once all the people have a username, end the loop.
+Now print all the usernames.
diff --git a/jhinze/Problem3/Output Names.txt b/jhinze/Problem3/Output Names.txt
new file mode 100644
index 0000000..24e3d6f
--- /dev/null
+++ b/jhinze/Problem3/Output Names.txt
@@ -0,0 +1,5 @@
+jachinze
+kacgribb
+caconway
+dhike
+cgoodwin
diff --git a/jhinze/Problem3/Problem3.iml b/jhinze/Problem3/Problem3.iml
new file mode 100644
index 0000000..c90834f
--- /dev/null
+++ b/jhinze/Problem3/Problem3.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/jhinze/Problem3/out/production/Problem3/Problem3.class b/jhinze/Problem3/out/production/Problem3/Problem3.class
new file mode 100644
index 0000000..d95a0ac
Binary files /dev/null and b/jhinze/Problem3/out/production/Problem3/Problem3.class differ
diff --git a/jhinze/Problem3/src/Problem3.java b/jhinze/Problem3/src/Problem3.java
new file mode 100644
index 0000000..2e864be
--- /dev/null
+++ b/jhinze/Problem3/src/Problem3.java
@@ -0,0 +1,48 @@
+ import java.util.Scanner;
+
+
+ public class Problem3 {
+
+ public static void main(String[] args)
+ {
+ int numberOfPeople;
+ String userName;
+ String firstName;
+ String lastName;
+ char lastNameFirst;
+ Scanner input = new Scanner(System.in);
+ numberOfPeople = input.nextInt();
+
+
+
+
+
+ // loop through a list of names
+
+ for( int i = 0; i < numberOfPeople; i = i + 1) {
+ userName = "";
+ firstName = input.next();
+ lastName = input.next();
+ lastNameFirst = lastName.toLowerCase().charAt(0);
+ userName = userName + firstName.toLowerCase().charAt(0);
+
+ boolean lastNameStarts = false;
+ for (int j = 1; j < 8 && j < firstName.length(); j = j + 1) {
+ if (lastNameFirst < firstName.toLowerCase().charAt(j)) {
+ lastNameStarts = true;
+ }
+ if (!lastNameStarts) {
+ userName = userName + firstName.toLowerCase().charAt(j);
+ }
+ }
+
+ for (int k = 0; k < 8 ; k = k + 1) {
+ if( userName.length() < 8 && k < lastName.length()) {
+ userName = userName + lastName.toLowerCase().charAt(k);
+ }
+
+ }
+ System.out.println(userName);
+ }
+ }
+ }
diff --git a/jhinze/README.md b/jhinze/README.md
new file mode 100644
index 0000000..88665e4
--- /dev/null
+++ b/jhinze/README.md
@@ -0,0 +1 @@
+# HW1
\ No newline at end of file
diff --git a/jhinze/jhinze.iml b/jhinze/jhinze.iml
new file mode 100644
index 0000000..c90834f
--- /dev/null
+++ b/jhinze/jhinze.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/jhinze/problem1.md b/jhinze/problem1.md
new file mode 100644
index 0000000..cb27a50
--- /dev/null
+++ b/jhinze/problem1.md
@@ -0,0 +1,39 @@
+# Problem 1
+
+You have a friend who has a lot of files where each one contains the results from a race. These files do not have a standard naming system.
+However you do know the names of the races, and also that each race puts it's name in the file name for it's results.
+
+The races your friend is interested in are:
+* BunRun
+* Zombie
+* Boston
+* Spartan
+* Mud
+
+There happen to have an index file of all the file names. Your friend is willing totype these names in on the command line to your program.
+
+They are asking you to find all file names that contain exactly one of the names of the races, and print them to the screen so they can find them.
+
+Here is a small sampling of the list of races:
+
+* 2014_Mud-run_for_fun.xml
+* Spartan_run_in_the_Mud.doc
+* Boston-Marathon_2019
+* Bun_Run_In_The_Sun.pdf
+
+
+Result for these file names:
+
+* 2014_Mud-run_for_fun.xml
+* Boston-Marathon_2019
+
+## What to have in your answer:
+* A file that has your program in it that can be compiled. It should be named: .java
+* A seperate file with at least 5 test possible file names that you create.
+* A seperate file with the answers to the test cases you created (list the file name on one line and then the answer on the following line.)
+
+
+## Bonus:
+1. Get your program to give an option to print either the file names that contain exactly one of the race names, or any/multiple of the race names, based upon input from the user (to decide which they want to do.)
+2. Your friend has found an additional batch of files that are in folders. Look for the race names, ignoring any characters before the last '/' in the file name:
+races/summer/north/Zombie_run_for_your_life.docx
diff --git a/jhinze/problem2.md b/jhinze/problem2.md
new file mode 100644
index 0000000..8eeb466
--- /dev/null
+++ b/jhinze/problem2.md
@@ -0,0 +1,47 @@
+# Problem 2
+
+There is an instructor of a free class who has lots of participants.
+They want the participants to divide themselves up into groups of three.
+The instructor asks that the particpants put there names on a sheet with the group members.
+It is mentioned that there may not be a multiple of three, so if the participants do not find a group of three to be a part of, that is ok, but to make sure a sheet of paper with the names of the participants that they could find on it.
+(Note this means that every participant needs to have there name on a sheet of paper.)
+
+What the instructor didn't expect is that a large number of the participants didn't find a group of three to be a part of.
+
+The instructor wants your help in finding how many groups of three can be formed without breaking up the groupings the students turned in.
+
+The instructor wants a progam they can run, and then type into the commandline the number of students in a group then some white space (a space or return is most likely), and repeat until each groups size has been entered.
+They will finish with a 0 and press return to indicate that they are done entering the group sizes.
+
+The instructor wants the program to print out how many full groups can be created (the maximum number), and how many students will not be in a full group.
+
+Sample Input 1:
+~~~
+1 2 2 2 1 3 2 2 3 3 2 3 0
+~~~
+Sample Output 1:
+~~~
+6 full groups can be formed, and 8 students will still need a group.
+~~~
+
+Sample Input 2:
+~~~
+1
+2 1
+2 1 2 1
+2
+1
+1 1
+0
+~~~
+
+Sample Output 2:
+~~~
+5 full groups can be formed, and no students will still need a group.
+~~~
+
+
+-----
+### Bonus
+Allow the program to take a number on the first line by itself that indicates the size of the groups that the instructor wants.
+The following numbers may be any number from 1 to the size of the groups. A 0 stil ends the sequence of input.
diff --git a/jhinze/problem3.md b/jhinze/problem3.md
new file mode 100644
index 0000000..7ab8e77
--- /dev/null
+++ b/jhinze/problem3.md
@@ -0,0 +1,39 @@
+# Problem 3
+
+We need your help generating user names for students.
+
+We want to use part of their first name and part of their last name.
+In both cases we want to start at the begining of the name and take consecutive letters from there.
+The username must use at least the first letter from the first and the first letter from the last name.
+
+Longer user names are always considered better, however user names on the system can not be longer than 8 characters.
+
+If there are multiple choices for the user name, please return the one that would come first alphebetically, considering all letters to be lower case.
+
+The program will receive a nmber saying how many names there are to compare, and then there will be that many lines of additinoal input.
+Each of those lines will contain the first name, a space, and the last name of a student.
+
+Plese print out for each student the optimal user name per the preferences above.
+Do not worry if two students end up with the same username (the system admins will deal with those issues.)
+
+Sample Input:
+~~~
+5
+Jeff Ifland
+AAAA BBBBB
+AAAAA BBBB
+zy xwv
+abcdefg bzyxwvucba
+zzzzzzzz aaaaaaaaa
+~~~
+
+Sample Output:
+~~~
+jeffifla
+aaaabbbb
+aaaaabbb
+zywxv
+abbzyxwv
+zaaaaaaa
+~~~
+
diff --git a/kbenes2/.idea/workspace.xml b/kbenes2/.idea/workspace.xml
new file mode 100644
index 0000000..5b9c979
--- /dev/null
+++ b/kbenes2/.idea/workspace.xml
@@ -0,0 +1,270 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/kbenes2/Problem 3/Flow Chart of Problem 3.txt b/kbenes2/Problem 3/Flow Chart of Problem 3.txt
new file mode 100644
index 0000000..d97c3c7
--- /dev/null
+++ b/kbenes2/Problem 3/Flow Chart of Problem 3.txt
@@ -0,0 +1,13 @@
+Look at the first name.
+
+Use the first letter of the first name.
+
+Look at the next letter of the first name.
+Alphabetically, if that letter comes before the first letter of the last name:
+ Yes-- print that letter then move to next letter of first name
+ Loop to "Look at the next letter of the first name"
+ No-- print the last name only using 7 characters or less.
+
+Then move on to the next person and start over loop beginning at using the first letter of the first name.
+
+One of the loops will include looking at the first name and the last name of each person, then moving on to the next person.
diff --git a/kbenes2/Problem 3/Input Names.txt b/kbenes2/Problem 3/Input Names.txt
new file mode 100644
index 0000000..919ea7d
--- /dev/null
+++ b/kbenes2/Problem 3/Input Names.txt
@@ -0,0 +1,6 @@
+5
+Kristen Benes
+Dallas Burright
+Jack Hinze
+Braly Keller
+Andrew Maaske
\ No newline at end of file
diff --git a/kbenes2/Problem 3/Output Names.txt b/kbenes2/Problem 3/Output Names.txt
new file mode 100644
index 0000000..ffe4623
--- /dev/null
+++ b/kbenes2/Problem 3/Output Names.txt
@@ -0,0 +1,5 @@
+kbenes
+daburrig
+jachinze
+bkeller
+amaaske
\ No newline at end of file
diff --git a/kbenes2/Problem 3/Problem 3.iml b/kbenes2/Problem 3/Problem 3.iml
new file mode 100644
index 0000000..c90834f
--- /dev/null
+++ b/kbenes2/Problem 3/Problem 3.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/kbenes2/Problem 3/out/production/Problem 3/Problem3.class b/kbenes2/Problem 3/out/production/Problem 3/Problem3.class
new file mode 100644
index 0000000..efbb1a8
Binary files /dev/null and b/kbenes2/Problem 3/out/production/Problem 3/Problem3.class differ
diff --git a/kbenes2/Problem 3/src/Problem3.java b/kbenes2/Problem 3/src/Problem3.java
new file mode 100644
index 0000000..8a40410
--- /dev/null
+++ b/kbenes2/Problem 3/src/Problem3.java
@@ -0,0 +1,31 @@
+import java.util.Scanner;
+
+public class Problem3 {
+ public static void main(String[] args) {
+ int numberOfNames;
+ String userName, personFirstName, personLastName;
+
+ Scanner input = new Scanner(System.in);
+ numberOfNames = input.nextInt();
+
+
+ for (int i = 0; i < numberOfNames; i = i + 1) {
+
+ userName = "";
+ personFirstName = input.next();
+ personLastName = input.next();
+ System.out.print(personFirstName.toLowerCase().charAt(0));
+ int a = 0;
+
+ for ( a = 0; (personLastName.toLowerCase().charAt(0) > personFirstName.toLowerCase().charAt(a + 1)); a = a + 1) {
+ System.out.print(personFirstName.charAt(a + 1));
+ }
+
+ for (int d = 0; d < (personLastName.length()) && d < 7 - a; d = d + 1)
+ {
+ System.out.print(personLastName.toLowerCase().charAt(d));
+
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/piiamt/IMG_3477.JPG b/piiamt/IMG_3477.JPG
new file mode 100644
index 0000000..6fd1074
Binary files /dev/null and b/piiamt/IMG_3477.JPG differ
diff --git a/piiamt/IMG_3478.JPG b/piiamt/IMG_3478.JPG
new file mode 100644
index 0000000..fa83030
Binary files /dev/null and b/piiamt/IMG_3478.JPG differ
diff --git a/piiamt/Problem 1/.idea/workspace.xml b/piiamt/Problem 1/.idea/workspace.xml
index 7ada8c1..e16f655 100644
--- a/piiamt/Problem 1/.idea/workspace.xml
+++ b/piiamt/Problem 1/.idea/workspace.xml
@@ -15,8 +15,8 @@
-
-
+
+
@@ -66,21 +66,21 @@
-
-
-
-
+
+
+
+
@@ -215,10 +215,10 @@
+
-
@@ -229,17 +229,18 @@
-
+
-
+
+
@@ -274,8 +275,38 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/piiamt/Problem 2/.idea/misc.xml b/piiamt/Problem 2/.idea/misc.xml
new file mode 100644
index 0000000..8e8843c
--- /dev/null
+++ b/piiamt/Problem 2/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/piiamt/Problem 2/.idea/modules.xml b/piiamt/Problem 2/.idea/modules.xml
new file mode 100644
index 0000000..4b7dd62
--- /dev/null
+++ b/piiamt/Problem 2/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/piiamt/Problem 2/.idea/workspace.xml b/piiamt/Problem 2/.idea/workspace.xml
new file mode 100644
index 0000000..bbf138f
--- /dev/null
+++ b/piiamt/Problem 2/.idea/workspace.xml
@@ -0,0 +1,284 @@
+
+
+
+
+
+