From dfcc6265be1606b235e07a40de4a7887aeaa3273 Mon Sep 17 00:00:00 2001 From: jifland Date: Thu, 22 Mar 2018 00:39:18 +0000 Subject: [PATCH 01/39] Create test --- jifland/test | 1 + 1 file changed, 1 insertion(+) create mode 100644 jifland/test diff --git a/jifland/test b/jifland/test new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/jifland/test @@ -0,0 +1 @@ + From 80cbe9a5939fc3e8a69006d7798c0a0aa3d80dab Mon Sep 17 00:00:00 2001 From: jifland Date: Thu, 22 Mar 2018 00:47:37 +0000 Subject: [PATCH 02/39] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ff2c855..e5dd70b 100644 --- a/README.md +++ b/README.md @@ -19,4 +19,6 @@ I would like you to complete what you can prior to next Wednesday's Lecture. #### Recursion * Write a program that takes an integer, and prints the factorial of the integer. ex: 5 factorial is 5*4*3*2*1 -* Write a +* Write a program that will calculate the number of cannon balls in a trinagular pyramid that has the intered integer number of rows. +(Note: this means that any layer of the pyramid has an equalateral triangle of cannonballs. The top layer has 1 cannon ball, the one below that has 3, etc.) + From 0e084000fb9368a45227b18193ea5327f79587d8 Mon Sep 17 00:00:00 2001 From: dburrigh <35316831+dburrigh@users.noreply.github.com> Date: Wed, 21 Mar 2018 19:47:40 -0500 Subject: [PATCH 03/39] Create folder --- dburrigh/folder | 1 + 1 file changed, 1 insertion(+) create mode 100644 dburrigh/folder diff --git a/dburrigh/folder b/dburrigh/folder new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/dburrigh/folder @@ -0,0 +1 @@ + From 491c112ea15668b70f3b068cd7c0d217e9b1daff Mon Sep 17 00:00:00 2001 From: jifland Date: Thu, 22 Mar 2018 00:49:21 +0000 Subject: [PATCH 04/39] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e5dd70b..943a060 100644 --- a/README.md +++ b/README.md @@ -21,4 +21,4 @@ I would like you to complete what you can prior to next Wednesday's Lecture. * Write a program that takes an integer, and prints the factorial of the integer. ex: 5 factorial is 5*4*3*2*1 * Write a program that will calculate the number of cannon balls in a trinagular pyramid that has the intered integer number of rows. (Note: this means that any layer of the pyramid has an equalateral triangle of cannonballs. The top layer has 1 cannon ball, the one below that has 3, etc.) - +* Use recursion to determin if a string passed in is a palindrome. Your program will be given a string. From 82c7998dffe455ea707430dc0027fe7882301809 Mon Sep 17 00:00:00 2001 From: ylopez20 <35316830+ylopez20@users.noreply.github.com> Date: Wed, 21 Mar 2018 20:21:12 -0500 Subject: [PATCH 05/39] Create Temperature Problem --- ylopez20/Temperature Problem | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 ylopez20/Temperature Problem diff --git a/ylopez20/Temperature Problem b/ylopez20/Temperature Problem new file mode 100644 index 0000000..997774d --- /dev/null +++ b/ylopez20/Temperature Problem @@ -0,0 +1,19 @@ +import java.util.Scanner; + +public class labFourTemperature { + + public static void main(String[] args) + { + double celsius, fahrenheit; + + Scanner s = new Scanner(System.in); + + System.out.print("Enter temperature in Fahrenheit:"); + + fahrenheit = s.nextDouble(); + + celsius = (fahrenheit-32)*(0.5556); + + System.out.println("Temperature in Celsius:"+celsius); + } + } From 58887ed7df61059d4bd62de1726c7eee7d50827a Mon Sep 17 00:00:00 2001 From: ylopez20 <35316830+ylopez20@users.noreply.github.com> Date: Wed, 21 Mar 2018 20:21:46 -0500 Subject: [PATCH 06/39] Create Triangle Problem --- ylopez20/Triangle Problem | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 ylopez20/Triangle Problem diff --git a/ylopez20/Triangle Problem b/ylopez20/Triangle Problem new file mode 100644 index 0000000..e316fbc --- /dev/null +++ b/ylopez20/Triangle Problem @@ -0,0 +1,26 @@ +import java.util.Scanner; + +public class LabFourTriangle { + + public static void main(String[] args) { + + Scanner sc = new Scanner(System.in); + int a = sc.nextInt(); + int b = sc.nextInt(); + int c = sc.nextInt(); + + + if(a==b && b==c) + System.out.println("Equilateral"); + + else if(a >= (b+c) || c >= (b+a) || b >= (a+c) ) + System.out.println("Not a triangle"); + + else if ((a==b && b!=c ) || (a!=b && c==a) || (c==b && c!=a)) + System.out.println("Isosceles"); + + else if(a!=b && b!=c && c!=a) + System.out.println("Scalene"); + } +} + From c29eb16fb03e044c4e9f08d62e4a4ddfaa816838 Mon Sep 17 00:00:00 2001 From: ylopez20 <35316830+ylopez20@users.noreply.github.com> Date: Wed, 21 Mar 2018 20:32:36 -0500 Subject: [PATCH 07/39] Create Reverse --- ylopez20/Reverse | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 ylopez20/Reverse diff --git a/ylopez20/Reverse b/ylopez20/Reverse new file mode 100644 index 0000000..0d4bac6 --- /dev/null +++ b/ylopez20/Reverse @@ -0,0 +1,19 @@ +import java.util.Scanner; + +public class LabFourReverse { + public static void main(String args[]) + { + String original, reverse = ""; + Scanner in = new Scanner(System.in); + + System.out.println("Enter a string to reverse"); + original = in.nextLine(); + + int length = original.length(); + + for ( int i = length - 1 ; i >= 0 ; i-- ) + reverse = reverse + original.charAt(i); + + System.out.println("Reverse of entered string is: "+reverse); + } +} From b16a8f72b23d6438932de54c9b65702889a7bf10 Mon Sep 17 00:00:00 2001 From: bkeller17 <35274190+bkeller17@users.noreply.github.com> Date: Thu, 22 Mar 2018 02:03:24 +0000 Subject: [PATCH 08/39] Create LAB4Q2.java --- bkeller17/LAB4Q2.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 bkeller17/LAB4Q2.java diff --git a/bkeller17/LAB4Q2.java b/bkeller17/LAB4Q2.java new file mode 100644 index 0000000..9998006 --- /dev/null +++ b/bkeller17/LAB4Q2.java @@ -0,0 +1,17 @@ +import java.util.Scanner; + +public class LAB4Q2 { +public static double ConvertFtoC(int Input){ + return (Input-32) * 5/9.0; +} + public static void main(String [] args) + { + Scanner scan = new Scanner(System.in); + int input = scan.nextInt(); + + int F = input; + + System.out.println(ConvertFtoC(F)); + + } +} From 50d61a2f0c05b736a566eec85a4ffd9d6a9f1e1a Mon Sep 17 00:00:00 2001 From: piiamt <35284426+piiamt@users.noreply.github.com> Date: Wed, 21 Mar 2018 21:04:04 -0500 Subject: [PATCH 09/39] Create tempconvert --- piiamt/tempconvert | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 piiamt/tempconvert diff --git a/piiamt/tempconvert b/piiamt/tempconvert new file mode 100644 index 0000000..8f980f4 --- /dev/null +++ b/piiamt/tempconvert @@ -0,0 +1,13 @@ +public class Tempconvert { + + public static double FtoC(double F){ + double C = (5.0/9.0)*(F-32.0); + return C; + } + + public static void main (String[] args){ + System.out.println(FtoC(88.0)); + } + + +} From 63181884594bedc07058e2a771e3f0fd96208b3b Mon Sep 17 00:00:00 2001 From: piiamt <35284426+piiamt@users.noreply.github.com> Date: Wed, 21 Mar 2018 21:04:28 -0500 Subject: [PATCH 10/39] Create palindrome --- piiamt/palindrome | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 piiamt/palindrome diff --git a/piiamt/palindrome b/piiamt/palindrome new file mode 100644 index 0000000..5fc7035 --- /dev/null +++ b/piiamt/palindrome @@ -0,0 +1,20 @@ +import java.util.Arrays; +import java.util.Scanner; + +public class palindrome { + + public static String reverse(String wordIn){ + char[] reversed = new char[wordIn.length()]; + for (int i=0; i Date: Thu, 22 Mar 2018 02:07:34 +0000 Subject: [PATCH 11/39] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 943a060..bd8c2ec 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ I would like you to complete what you can prior to next Wednesday's Lecture. #### Recursion -* Write a program that takes an integer, and prints the factorial of the integer. ex: 5 factorial is 5*4*3*2*1 +* Write a program that takes an integer, and prints the factorial of the integer. ex: 5 factorial is 5 * 4 * 3 * 2 * 1 * Write a program that will calculate the number of cannon balls in a trinagular pyramid that has the intered integer number of rows. (Note: this means that any layer of the pyramid has an equalateral triangle of cannonballs. The top layer has 1 cannon ball, the one below that has 3, etc.) * Use recursion to determin if a string passed in is a palindrome. Your program will be given a string. From b6baeb3ef404104e9ba88c9af250e7885456d894 Mon Sep 17 00:00:00 2001 From: dburrigh Date: Wed, 21 Mar 2018 21:11:17 -0500 Subject: [PATCH 12/39] Progress --- dburrigh/.idea/.name | 1 + dburrigh/.idea/misc.xml | 6 + dburrigh/.idea/modules.xml | 8 + dburrigh/.idea/workspace.xml | 314 ++++++++++++++++++ dburrigh/dburrigh.iml | 11 + dburrigh/out/production/dburrigh/Lab.class | Bin 0 -> 619 bytes .../out/production/dburrigh/Reverse.class | Bin 0 -> 246 bytes .../out/production/dburrigh/Temperature.class | Bin 0 -> 841 bytes dburrigh/src/Reverse.java | 5 + dburrigh/src/Temperature.java | 20 ++ dburrigh/src/Triangle.java | 23 ++ 11 files changed, 388 insertions(+) create mode 100644 dburrigh/.idea/.name create mode 100644 dburrigh/.idea/misc.xml create mode 100644 dburrigh/.idea/modules.xml create mode 100644 dburrigh/.idea/workspace.xml create mode 100644 dburrigh/dburrigh.iml create mode 100644 dburrigh/out/production/dburrigh/Lab.class create mode 100644 dburrigh/out/production/dburrigh/Reverse.class create mode 100644 dburrigh/out/production/dburrigh/Temperature.class create mode 100644 dburrigh/src/Reverse.java create mode 100644 dburrigh/src/Temperature.java create mode 100644 dburrigh/src/Triangle.java diff --git a/dburrigh/.idea/.name b/dburrigh/.idea/.name new file mode 100644 index 0000000..b9b3f55 --- /dev/null +++ b/dburrigh/.idea/.name @@ -0,0 +1 @@ +Lab4 \ No newline at end of file diff --git a/dburrigh/.idea/misc.xml b/dburrigh/.idea/misc.xml new file mode 100644 index 0000000..0548357 --- /dev/null +++ b/dburrigh/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/dburrigh/.idea/modules.xml b/dburrigh/.idea/modules.xml new file mode 100644 index 0000000..8e7d1d2 --- /dev/null +++ b/dburrigh/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/dburrigh/.idea/workspace.xml b/dburrigh/.idea/workspace.xml new file mode 100644 index 0000000..5306ff5 --- /dev/null +++ b/dburrigh/.idea/workspace.xml @@ -0,0 +1,314 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1521680090099 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Lab-4.iml b/Lab-4.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/Lab-4.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/changingDegrees/changingDegrees.iml b/changingDegrees/changingDegrees.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/changingDegrees/changingDegrees.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/out/production/Lab-4/changingTemp.class b/out/production/Lab-4/changingTemp.class new file mode 100644 index 0000000000000000000000000000000000000000..910b5e6dfb3c50a4e2ea8ebe5e582989fe2a6a8d GIT binary patch literal 847 zcmZuv?QRlL5Iq+b7M3m0(qgS(Km1y#cKxW;q}rIYAt51ZLPKKwwZIK*1G{9|HTncT zj8p^RiLXEpNQ|$V7)0;#g=atTwn%Avs18NbvCqIWxkEHxVTwKzRXwQk>b7ga) zQmlpi3otn*DrrOknsrj^V4KgtjNeHTLhXWQfxgXK@J`h)A->Z{pvW^FgBq4;o3jM0 zphPdL7DGf8AMll_VsoRo)z1vSt|H-oqrb?JS>P~H#*LU`9XGEyA|%NIRDVJHaE{a^ z(yiSK=&vhB=g3rlAbSC0F071{YRGApC^Sz|1ypD$q4gONHgJnxjeYMdaF O!);n>2b;`EVCx^3=c1GV literal 0 HcmV?d00001 diff --git a/out/production/Lab-4/recursive.class b/out/production/Lab-4/recursive.class new file mode 100644 index 0000000000000000000000000000000000000000..98c3f3e7c2e9ada39dc3a0300e67444d96e0c453 GIT binary patch literal 1183 zcmaJ>+fEZv6kVsCGVOGL(w2(_<>Ia7Rxfx36hYBqL6aI1;?vNMI5?d)(-|U9CMJG~ z&pgOOF_QQJev>h-GewF*Op|@i*_XA}-senz{QCACzzo(jB$10@91|)gHH49qW-5wl zx#p$0rr|nnXz0OB6*DsTmWDWPOLIrY?n-k{#eEgC0v&UfV|fn*!r9!qfU;Dpm;&8J z%Q4sd>Za+wGB#~`lEqrtu-6UOlIJ6*;=Q#R0`a12mVLKj?U+Q2y)nvOjd?cVvW46V zNt^&mKoodz&4zD#JTTH(@{IDkRipj~v1(Y3KwtKCaogB2^0wh@xDv)1?9T^M?^aPbBnRPtHGl^f&v4ZD1ibzYd%1IrI z5JtF+tj%qlOb<}=XS>d&g>Uve-W$732*d6!1LZaNi#A&&jj{Em8H z-cz_&HD;(zLxi<+%#3k?{kFFWiLCN81rN z!|3N;ZzW&==XlcOrP3pdKSCiKFdbXiN9YjYjRPo|CL+m>Ce$XPO~f+FXGFBU%%_Y} z`3lWi7~W$=IAF<;2T;iwC1wmGL?0vHBsv4;K1PU+A)MzLqW=Ph$vwgo75>DS!m3f$ zwDf!+ZiKOmhlp?NLq9-gaiWQ?`5`hdQeqR`w4+TV+O4)kB>7j6LV|PYrL;lPkFjCd j{y3W?B!8E<#_7F`DA9G&q8_>Xh}o-f2HP!}$e-tT<(-gE9F{ki+?2Y_ij(U8Q1hKtBXaY@Cb21T9~ zT$bRJw5H|jii)c-T*Gw@8g5AIW)!zH%;2^}W;G;mN5x$ga{`eW+p)b_fv}N&DxfS> zH!Xp#yzN-ajqMG~T{kx>L=yRG$*epzU0a?5Q1Q0xy7YFfSC(71ik@pb}?6C0W~>`o>_WXFl)Xz z74xiS+q4~lKI3_N4!>H{EmME;AJ+mM^*8k#qm%ow4bQG*izU->ESD8(#cIPXS@&(f zIfv@MDD~>-K`%w<7{P)71p1GbG2gH&o0hBN9u{@n#{+3S)RDuIK)3IGkW|GZ9eEUF z=4Bl#SQQvpbUe#VnW?(p`IJ{p1yXLRc&uX$MIGx{(lLl3w&;*ff#WSnD;qDYl6MH& zpOe2CoJhp1)huUIVB)`K85GA(MM_(yJIB^B z#+?lO&e9`}&@ObL;+*(Rf*8(YG*JF7P;PvO_UsEfccAAJ;pH!gCyq7IHP*!O!uVHo zOJssTt23vdGIbAy_Tm`D_OXaT(xym$ftKu8#_x*3v%ym*C8dc8-o}0LAw~}PlEXyD I=o7;DABRINBme*a literal 0 HcmV?d00001 diff --git a/out/production/Lab-4/sideLengths.class b/out/production/Lab-4/sideLengths.class new file mode 100644 index 0000000000000000000000000000000000000000..9edcc8bae13923c02b04b47025267a917829c327 GIT binary patch literal 258 zcmYk0y$Zrm424f>f3&u?_y%t3U>7&VMQ|!QDDJoQqE~7Q{qen=1P33$hZ57`&;$-S zUlNkf_w@!ahi{_;*TTSpM=+NvRppA%8BdM`eVv^o!3$L?x796@`9VYplVO;}A~}j& z)&39l@}dfY8y4y$Lz$k-OR*r>`>e`ixl#3^-|Ee-;w~KMFbMq?=c&3ABqBWryXY$8 s5+i8*XC1`JE378Fpz(k)eS#hgG+3-AWAIp))oE%2J=pB{6srd32hwpfLjV8( literal 0 HcmV?d00001 diff --git a/out/production/Lab-4/temperature.class b/out/production/Lab-4/temperature.class new file mode 100644 index 0000000000000000000000000000000000000000..4147bf68163572eb639be3370581ea5009129a7b GIT binary patch literal 258 zcmYk0%?`mp6ot>N{!m5Z4eYScjUBO(ST!t&{j?^GR4ZfZy{se_9>7D1Td^>coZR!B zdouHSKb`=_2z}Jh^3e9sA-GeOD>Eb1`hzXOo)+y%9;qq#GBh$hJbO z%KxBk4(dW^#YUdaQVUaRIU)G#qSUEesHzzLWuv3GiU2koLi3OFR+U7V$oJ7IIm*=0; i--); + int i=length-1; + reverse = reverse + original.charAt(i); + + return reverse; + + } + public static void main( String [] args) + { + Scanner sysIn = new Scanner(System.in); + String original, reverse= ""; + System.out.println("Enter a string to reverse:"); + original = sysIn.nextLine(); + + reverse=ReverseString(original); + System.out.println(reverse); + } + +} diff --git a/src/sideLengths.java b/src/sideLengths.java new file mode 100644 index 0000000..034ed9c --- /dev/null +++ b/src/sideLengths.java @@ -0,0 +1,7 @@ +import java.util.Scanner; + + +public class sideLengths +{ + +} diff --git a/src/temperature.java b/src/temperature.java new file mode 100644 index 0000000..9545d18 --- /dev/null +++ b/src/temperature.java @@ -0,0 +1,6 @@ +import java.util.Scanner; + +public class temperature +{ + +} From d74e063adfed33ee25fe46859c6eb7b5d49897e7 Mon Sep 17 00:00:00 2001 From: jackhinze Date: Wed, 21 Mar 2018 21:35:34 -0500 Subject: [PATCH 14/39] Lab4 --- .idea/misc.xml | 6 - .idea/modules.xml | 9 - .idea/vcs.xml | 6 - .idea/workspace.xml | 429 ---------------------- Lab-4.iml | 11 - changingDegrees/changingDegrees.iml | 11 - {src => jackhinze/src}/changingTemp.java | 0 {src => jackhinze/src}/recursive.java | 0 {src => jackhinze/src}/reverseString.java | 0 {src => jackhinze/src}/sideLengths.java | 0 {src => jackhinze/src}/temperature.java | 0 out/production/Lab-4/changingTemp.class | Bin 847 -> 0 bytes out/production/Lab-4/recursive.class | Bin 1183 -> 0 bytes out/production/Lab-4/reverseString.class | Bin 1375 -> 0 bytes out/production/Lab-4/sideLengths.class | Bin 258 -> 0 bytes out/production/Lab-4/temperature.class | Bin 258 -> 0 bytes 16 files changed, 472 deletions(-) delete mode 100644 .idea/misc.xml delete mode 100644 .idea/modules.xml delete mode 100644 .idea/vcs.xml delete mode 100644 .idea/workspace.xml delete mode 100644 Lab-4.iml delete mode 100644 changingDegrees/changingDegrees.iml rename {src => jackhinze/src}/changingTemp.java (100%) rename {src => jackhinze/src}/recursive.java (100%) rename {src => jackhinze/src}/reverseString.java (100%) rename {src => jackhinze/src}/sideLengths.java (100%) rename {src => jackhinze/src}/temperature.java (100%) delete mode 100644 out/production/Lab-4/changingTemp.class delete mode 100644 out/production/Lab-4/recursive.class delete mode 100644 out/production/Lab-4/reverseString.class delete mode 100644 out/production/Lab-4/sideLengths.class delete mode 100644 out/production/Lab-4/temperature.class diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index 0548357..0000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index 266a356..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 35eb1dd..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml deleted file mode 100644 index 7a4923c..0000000 --- a/.idea/workspace.xml +++ /dev/null @@ -1,429 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1521679485349 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/LAB-4.iml b/LAB-4.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/LAB-4.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/out/production/LAB-4/Reverse_String.class b/out/production/LAB-4/Reverse_String.class new file mode 100644 index 0000000000000000000000000000000000000000..c8fe58b3d9f42744858e2075540a39f89865600e GIT binary patch literal 1401 zcma)5O;Zy=5Pg$uvSG7;5+f+6h^PUH@dH0l6cI(E2`EtzJy=UJ!s@a~Z8m-!t@4+6 z@v0tzrItUy^5(zsAimke3K|a{c4oHcb@%JnJzsx*`~qMc_YEX)+`tK(jA2~ur*xb) z5K+bm&Zy%e(T8ZdA{oi4^OW#AH~mF2R59?a;tqT{MSbkcTh|Dr%RHL@t6 z&6G=0pgU)~a;~<%BE37-ibG3Ju3WU7Ma#3*f77V>Yj#y&TW&!i zfl*IZYmP5q6v{QPC}(Y@QsPe`j;az&>_C!)OkBft0hq|*hCuJ%5c8lmgz`$)n5z7gT09s*DPujTN;V zZ*hiOj)_1gx@|FY2rCNYsD%HjT)iY$KKHSoZ!N*+3xpxmAaLEuzYKTI0wSXu5bt;h zp_gkkFow~`v)KS(7k2Z{P;I0|Ie+6Lk8qzJts^wq6VCU4j?9HmYe}vDHPY#%HrlV1 zl3J+_?d~T;mNyU`t3&6-cpb4iI`XeH@n-Y;*jok(2Z@Ie<2lN(I!`es?;uwL2N1^u z&r|3MNR1QGjbqq@z0ec|?86}U2qszUUJ{HEKSW!IF;3Bcm>CWd(TmU~T_ZXU34S^b zv;H3xq5~<6G%I^aunK$d6O85eh;P8my+>zHR~_9)>e!Ya`+)6pw4`Zh$+nx!L8ar= vIzg5D$bAnp4pTfOTXWM!6#mwhEl0>9@g<~?Qb8M#NrQW#ZfPh9*tm5um)2=$pf|{Gy6!;w@M@ZkxD+y8^`_|&h zGpbR?S0=tjOJF+Ab3B%bReYmR)=b>Pw*pH;h^poOZ0$JRNLp^+ay_dmyL~t6TYg~G zmCX%DhPu-Uq}P#Dm{`Ys9S=-=hwn|C!+C)d|8LFp$n9>*fR(QvOjF^R_yIpE_7htk zODu5%_jyZWrLz(HsCPCV%651_)q2ur`5Y2IqMiXq_-)scvP~7Ku5i2@pE?VaLjRY^>yY<=nv-{XZZh~j(__k zgc?TjGnC6*1=rMtJ&51ANkF|0=~$V-+uWPO19%7Xlnga4)F|g)p&`k&a`HEF;6qY^ zR3)7v)k*W`3rIXFKx^-Er)?FGrj+q_CwFO0#?f-b0cnnL&mqG{%!nh;#Ap@RDACS1 zxPS%5ewX_cl5-PTOkfcgN9nvIgih1Fr!aEI1~8u^yZ#iDdwh5n2AFCn{WSFya>)Vm z6|Jb*&rrCWqUAY?>wB2Vofu$tHZ{N-xs%)#wE<2IFh{Tb?wnmUGV&JTuFj_F|JOdexChXpod`ns*fN22bx1h AfdBvi literal 0 HcmV?d00001 diff --git a/out/production/LAB-4/Triangle_Length.class b/out/production/LAB-4/Triangle_Length.class new file mode 100644 index 0000000000000000000000000000000000000000..ad63c799442ee9bad9517fa45f0125d0c62d33c9 GIT binary patch literal 2408 zcmb_cTXPd-7=AY0Znn!dP1DnYhzn{-&$fUXi-=H=)onVjC*1s4n4mzofNnPx*xGA0Ib(ZrM-AL62dfz}q@sC(5F zm+6g`Scz&fjCQb^)I~ZG9T04IGO)H2y0(c3u^e>{)2Pic8nqo}Xkru3xC||=Qjk6J zJHNc{mSY8(Bi3CfUgJR40_wJN>}BZH=xInPHJ?yT`U~4p?6QF=naaM#TzSDnQhAQ0 z>uhkcto(@&GOukxopz5D?{kvlL&csXD%xveb3AJzR27H&hFiD5@ZGI=Ca5Q?&o2Wr z(41P$^;Z;(ouu>HGVOPQ!JlQ$|M0BGL1X>66ZzK#r*WR2vvbL(u^oym2+#ARCwMEo z+lOC4c|nlE1)f^MOyO-}vmtu{vcFQH;p7b6fF?Aw(}{+Dq#2ivVRR&pAMvJfb>BCTdOO3VE%GyiZ;ukq?L@5w3A-B9=PHj#yg$KXjy*Ve~PP{-lC7EGBaL zSRzt=`HexU-{{CmiAeaZ9g*-`J5nGo%Wi*!=|&>TPt@zBhnIWMmR=(L3VQJ+I&#Ji zPL1rqoE4&TpD3t8WezA!sICJ_7b<%|8A5d*P-fmzEzQz*kt<{b8n+a literal 0 HcmV?d00001 diff --git a/out/production/LAB-4/factorial.class b/out/production/LAB-4/factorial.class new file mode 100644 index 0000000000000000000000000000000000000000..7b0a08d9b232829975e45d988d91837b557c2995 GIT binary patch literal 1206 zcmaJ=?M@Rx6g|_gZMO@QwiK*Yi}+DMs2?aOA1WwXEMQVXLQG7ScEQDVw`sRV9>D)T z0x!T1`B97{K7bEpJhLqngwRdz%)N8x+;h*&{Q3LqH-HJOs)%FM&$;}0RK##k!B`06 z$g1$;zBCV{`%u9n6)Hx9n2_URX`TczDaR>ko~n3;X$3P1W(5K>re!*F0^ZEwx(~E8HwiYqF!FtYo_$uL7(%({9l~XD z!%Hk;xljTkC(u=J^y24by?P8%(M?Mrk@=9{(ZA@~vTki>3r@|nwx?Z6dTpCUVizn6 z`0Km%9CycBdmD~f&K8QgWf?V637=3gN-Rz$YQb*QipHWTd+I)+JuWM2=tDw73fBaB zT`H&H6wGOOju$fPrG|MdXn2L!0{#E9o^P1tl2K!)i^sC0?X9$iMZA&bEp-X@}*-dapz2vd*UPjCFh*I*Is+C)!moJs z3#PMQQjAusS{~&IG?sj`{Pu~t8z|DyL;Eyz2Dgu)<_tW*yhJ}Vuz*F{>`x z&9V0UfZ6O@(=wMETf==GJ@wkLcNGcMn z)0ln!4Y3yoP>!G$51_Ti50Mx+gg%}5uCLT{6S3%+l2$Sw(JfI8M0Lan8&e0~* RXy}s%@S9u${X|4C@D~BR=6e7D literal 0 HcmV?d00001 diff --git a/src/Reverse_String.java b/src/Reverse_String.java new file mode 100644 index 0000000..c86c23d --- /dev/null +++ b/src/Reverse_String.java @@ -0,0 +1,28 @@ +import java.util.Scanner; + +public class Reverse_String { + private static String reVerse(String WoRd){ + + int x=WoRd.length(); + String itSflip=""; + char flip[] = new char[x]; + for (int i=0; i Date: Thu, 22 Mar 2018 15:25:08 -0500 Subject: [PATCH 16/39] Lab 4 --- {.idea => Skylar Galloway Lab 4/.idea}/misc.xml | 0 {.idea => Skylar Galloway Lab 4/.idea}/modules.xml | 0 {.idea => Skylar Galloway Lab 4/.idea}/vcs.xml | 0 .../.idea}/workspace.xml | 0 LAB-4.iml => Skylar Galloway Lab 4/LAB-4.iml | 0 README.md => Skylar Galloway Lab 4/README.md | 0 .../out}/production/LAB-4/Reverse_String.class | Bin .../out}/production/LAB-4/Temperature.class | Bin .../out}/production/LAB-4/Triangle_Length.class | Bin .../out}/production/LAB-4/factorial.class | Bin .../out}/production/LAB-4/sorting.class | Bin .../src}/Reverse_String.java | 0 {src => Skylar Galloway Lab 4/src}/Temperature.java | 0 .../src}/Triangle_Length.java | 0 {src => Skylar Galloway Lab 4/src}/factorial.java | 0 {src => Skylar Galloway Lab 4/src}/grouping.java | 0 {src => Skylar Galloway Lab 4/src}/sorting.java | 0 17 files changed, 0 insertions(+), 0 deletions(-) rename {.idea => Skylar Galloway Lab 4/.idea}/misc.xml (100%) rename {.idea => Skylar Galloway Lab 4/.idea}/modules.xml (100%) rename {.idea => Skylar Galloway Lab 4/.idea}/vcs.xml (100%) rename {.idea => Skylar Galloway Lab 4/.idea}/workspace.xml (100%) rename LAB-4.iml => Skylar Galloway Lab 4/LAB-4.iml (100%) rename README.md => Skylar Galloway Lab 4/README.md (100%) rename {out => Skylar Galloway Lab 4/out}/production/LAB-4/Reverse_String.class (100%) rename {out => Skylar Galloway Lab 4/out}/production/LAB-4/Temperature.class (100%) rename {out => Skylar Galloway Lab 4/out}/production/LAB-4/Triangle_Length.class (100%) rename {out => Skylar Galloway Lab 4/out}/production/LAB-4/factorial.class (100%) rename {out => Skylar Galloway Lab 4/out}/production/LAB-4/sorting.class (100%) rename {src => Skylar Galloway Lab 4/src}/Reverse_String.java (100%) rename {src => Skylar Galloway Lab 4/src}/Temperature.java (100%) rename {src => Skylar Galloway Lab 4/src}/Triangle_Length.java (100%) rename {src => Skylar Galloway Lab 4/src}/factorial.java (100%) rename {src => Skylar Galloway Lab 4/src}/grouping.java (100%) rename {src => Skylar Galloway Lab 4/src}/sorting.java (100%) diff --git a/.idea/misc.xml b/Skylar Galloway Lab 4/.idea/misc.xml similarity index 100% rename from .idea/misc.xml rename to Skylar Galloway Lab 4/.idea/misc.xml diff --git a/.idea/modules.xml b/Skylar Galloway Lab 4/.idea/modules.xml similarity index 100% rename from .idea/modules.xml rename to Skylar Galloway Lab 4/.idea/modules.xml diff --git a/.idea/vcs.xml b/Skylar Galloway Lab 4/.idea/vcs.xml similarity index 100% rename from .idea/vcs.xml rename to Skylar Galloway Lab 4/.idea/vcs.xml diff --git a/.idea/workspace.xml b/Skylar Galloway Lab 4/.idea/workspace.xml similarity index 100% rename from .idea/workspace.xml rename to Skylar Galloway Lab 4/.idea/workspace.xml diff --git a/LAB-4.iml b/Skylar Galloway Lab 4/LAB-4.iml similarity index 100% rename from LAB-4.iml rename to Skylar Galloway Lab 4/LAB-4.iml diff --git a/README.md b/Skylar Galloway Lab 4/README.md similarity index 100% rename from README.md rename to Skylar Galloway Lab 4/README.md diff --git a/out/production/LAB-4/Reverse_String.class b/Skylar Galloway Lab 4/out/production/LAB-4/Reverse_String.class similarity index 100% rename from out/production/LAB-4/Reverse_String.class rename to Skylar Galloway Lab 4/out/production/LAB-4/Reverse_String.class diff --git a/out/production/LAB-4/Temperature.class b/Skylar Galloway Lab 4/out/production/LAB-4/Temperature.class similarity index 100% rename from out/production/LAB-4/Temperature.class rename to Skylar Galloway Lab 4/out/production/LAB-4/Temperature.class diff --git a/out/production/LAB-4/Triangle_Length.class b/Skylar Galloway Lab 4/out/production/LAB-4/Triangle_Length.class similarity index 100% rename from out/production/LAB-4/Triangle_Length.class rename to Skylar Galloway Lab 4/out/production/LAB-4/Triangle_Length.class diff --git a/out/production/LAB-4/factorial.class b/Skylar Galloway Lab 4/out/production/LAB-4/factorial.class similarity index 100% rename from out/production/LAB-4/factorial.class rename to Skylar Galloway Lab 4/out/production/LAB-4/factorial.class diff --git a/out/production/LAB-4/sorting.class b/Skylar Galloway Lab 4/out/production/LAB-4/sorting.class similarity index 100% rename from out/production/LAB-4/sorting.class rename to Skylar Galloway Lab 4/out/production/LAB-4/sorting.class diff --git a/src/Reverse_String.java b/Skylar Galloway Lab 4/src/Reverse_String.java similarity index 100% rename from src/Reverse_String.java rename to Skylar Galloway Lab 4/src/Reverse_String.java diff --git a/src/Temperature.java b/Skylar Galloway Lab 4/src/Temperature.java similarity index 100% rename from src/Temperature.java rename to Skylar Galloway Lab 4/src/Temperature.java diff --git a/src/Triangle_Length.java b/Skylar Galloway Lab 4/src/Triangle_Length.java similarity index 100% rename from src/Triangle_Length.java rename to Skylar Galloway Lab 4/src/Triangle_Length.java diff --git a/src/factorial.java b/Skylar Galloway Lab 4/src/factorial.java similarity index 100% rename from src/factorial.java rename to Skylar Galloway Lab 4/src/factorial.java diff --git a/src/grouping.java b/Skylar Galloway Lab 4/src/grouping.java similarity index 100% rename from src/grouping.java rename to Skylar Galloway Lab 4/src/grouping.java diff --git a/src/sorting.java b/Skylar Galloway Lab 4/src/sorting.java similarity index 100% rename from src/sorting.java rename to Skylar Galloway Lab 4/src/sorting.java From 2200a0a97abb8160b6de2899b5f30e84e46bc071 Mon Sep 17 00:00:00 2001 From: SkylarGalloway Date: Thu, 22 Mar 2018 15:27:42 -0500 Subject: [PATCH 17/39] Lab 4 --- Skylar Galloway Lab 4/README.md => README.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Skylar Galloway Lab 4/README.md => README.md (100%) diff --git a/Skylar Galloway Lab 4/README.md b/README.md similarity index 100% rename from Skylar Galloway Lab 4/README.md rename to README.md From fac7b78610c7b10fbbc7c4e1ff6fe3169cde35cc Mon Sep 17 00:00:00 2001 From: SkylarGalloway Date: Thu, 22 Mar 2018 15:32:06 -0500 Subject: [PATCH 18/39] Lab 4 --- .idea/LAB-4.iml | 9 + .idea/modules.xml | 8 + .idea/vcs.xml | 6 + .idea/workspace.xml | 219 ++++++++++++++++++++++++ Skylar Galloway Lab 4/src/grouping.java | 25 --- 5 files changed, 242 insertions(+), 25 deletions(-) create mode 100644 .idea/LAB-4.iml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 .idea/workspace.xml delete mode 100644 Skylar Galloway Lab 4/src/grouping.java diff --git a/.idea/LAB-4.iml b/.idea/LAB-4.iml new file mode 100644 index 0000000..d6ebd48 --- /dev/null +++ b/.idea/LAB-4.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..ce977c9 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..1e6ebf2 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,219 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1521750646002 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file From aff05621741519d62ed83a64a5a23c9c8b89b76a Mon Sep 17 00:00:00 2001 From: jaredpohlmann Date: Sun, 25 Mar 2018 21:50:09 -0500 Subject: [PATCH 20/39] My Masterpiece --- Lab4/.idea/misc.xml | 6 + Lab4/.idea/modules.xml | 8 + Lab4/.idea/workspace.xml | 451 ++++++++++++++++++ Lab4/Lab4.iml | 11 + Lab4/out/production/Lab4/ReverseString.class | Bin 0 -> 1201 bytes Lab4/out/production/Lab4/Sorting.class | Bin 0 -> 1269 bytes Lab4/out/production/Lab4/Temperature.class | Bin 0 -> 881 bytes Lab4/out/production/Lab4/Triangle.class | Bin 0 -> 1878 bytes .../production/Lab4/recursiveFactorial.class | Bin 0 -> 1289 bytes Lab4/src/ReverseString.java | 20 + Lab4/src/Sorting.java | 29 ++ Lab4/src/Temperature.java | 15 + Lab4/src/Triangle.java | 33 ++ Lab4/src/recursiveFactorial.java | 18 + 14 files changed, 591 insertions(+) create mode 100644 Lab4/.idea/misc.xml create mode 100644 Lab4/.idea/modules.xml create mode 100644 Lab4/.idea/workspace.xml create mode 100644 Lab4/Lab4.iml create mode 100644 Lab4/out/production/Lab4/ReverseString.class create mode 100644 Lab4/out/production/Lab4/Sorting.class create mode 100644 Lab4/out/production/Lab4/Temperature.class create mode 100644 Lab4/out/production/Lab4/Triangle.class create mode 100644 Lab4/out/production/Lab4/recursiveFactorial.class create mode 100644 Lab4/src/ReverseString.java create mode 100644 Lab4/src/Sorting.java create mode 100644 Lab4/src/Temperature.java create mode 100644 Lab4/src/Triangle.java create mode 100644 Lab4/src/recursiveFactorial.java diff --git a/Lab4/.idea/misc.xml b/Lab4/.idea/misc.xml new file mode 100644 index 0000000..fc67c28 --- /dev/null +++ b/Lab4/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Lab4/.idea/modules.xml b/Lab4/.idea/modules.xml new file mode 100644 index 0000000..ffcf9a6 --- /dev/null +++ b/Lab4/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/Lab4/.idea/workspace.xml b/Lab4/.idea/workspace.xml new file mode 100644 index 0000000..9224323 --- /dev/null +++ b/Lab4/.idea/workspace.xml @@ -0,0 +1,451 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1521679190301 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Lab4/Lab4.iml b/Lab4/Lab4.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/Lab4/Lab4.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/Lab4/out/production/Lab4/ReverseString.class b/Lab4/out/production/Lab4/ReverseString.class new file mode 100644 index 0000000000000000000000000000000000000000..5faa8def9f287676038087d10b6193ce39061dae GIT binary patch literal 1201 zcmZuw+fEZv6kVs&c4#|=Lb)l_3kvp1Mez!vSVe0J8mlCPr=d*BU^^w#DUo--#1|8v zl!s!(_yK;4U*H3}&a{yh$YjoCpS{;!d+l?69ew`^U=}Ze=tW9JI)DtOgYY0LhwDLv zF(Yj^g1Cv$`e$2P6<9AT=uX$cI+*9+VFuAZ&vRyo@~ zb<^l}nSs$Wjs<-6y?UO}(N=83F)P_(Nw+M+CUmIoCdpen4M);Ch0mI7qu!|SG;DYB z5}1mgc2Ar(2?&#ao=6qLDmz;OY8y$wvz`;^?E;=*rlO;l-Yx4pt}-en1%ky|!!8+1 zrYm2ULerA8hCW0D`rQILi&QbEVIB{p!-9r~c%njzW91B zv5L!l0=;}BfCAo8L^$?ym*p%t`;rF`U%BvLfTQ0vDu{BewHz>rA?^Yg#t1DkxIr*4 z=hz`UYx__R;4P$@@GYmm!N0N(HPb}TG3YRSboTMV`I%oOTo1+xD3c^xKp4e2?m{GS z9%D=sA@6a-NK1NO;7VZxFF>2ZXW~f;nPd}z`LQ3qWo02Y_7OwrSaQs}8QW|k`1XS$ zKK=cDh|pU40NP6C3j-9l&I_a=)A?9sfTD=Ihf237(%*3nU(4mE?pHeu4#u|E4HzWAy> zD5H)a;Ai+5KB(&?jOfTi&&k<)ueH~{^xMx*Ujbaenu#8iJ8%YPvp8qsJT4fxsNPd1 zbX-!$s*$WcTanvwH3ml5Is;<@#%?)r8I|$3z71u3pq6e1f1$%f$w_q>Py z3?L06(Z{o&uQG4JTQ7Ztc*l-o&uD_y+#^?h;& z=Csa$A)Ns#u#>lvmX4)Ovl1mR%hWlZ1xgx*i6T02mSV4<3k!@{n)#2-@BOrl%~bv4#k28 UlJGdaDqP1Y3Q=R5jB%%b1I+0BB>(^b literal 0 HcmV?d00001 diff --git a/Lab4/out/production/Lab4/Temperature.class b/Lab4/out/production/Lab4/Temperature.class new file mode 100644 index 0000000000000000000000000000000000000000..e21ebf3020b3ae026db64b717188bce7b689b0cd GIT binary patch literal 881 zcmZuwU2hUm5IuKU*aC~CAXv3k`=vm&_)$M=j1^1Lgs2G(iScQ{3oco9$+Fwnf8#GO zu@9}$#2?^~GM>9j0uOzeJNL}YIWx0&|Ni^+2f!{~WRSy#fz33wa61DHca*7QV4|w9 zS_a#=tG{8k{`wouejYGz&%lmA>ZR@4!7G78rP>kD8{TIru-LL)`7RuFrGI2~9U_I6 z*R!0C<=g5$1@+*IJrT&Yj^t=8eJcokxkr+bWxE39%BR-QI=1SL%N?XP9Tu&H$3-P`V-q@pDeK5GHoyPd$MV(Ir4L@?x^leT*9KjQq<|Znt{5B`*@%d9-4TBT@yEO)5K#u zG4RyHGd!pE93RSfWiuU;+jDW}JW`F7uW~31uRxI3$_QbM-g0kEckSLvL-LA$hR*6RGAY zjIA>)%t*^fGC7GX>GOP>B`jctgi53q6X6P$dCL;JiffTf4%eBbMcJ$L60G1CnznGj vh{lTCdLi8}WQK*T`*!0yfp`w}k0`nJvL@pg>AONGMI5q;5?}W0yeFm#`Ns#z?L#2mA+` zpVMhR0MpF$2lPjEdR7MPG)zAvn&Ix*yZ3SK-Mi-RfByUnz;)CNq_LF5ZQMy<*}xZA z(eb6+-!%}&Jt^`A#&BPX2U0xL@s$A+O9>R@`n43_Bv6#=s6$%E6t|uO~_O?V&cDCx&q>6sUsjoYMEB7Z#HLST!1xB$< zwYO6jON_ARxSoR1?6cyo^W2%K^I)bF2ClcW6lHLN9r}!%bF3iVY&Q$^9_jeDLbpCs zsyLn}0)|dL7eVM&#O#IwrO>nA?BY3|o!ZUy=;wR%^VI8sXtwI%EFz&$~w(Hs3ez0dx9oX$Dd*2Ofw(kl4*}|#R>^g5|TF1JHr(jLP zQImTcWnvTG%N);4{D2=#%wo>O4JmGd6^{M)TJE;odQ}7pta44*CDvdUg|`#dnzj=N z+r&@!S&CoSEAAX@>8O~fLYUabj)KH#c?yQQ!PmBSMJ0SqRcbdwvBz2STRgBjm+bm8 zk2xJ7XGA!AyylT8#_MXfxgm|}91bgc{$%yZx$6ckc#T#!X!^v7VS5kcMCzV62n!w= z@eOdSG^f!JURA-h^Af$0`=os&KAFwu{^vLm`ki;6;9~YoLk1Y=c5l@QYb4b0_xUQa z`MjJywfSp6mMYWa@jhRDI(pP`C~~4GC%B*Cs&I{8IfC*BK_4b5wMZF5hS=;F;1Vu# zmxRq=k+X6iDh8-~@e+Nh*df$ch;P1xb_Bh6^$>|WQY=fcphhwtNiCAPrA}J$%rTOS z2}`q7OSj_3Fcu9OG)BG{-ot_fmNIMoHi?@zluR@UCE#G*Dy^MtGGprY4X_M`WcZ) zUVL+%mZC{Njd?TU6V(?NF>(xRGINS5i)vau#^~=f=-iXRRgxUTXhi-x3D6nyOe?<( z|36Gc_m?3ZNnYv}h+_27n0T7xlk&a43xRP4n|Lb%H%56P^dqC-W(ZT54#R`29BzdX z#cgSu3F8iC72FLYgp3^S1#w@_59IJLh&cs01@i)ddBZg9MFDSWazntkQZ4HOeFekR z*PY!h-Fl;KRcMJ7swJ(mp;?C9w~Rjfy-^n!C|G*QvFgU2zN(e%Dq|`+YVB%Tul_dd>T83&mYL>Yp)Fqb7qY5}=jn{96fVwVH00 z1(Myau+=GoPIWuqapmp!pj|!f$v~>h+rSn6seb-Czzenr+0#2UUuUKuDgiDaA84T#)TF1$qst{AfX^7elt>Fk~R<0{{R%@ B8r}c^ literal 0 HcmV?d00001 diff --git a/Lab4/src/ReverseString.java b/Lab4/src/ReverseString.java new file mode 100644 index 0000000..ea1f821 --- /dev/null +++ b/Lab4/src/ReverseString.java @@ -0,0 +1,20 @@ +import java.util.Scanner; + +public class ReverseString { + public static void main(String[]args){ + Scanner sysIn = new Scanner(System.in); + String stringInput= sysIn.next(); + String result = reverseString(stringInput); + System.out.println(result); + } + public static String reverseString (String stringInput){ + int length= stringInput.length(); + char[] reverse = new char[length]; + for(int i = 0; i < length; i++ ){ + reverse[i]= stringInput.charAt(length-1-i); + } + String reverseString1= new String(reverse); + return reverseString1; + + } +} diff --git a/Lab4/src/Sorting.java b/Lab4/src/Sorting.java new file mode 100644 index 0000000..c833582 --- /dev/null +++ b/Lab4/src/Sorting.java @@ -0,0 +1,29 @@ +import java.util.Arrays; +import java.util.Scanner; + +public class Sorting { + public static void main(String[]args){ + System.out.println("What is your List Size?"); + Scanner sysIn = new Scanner(System.in); + int listSize = sysIn.nextInt(); + int[] sorter= new int[listSize]; + Scanner inputNum = new Scanner(System.in); + for(int i=0; i1;i-- ){ + int number2= i-1; + result +="*"+number2; + } + return result; + } +} From 648748817fce9b0246a650703ec94bb6ffec5c2f Mon Sep 17 00:00:00 2001 From: jaredpohlmann <35316403+jaredpohlmann@users.noreply.github.com> Date: Sun, 25 Mar 2018 21:55:35 -0500 Subject: [PATCH 21/39] Create JPohlmann --- JPohlmann | 1 + 1 file changed, 1 insertion(+) create mode 100644 JPohlmann diff --git a/JPohlmann b/JPohlmann new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/JPohlmann @@ -0,0 +1 @@ + From baa7fb17116edd1d372f33643d5eae5a0318d9cf Mon Sep 17 00:00:00 2001 From: jaredpohlmann <35316403+jaredpohlmann@users.noreply.github.com> Date: Sun, 25 Mar 2018 21:57:08 -0500 Subject: [PATCH 22/39] Delete JPohlmann --- JPohlmann | 1 - 1 file changed, 1 deletion(-) delete mode 100644 JPohlmann diff --git a/JPohlmann b/JPohlmann deleted file mode 100644 index 8b13789..0000000 --- a/JPohlmann +++ /dev/null @@ -1 +0,0 @@ - From d28cecc7b4ed62c69f7acf4dfebd315f7f9c37af Mon Sep 17 00:00:00 2001 From: jaredpohlmann Date: Sun, 25 Mar 2018 21:59:44 -0500 Subject: [PATCH 23/39] Master --- {Lab4 => JPohlmann/Lab4}/.idea/misc.xml | 0 {Lab4 => JPohlmann/Lab4}/.idea/modules.xml | 0 {Lab4 => JPohlmann/Lab4}/.idea/workspace.xml | 0 {Lab4 => JPohlmann/Lab4}/Lab4.iml | 0 .../Lab4}/out/production/Lab4/ReverseString.class | Bin .../Lab4}/out/production/Lab4/Sorting.class | Bin .../Lab4}/out/production/Lab4/Temperature.class | Bin .../Lab4}/out/production/Lab4/Triangle.class | Bin .../out/production/Lab4/recursiveFactorial.class | Bin {Lab4 => JPohlmann/Lab4}/src/ReverseString.java | 0 {Lab4 => JPohlmann/Lab4}/src/Sorting.java | 0 {Lab4 => JPohlmann/Lab4}/src/Temperature.java | 0 {Lab4 => JPohlmann/Lab4}/src/Triangle.java | 0 .../Lab4}/src/recursiveFactorial.java | 0 14 files changed, 0 insertions(+), 0 deletions(-) rename {Lab4 => JPohlmann/Lab4}/.idea/misc.xml (100%) rename {Lab4 => JPohlmann/Lab4}/.idea/modules.xml (100%) rename {Lab4 => JPohlmann/Lab4}/.idea/workspace.xml (100%) rename {Lab4 => JPohlmann/Lab4}/Lab4.iml (100%) rename {Lab4 => JPohlmann/Lab4}/out/production/Lab4/ReverseString.class (100%) rename {Lab4 => JPohlmann/Lab4}/out/production/Lab4/Sorting.class (100%) rename {Lab4 => JPohlmann/Lab4}/out/production/Lab4/Temperature.class (100%) rename {Lab4 => JPohlmann/Lab4}/out/production/Lab4/Triangle.class (100%) rename {Lab4 => JPohlmann/Lab4}/out/production/Lab4/recursiveFactorial.class (100%) rename {Lab4 => JPohlmann/Lab4}/src/ReverseString.java (100%) rename {Lab4 => JPohlmann/Lab4}/src/Sorting.java (100%) rename {Lab4 => JPohlmann/Lab4}/src/Temperature.java (100%) rename {Lab4 => JPohlmann/Lab4}/src/Triangle.java (100%) rename {Lab4 => JPohlmann/Lab4}/src/recursiveFactorial.java (100%) diff --git a/Lab4/.idea/misc.xml b/JPohlmann/Lab4/.idea/misc.xml similarity index 100% rename from Lab4/.idea/misc.xml rename to JPohlmann/Lab4/.idea/misc.xml diff --git a/Lab4/.idea/modules.xml b/JPohlmann/Lab4/.idea/modules.xml similarity index 100% rename from Lab4/.idea/modules.xml rename to JPohlmann/Lab4/.idea/modules.xml diff --git a/Lab4/.idea/workspace.xml b/JPohlmann/Lab4/.idea/workspace.xml similarity index 100% rename from Lab4/.idea/workspace.xml rename to JPohlmann/Lab4/.idea/workspace.xml diff --git a/Lab4/Lab4.iml b/JPohlmann/Lab4/Lab4.iml similarity index 100% rename from Lab4/Lab4.iml rename to JPohlmann/Lab4/Lab4.iml diff --git a/Lab4/out/production/Lab4/ReverseString.class b/JPohlmann/Lab4/out/production/Lab4/ReverseString.class similarity index 100% rename from Lab4/out/production/Lab4/ReverseString.class rename to JPohlmann/Lab4/out/production/Lab4/ReverseString.class diff --git a/Lab4/out/production/Lab4/Sorting.class b/JPohlmann/Lab4/out/production/Lab4/Sorting.class similarity index 100% rename from Lab4/out/production/Lab4/Sorting.class rename to JPohlmann/Lab4/out/production/Lab4/Sorting.class diff --git a/Lab4/out/production/Lab4/Temperature.class b/JPohlmann/Lab4/out/production/Lab4/Temperature.class similarity index 100% rename from Lab4/out/production/Lab4/Temperature.class rename to JPohlmann/Lab4/out/production/Lab4/Temperature.class diff --git a/Lab4/out/production/Lab4/Triangle.class b/JPohlmann/Lab4/out/production/Lab4/Triangle.class similarity index 100% rename from Lab4/out/production/Lab4/Triangle.class rename to JPohlmann/Lab4/out/production/Lab4/Triangle.class diff --git a/Lab4/out/production/Lab4/recursiveFactorial.class b/JPohlmann/Lab4/out/production/Lab4/recursiveFactorial.class similarity index 100% rename from Lab4/out/production/Lab4/recursiveFactorial.class rename to JPohlmann/Lab4/out/production/Lab4/recursiveFactorial.class diff --git a/Lab4/src/ReverseString.java b/JPohlmann/Lab4/src/ReverseString.java similarity index 100% rename from Lab4/src/ReverseString.java rename to JPohlmann/Lab4/src/ReverseString.java diff --git a/Lab4/src/Sorting.java b/JPohlmann/Lab4/src/Sorting.java similarity index 100% rename from Lab4/src/Sorting.java rename to JPohlmann/Lab4/src/Sorting.java diff --git a/Lab4/src/Temperature.java b/JPohlmann/Lab4/src/Temperature.java similarity index 100% rename from Lab4/src/Temperature.java rename to JPohlmann/Lab4/src/Temperature.java diff --git a/Lab4/src/Triangle.java b/JPohlmann/Lab4/src/Triangle.java similarity index 100% rename from Lab4/src/Triangle.java rename to JPohlmann/Lab4/src/Triangle.java diff --git a/Lab4/src/recursiveFactorial.java b/JPohlmann/Lab4/src/recursiveFactorial.java similarity index 100% rename from Lab4/src/recursiveFactorial.java rename to JPohlmann/Lab4/src/recursiveFactorial.java From 5eda7db0e6037fb183aa0d43db3c7c239badf900 Mon Sep 17 00:00:00 2001 From: dburrigh Date: Mon, 26 Mar 2018 14:51:31 -0500 Subject: [PATCH 24/39] Still need to Sort --- dburrigh/.idea/workspace.xml | 173 +++++++++++++----- dburrigh/out/production/dburrigh/Lab.class | Bin 619 -> 0 bytes .../out/production/dburrigh/Reverse.class | Bin 246 -> 934 bytes .../out/production/dburrigh/Sorting.class | Bin 0 -> 364 bytes .../out/production/dburrigh/Temperature.class | Bin 841 -> 870 bytes .../out/production/dburrigh/Triangle.class | Bin 0 -> 1875 bytes dburrigh/src/Reverse.java | 21 +++ dburrigh/src/Sorting.java | 30 +++ dburrigh/src/Temperature.java | 20 +- dburrigh/src/Triangle.java | 45 +++-- 10 files changed, 221 insertions(+), 68 deletions(-) delete mode 100644 dburrigh/out/production/dburrigh/Lab.class create mode 100644 dburrigh/out/production/dburrigh/Sorting.class create mode 100644 dburrigh/out/production/dburrigh/Triangle.class create mode 100644 dburrigh/src/Sorting.java diff --git a/dburrigh/.idea/workspace.xml b/dburrigh/.idea/workspace.xml index 5306ff5..66d87d8 100644 --- a/dburrigh/.idea/workspace.xml +++ b/dburrigh/.idea/workspace.xml @@ -11,12 +11,12 @@ - + + + + - + + - - - - + + + + + @@ -301,7 +330,7 @@ - + @@ -320,10 +349,44 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -349,6 +412,14 @@ + + + + + + + + @@ -360,23 +431,25 @@ - + - + - - - + + + + + - - + + diff --git a/dburrigh/out/production/dburrigh/Recursive1.class b/dburrigh/out/production/dburrigh/Recursive1.class new file mode 100644 index 0000000000000000000000000000000000000000..77650571963bc45cbe5fd19a9bd5e008b277ff1d GIT binary patch literal 1263 zcmZuw+fEZv6kVscX{UpfmYb!BH?&Zpq9`gi1x2d`jWs01r=d)6u$?y386xj~iiuAq z%0n@d_yK-{Ut*%T&a`Au`m*PoeOY_$wa@(c^X)r;X{@Q}K~BN77$z{OB7nR!*Ht7i zC4Dzk+{CnkTPkA6MR8kxXQa6!&D|*ODVS9-ClHx4Ez?;L2xiCD1wzZUEkmHYXj;aa zTirD5SNdj!o@B9B)+_6}ZOVJw8FJp34FRqA(kQ!j!`wBdW{FYNO-rCZ`?|QJ@9O!A zZf)mFj%`}ovtAF~-ey&*Ls%f(*lQG6oody(j#5;`Q!9x5FA0n`^kKh49#at8N`OH^D*7l)HG!gYd`w?bx6mfzi zpt4aM8N$mZ<1HWz(F6LE7{)oaNuUcOIPcMla*B&=smiC;rtpaoNn!C2v5f<$$#@f5 zx{0nP&J@%0na~G}W%8unZ8T5BpNHjIwCZnkZ)+uU6c_HCUWwaq_-j(oJ_w zd4Wwf{eXT;zrlLmg&8RwhWF#V=RD_m&N=(*`1?-)vv?800J0jUg2-Vy1RrMPk`JLD z*QM=72sd#ngfM31a$Cb4x!=`rPs4qIz=CC4?xKK_&a4Tjg~paCFj%r|bG239G@Uob zW{sBNQlnzj)(ppz_pVWOx2>i?u=Lv8Go7Y6Pk_2%*#hzOMrp^`Gx9aVuI9_GW7*Yt zFM;7y84^9?S-{`iZx$IH?ZmcRtClZU4BIvxLi;Uyx8+JIr;w?`F`KO#Up1%0MPM?0 z+A(w5M9!;5of1V+z_(H0!6IIx<$Brr%dSy*w_@yinl(%agvyPUQ!$q}6o(n|&mnZ|tPwQs; z$K&PZj#;7f-k|-aYu2epHY3&%Z8h>mSwVKgH0mtqXtzNBJ$P-h&G$qcNuOCTg~jQG zeZ}^kz(zgp1nn`id%Mz!QD=39lNYF&cGcbX29ZJom2JaWqQ9ChX4n&ddZUn8!)4C( z04E<%z%fOH>kw~w?t;5NdkFEB2OoyH20WvJD9?Jw0V9a<7DOE9XpzA!f~nk-NARs5 zKskh3nrg$plKY0h>H)OrHu_FLO%WC>jh{scGM!8vq1JIGOi^i$lw=iVJ83*JEElpYX^JF*m?WJE i5)9)Ce<|YT_`gc3D&M3S-!Z~M!!;3SK$<2WGJgS=KIb9; delta 454 zcmYk3yG|QH6o$Xq@iN}s;bw!m6L7#GjuUR?W@zYm0Sd~9iUv_YheVT#2BCci=psk~ zQ6ljGJVbZ_`gFiQhJsn?%$)z6^UtT9)8xXf-9P=g1Db54WK1PYQ!DZ*C1ob%Gxd}r zUqWa&zJ~pqW7aWuzIB$5n8hUC+dnuuG?em|*)(JMu^FH7bUNle3oIJ!?)O8_0E3RE zXNhIc3ag$qTKR+Nx1RO8Bz+36yU>KZ*6hZ2g9g{GS-y_77_= zpCA8H+-cmBvPM4n0Q5#Oi?tDDhM+D?POyTjG?9$Ue=#93@Bw@j;@U(i z5?JzmoO92)_UG682Y^c)rSNeWV;W;dh!(0-=9=KoPgjKCrhk-#aiKbSyWLb$-;1hc zWLosKXjeij+Yex1p42lTDau|O)iqaauo0>w9M2z$wRjPEE4n5xjkc^?Aaui$**`QP zE&Hvmgbqb m 1; i--) + { + int nextInteger = i - 1; + result = result + "*" + nextInteger; + } + return result; + } +} \ No newline at end of file diff --git a/dburrigh/src/Sorting.java b/dburrigh/src/Sorting.java index c1f043b..051966b 100644 --- a/dburrigh/src/Sorting.java +++ b/dburrigh/src/Sorting.java @@ -27,4 +27,4 @@ private static int SmallestValue(int[] input) System.out.print(input[i + 1]); } } -} +} \ No newline at end of file From 5c86938338f883dfff54fae942649857437813fa Mon Sep 17 00:00:00 2001 From: bkeller17 <35274190+bkeller17@users.noreply.github.com> Date: Mon, 26 Mar 2018 23:31:02 +0000 Subject: [PATCH 26/39] Create String Reverse Problem --- bkeller17/String Reverse Problem | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 bkeller17/String Reverse Problem diff --git a/bkeller17/String Reverse Problem b/bkeller17/String Reverse Problem new file mode 100644 index 0000000..f03d821 --- /dev/null +++ b/bkeller17/String Reverse Problem @@ -0,0 +1,22 @@ +import java.util.Scanner; + +public class StringReverse { + +public static void main(String[] args) +{ + +Scanner read = new Scanner(System.in); // Scanner to search through our string +String str = read.nextLine(); // This will look at the following values +String reverse = ""; // This creates a "reverse" value we will fill + +for(int i = str.length() - 1; i >= 0; i--) // This loop goes until no more characters exist in the loop +{ + +reverse = reverse + str.charAt(i); // Current value + the next character + +} + +System.out.println(reverse); // This gives us our reversed string + +} +} From 677a9bbd4aef057e23c258465a8294fe0665c935 Mon Sep 17 00:00:00 2001 From: dmonroe527 <35547403+dmonroe527@users.noreply.github.com> Date: Mon, 26 Mar 2018 18:39:21 -0500 Subject: [PATCH 27/39] Create Lab4 probs --- Lab4 probs | 1 + 1 file changed, 1 insertion(+) create mode 100644 Lab4 probs diff --git a/Lab4 probs b/Lab4 probs new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/Lab4 probs @@ -0,0 +1 @@ + From 99e380e827da65d2a079f446cf0954e25ef35c47 Mon Sep 17 00:00:00 2001 From: bkeller17 <35274190+bkeller17@users.noreply.github.com> Date: Mon, 26 Mar 2018 23:53:45 +0000 Subject: [PATCH 28/39] Create VerticesToLengths --- bkeller17/VerticesToLengths | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 bkeller17/VerticesToLengths diff --git a/bkeller17/VerticesToLengths b/bkeller17/VerticesToLengths new file mode 100644 index 0000000..5329d06 --- /dev/null +++ b/bkeller17/VerticesToLengths @@ -0,0 +1,19 @@ +public class VerticestoLengths { + +// I have thought about this problem for awhile and I do not know how much of the coding aspect I can put together +// Here is how I would plan to code it though: + +// Users would input a set of three integer value vertices for the triangle, i.e. (a,b) (b,c) (a,c) +// The program would look at the vertices in pairs; Pair 1: (a,b) (b,c), Pair 2: (b,c) (a,c), Pair 3: (a,c) (a,b) + +// To calculate the side lengths a function would be used in each of the pairs +// "SideLength" = sqrt((vertex a)^2 + (vertex b)^2) +// NOTE - This "SideLength" would be consolidated into a single function + +// The "SideLength" function would be used on all three pairs +// The values would be printed as: +// A = (Pair 1 solution) +// B = (Pair 2 solution) +// C = (Pair 3 solution) + +} From e38a40b2bfa98f6d49fbed81f4da287ffab7a136 Mon Sep 17 00:00:00 2001 From: bkeller17 <35274190+bkeller17@users.noreply.github.com> Date: Tue, 27 Mar 2018 00:16:50 +0000 Subject: [PATCH 29/39] Rename bkeller17 to bkeller17 RecursionProblem --- bkeller17 RecursionProblem | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 bkeller17 RecursionProblem diff --git a/bkeller17 RecursionProblem b/bkeller17 RecursionProblem new file mode 100644 index 0000000..af601e1 --- /dev/null +++ b/bkeller17 RecursionProblem @@ -0,0 +1,22 @@ +import java.util.Scanner; +public class Factorial { +public static void main(String[] args) +{ + +Scanner sysIn = new Scanner(System.in); +int value = sysIn.nextInt(); +long result = Factorial(value); +System.out.println( ); +System.out.println( result ); +} // This top section compartmentalizes the intro info + +public static long Factorial(int value) +{ +long result = 0; // This section works through multiplying values in steps +if( value <= 1) // If the value gets down to 1, you don't need to continue on +return 1; +result = value * Factorial( value - 1); +return result; // Print final result +} + +} From 1a8f9bca9e545887196484a573a574cf038a6b8d Mon Sep 17 00:00:00 2001 From: dburrigh Date: Mon, 26 Mar 2018 19:37:29 -0500 Subject: [PATCH 30/39] Updated --- dburrigh/.idea/workspace.xml | 104 ++++++++++++------ .../out/production/dburrigh/Triangle.class | Bin 1875 -> 1811 bytes dburrigh/src/Recursive1.java | 3 +- dburrigh/src/Reverse.java | 4 +- dburrigh/src/Sorting.java | 14 ++- dburrigh/src/Triangle.java | 29 ++--- 6 files changed, 94 insertions(+), 60 deletions(-) diff --git a/dburrigh/.idea/workspace.xml b/dburrigh/.idea/workspace.xml index f8560bf..951528e 100644 --- a/dburrigh/.idea/workspace.xml +++ b/dburrigh/.idea/workspace.xml @@ -15,8 +15,8 @@ - - + + @@ -35,8 +35,8 @@ - - + + @@ -45,8 +45,8 @@ - - + + @@ -55,11 +55,9 @@ - - - - - + + + @@ -110,6 +108,10 @@ + + + + @@ -126,10 +128,6 @@ + + + + @@ -142,7 +165,7 @@ - + + + + - + + - - - - - + + + + + + @@ -317,24 +356,24 @@ - - - - + + + + - + - - + + - - + + - - + + - + @@ -342,6 +381,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -389,7 +498,9 @@ - + + + @@ -421,7 +532,9 @@ - + + + @@ -452,44 +565,62 @@ - - + + - - + + - - + + + + + + + + + + - - + + - + - - + + + + + + + + + + + + diff --git a/dburrigh/out/production/dburrigh/Recursive1.class b/dburrigh/out/production/dburrigh/Recursive1.class index 77650571963bc45cbe5fd19a9bd5e008b277ff1d..e8dc91b624479559ad7aca10244174f6c412be7e 100644 GIT binary patch delta 69 zcmaFQ`HpkKQx=xuh0OgoIL>K7c}!LIb5d3snVDq@eH+sUjg((_n=ui4!??1bbNU z6Kq+rpoZCprU2^Sq0xTKeY zgA|I|S8}k7%QmjqSP>Yxr+gJ|2$+RpL%@32edP&E)RgZ%i8|X}uqC(K^rUOurffH4 zp!E63X@##vaaptfz3RSyYr^ojKA}6;<@3*ubQ58s3lrP(~E3A7U+cd30wfKl0{VRd7dMKN3 z9?Ra5V5i=Vf~Hqd8e(FodPNI$F$z~;Di(d5*+$vLRb0~vt1hl%&BZM8E^gqajax2m zG^qjJXt*UOh>i43MgYsmD%}y6i4Co2kzV|k) z`UK^zaS&!VqCEt9##s-6GO-roA9HhfJ)NW{Rw*{H$k*ZU{QxF}o&(o0p32+>_e5zQ z;wudU<6K8#r-=#LI+Y2S#1!`w(#X)Giw6X=xX=B7@nRR|KCIgE9uoIwzhUHKWf%6+ z9+E@U98om(C~Tr7kt153vNTKS5DBM{(h#vu zYsjWHXEySmFg~CEAUEHe2cHjq&wpXSj2oIEEod1evtsfzTgdRs#`Fu!BS=i8hmaxF b94Ra|Jx_WQ3yddW{DEbOaYhz-HgN7A!WgVa literal 0 HcmV?d00001 diff --git a/dburrigh/out/production/dburrigh/Recursive3.class b/dburrigh/out/production/dburrigh/Recursive3.class new file mode 100644 index 0000000000000000000000000000000000000000..6bc7214f14adb3a31fe76d5e25ecc84cae3f8ca6 GIT binary patch literal 1081 zcmZuv%}x_h7(KVscIYrrpnymzApW%lsapI65yY5~6eQM=h^xzVQU=>8nNErBc@W|T z7j9%xj3z#S&*4+JK+l~vX(KM~-*><7eCM2df1ZE)0bl{o4VbvD<3noUmnU_MY`o&(f1s;ycqP5 zUYS*i|6H@UZb=p=TBQx&spN``xVA^+h~pkKd`0F0uz;~8D~?<8YE{x5NncFK><9>l zW1Vd_rAmufwT4T;zM?O!cN_AcEzBs^8lGjpaFq0TN8P;YYoZVR0)qjEZiYG*Ox(kL zmGHpCLp(C^7>gz*kkYYa;t7^@JTw?%r3k)qza}%m~^Qrh5k} ziDssERD*7=!E5t(RcyEH?*+e$u1Bps>8%D8>zOrN;lDKbeE|)81N3u_^OWN%xJI&P z5MQ_nVSsZq2x=JQ-fSgc2nn8I7{&-As@Nu&#x?mJp*N?{&JZrlHWAr4MRe{f^d@>b zkV6PFRVR-gwuoUIMgTwEg1{&)@xGULW4O!)1Kf`zNkWEt)OO2HL{T{TY!k61?TNOW zN`6Etn`*+yCR3$wiJN0Yk3!-|6DNOuO(c(@hffgJKC?^<)J>8GXhDQ3bdu<&vMH*X z;XcjwN_CcPVvJ65D2@4m42{A(rWq5goTIH%BsjzSI3nkW2_eRQBhs^?T)oP02-p4s D$=TM$ literal 0 HcmV?d00001 diff --git a/dburrigh/out/production/dburrigh/Reverse.class b/dburrigh/out/production/dburrigh/Reverse.class index d531a24b2c5fbe486fb02ed705382494e1ea2118..30313b7c9185388079950be53a2e73716f072a34 100644 GIT binary patch delta 15 WcmeC;?BtwqorR@1IdS8ib<6-P@dgS2 delta 16 XcmeC=?Bbkoot3q?ve1< diff --git a/dburrigh/out/production/dburrigh/Temperature.class b/dburrigh/out/production/dburrigh/Temperature.class index a2bed5ff64fe6546a702cc0e2a7d18eab16977cc..f7305c5671eb31e44ac7ef9fa5c58433c68d4a53 100644 GIT binary patch delta 15 WcmaFH_LObHZ5Ec|ff$?3=9k=3~3X&eljs-PUc{|uc*Qh%)=nb5W>R{$`HoGV8~#^15^Pd z%s@mqL&RhbCL4}OhA19}NQUUiK1^~FF$}Tn3~@XR@eB#<42e7pNesz63@Hq$lbe`~ KH}7JKWB~w8#1`uS delta 124 zcmeC?o6N^`>ff$?3=9k=4CxcOezLL_R~CCtW@Wsu63h_7!yw5J%EJ)G5YEG3$Y8_+ zR0JfJPc6`F_S%+oy YQg|3r8PX=#GZ`~8W#(<(z!c2_0O|u8RR910 diff --git a/dburrigh/src/Recursive1.java b/dburrigh/src/Recursive1.java index 7089392..0b02f67 100644 --- a/dburrigh/src/Recursive1.java +++ b/dburrigh/src/Recursive1.java @@ -4,8 +4,8 @@ public class Recursive1 { public static void main(String[] args) { - Scanner sysIn = new Scanner(System.in); - int Integer = sysIn.nextInt(); + Scanner scan = new Scanner(System.in); + int Integer = scan.nextInt(); String result = Factorial(Integer); System.out.print(result); } diff --git a/dburrigh/src/Recursive2.java b/dburrigh/src/Recursive2.java new file mode 100644 index 0000000..3ad3be1 --- /dev/null +++ b/dburrigh/src/Recursive2.java @@ -0,0 +1,23 @@ +import java.util.Scanner; + +public class Recursive2 { + public static void main(String[] args) + { + Scanner scan = new Scanner(System.in); + int Triangle = scan.nextInt(); //this is what we are inputting + float Final = Ball(Triangle); + System.out.print(Final); + } + + public static long Ball(int Triangle) //Ball = Cannonball + { + long Final = 0; //we want to start with 0 + int i = Triangle; + while(i > 0) + { + Final = Final + i; + i--; + } + return Final; + } +} diff --git a/dburrigh/src/Recursive3.java b/dburrigh/src/Recursive3.java new file mode 100644 index 0000000..e9c300e --- /dev/null +++ b/dburrigh/src/Recursive3.java @@ -0,0 +1,26 @@ +import java.util.Scanner; + +public class Recursive3 { + + public static void main(String[] args) + { + Scanner scan = new Scanner(System.in); + String input = scan.next(); + System.out.print(Palindrome(input)); + } + + private static boolean Palindrome(String input) + { + int Name = input.length(); + int count = 0; + + for(int i = 0; i < Name; i++) + { + if(input.charAt(i) == input.charAt(Name - i - 1)) //analyze first and last, second and second to last, etc. + { + count++; + } + } + return count == Name; + } +} diff --git a/dburrigh/src/Reverse.java b/dburrigh/src/Reverse.java index 325a4b0..52ad804 100644 --- a/dburrigh/src/Reverse.java +++ b/dburrigh/src/Reverse.java @@ -3,8 +3,8 @@ public class Reverse { public static void main(String[] args) { - Scanner sysIn = new Scanner(System.in); - String input = sysIn.next(); + Scanner scan = new Scanner(System.in); + String input = scan.next(); String result = reverse(input); System.out.print(result); } diff --git a/dburrigh/src/Sorting.java b/dburrigh/src/Sorting.java index 275126a..b8c877e 100644 --- a/dburrigh/src/Sorting.java +++ b/dburrigh/src/Sorting.java @@ -1,36 +1,31 @@ import java.util.Scanner; +import java.util.List; public class Sorting { - public static void main(String[] args) - { - Scanner sysIn = new Scanner(System.in); - String List = sysIn.next(); - String result = Sort(List); - System.out.print(result); - // System.out.print(Sort([1, 2, -2, -4, 0, -1]); - } + public static void main(String[] args) { + Scanner scan = new Scanner(System.in); + int Amount; //number of integers + int List[] = new int[Amount]; - private static String Sort(String List) - { - int commandline = List.length(); - for(int i = 0; i <= commandline; i++) + for (int i = 0; i < Amount; i++) { - if(List[i] < List[i+1]) - + Amount = scan.nextInt(); + List[i] = scan.nextInt(); } - - + int i = 0; + while (i < Amount) { + System.out.print(List[i] + ","); + i++; + } + System.out.print(List[Amount - 1]); } - private static int SmallestValue(int[] input) + public static String AscendingOrder(List[] Amount) //I could not get this to work I tried for a while { - for(int i = 0; i <= input.length; i++) - { - if(input[i] Date: Wed, 28 Mar 2018 16:32:30 -0500 Subject: [PATCH 38/39] Create recursive2 --- jackhinze/src/recursive2 | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 jackhinze/src/recursive2 diff --git a/jackhinze/src/recursive2 b/jackhinze/src/recursive2 new file mode 100644 index 0000000..55b0221 --- /dev/null +++ b/jackhinze/src/recursive2 @@ -0,0 +1,26 @@ +import java.util.Scanner; + +public class recursive2 { + + private static long Cannonballs (int level) + { + long result = 0; + System.out.print(Number of Cannonballs " "); + if( number <=1) + return 1; + + result = level * (level + 1)/2; // In this step, we are receiving the number of cannonballs on the level. + return result; + } + + public static void main(String[] args) + { + Scanner sysIn = new Scanner(System.in); + int level = sysIn.nextInt(); + long result = Cannonballs(level); + + System.out.println( ); + System.out.println( result ); + } +} + From 4f769d66e1a1ad5f60f2eecb5d05a90bd0ddbcab Mon Sep 17 00:00:00 2001 From: jackhinze <35316852+jackhinze@users.noreply.github.com> Date: Wed, 28 Mar 2018 16:42:03 -0500 Subject: [PATCH 39/39] Create recursive3 --- jackhinze/src/recursive3 | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 jackhinze/src/recursive3 diff --git a/jackhinze/src/recursive3 b/jackhinze/src/recursive3 new file mode 100644 index 0000000..b6fddf5 --- /dev/null +++ b/jackhinze/src/recursive3 @@ -0,0 +1,30 @@ +import java.util.Scanner + +public class recursive3 { + +public static void main(String[] args) +{ + +Scanner read = new Scanner(System.in); +String str = read.nextline(); +String reverse = ""; + +for(int i = str.length() - 1; i >= 0; i--) +{ + +reverse = reverse + str.charAt(i); // This is taking the previous function for reversal + +} + +if(forwards.equals(reverse)) // This command checks to see if the word is a palindrome + System.out.println(forwards " is a palindrome"); // If so, the code prints out the word "is a palindrome" + else // Else, not a palindrome + System.out.println(input " is not a palindrome"); // This will print the word "is not a palindrome" + + } +} + + + + +Braly Keller helped me with some of the coding for this problem.