From 039d1fd193c17d77000f2c46554565b346e6c40f Mon Sep 17 00:00:00 2001 From: Goron Filip Date: Wed, 8 Jul 2015 20:23:03 +0300 Subject: [PATCH 1/7] Update .changeMe! --- Students/Gohonel/.changeMe! | 1 + 1 file changed, 1 insertion(+) diff --git a/Students/Gohonel/.changeMe! b/Students/Gohonel/.changeMe! index e69de29..d550513 100644 --- a/Students/Gohonel/.changeMe! +++ b/Students/Gohonel/.changeMe! @@ -0,0 +1 @@ +.-. From 74ae5db6b1393f4eabe5a81fdf777a8baa6a7722 Mon Sep 17 00:00:00 2001 From: Goron Filip Date: Sat, 11 Jul 2015 18:14:36 +0300 Subject: [PATCH 2/7] Assignment --- Students/Gohonel/FirstAssignment.java | Bin 0 -> 984 bytes Students/Gohonel/SecondAssignment.java | Bin 0 -> 775 bytes Students/Gohonel/ThirdAssignment.java | Bin 0 -> 1436 bytes 3 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 Students/Gohonel/FirstAssignment.java create mode 100644 Students/Gohonel/SecondAssignment.java create mode 100644 Students/Gohonel/ThirdAssignment.java diff --git a/Students/Gohonel/FirstAssignment.java b/Students/Gohonel/FirstAssignment.java new file mode 100644 index 0000000000000000000000000000000000000000..c5181d8a05a63f89ce35044c7af39a4109312e02 GIT binary patch literal 984 zcmaKqOHUI~6vzL!oic4H0xg9iv<^O7L`D=)DVnH}q*@&8Hh%vK0sntlEwp+!2VED@_6IzWYk15l1S61O^0#>$W4G zgxwA4J-0SGQXpG*TUMuOdA52V2(@6-_617y|1nef_!SOrt1}=&69rP(F!I#~Fdq$U6+|j@f8gjw3yVJ(Iy%oD+zt z@(%fGPA~k+mqrN}R9i0!6b|AO;;2cbsf@}QR4^-`JMwK%Q#c$>Er~gfW8Do6CmM%g z`~9Nk6}!pamTS=nEw9Z{a1}xdPJ22$Y7(lTTOf zSOzbg@j?oiLx18dMoysO^HEWcUaL@Gd-z`yT?)94@&q=UuZDlk*ioRoS+_OP(9elD zAcqR71~!hFw%>)3bPL$TSsM0N^j}@mD8KWZ91)qM<94&yBJicZ3L1e7SBt2j!iSAK zYN#8q1S*O4aZmvluq}{Y#yli$o@6kl*eT#5E(sV(=Yp@%o4d*IoM6TwR8DxBfKXh! zTyt6vSFS+Oj-1JxJ!g3|!@Nzu6Zu5NQ?CB|fwyAI*a6Y}bRfkYe~8iGslzOo)9r7_ zeon6QjPW%HIK^04H!v4@%HcFhti<52B-5E6=)H7b8+<~|N-y7|Xqn}YFzVL+z^d){ zt=hC_nP)!y{`Cc>dF}w`nd=8=#Bv&9xpopWl+98gk1EBsC{st7&a=1%lTItRkB!7q sdo7F0xI%Oa_i&XxoG0#}$z6&}x6$HGBR9yX9U>=$C>iX!o?veL0sHBm4gdfE literal 0 HcmV?d00001 diff --git a/Students/Gohonel/ThirdAssignment.java b/Students/Gohonel/ThirdAssignment.java new file mode 100644 index 0000000000000000000000000000000000000000..15e8ac74bf8baf5ec57db78141532b32de8ef1a2 GIT binary patch literal 1436 zcmaJ=U2hvj6g}hpauz3DJJ|$cC*7nUvD4TFlA01Hfwqtm;eJS|BB6?hO?H)RYOk&J z8YM!&OMe9~5DBR-eSwD*0pbTBegZ#$2gEZ%2y_^oVoX&b7z10`@0_j zEa8TMltAHXw;Sw+e#;NzZuRb75P1WSbQn+ttbO+*x7u{W-RkY_eSaqw&{u*mh}Q&^ zVrff2z25eG6AFeh(4Y&PX#}BvtJm80qr2{Q(-+7!+Brut4eE zPR9>DHjZjM13t-DmoY0DRPm}nI&Kfx3XBz>y+Z8kSTe9EFq)MAB(V%G%fhsdr!jhN-Ru@c;+q&frCDtEKAX^T z50a)Hu>b7s0exyGYI_FwAkEEoFWT|f1NrF2o_fv|$qzH^xWYdGoLMn+&IWf?u7ayJ z{}}17X{2Csmd6tM66eeSz;&3rA^B?Pk(d8~$^pD@=|7mal$D3bmGhI9*}2WBS$`lz z-qMfyzn9aM&yh~AK7?-Rs}g6I^ObTz_3~cj3uwwC2`wD;e^VbZoRXBV%tSz%wVE6m zWSM@P)>&A%fE?y9ig}Eoj0yJg6}*K!uF~EhLYBS6n=Fm!ELQ{X@J^P6&oTZetrTxg zpI92!8Oi3!II%M@`b?w>$#Mc1vHC=FE0V1`lA;PPGi9QJxJ(VC8lNev%9>JBm6~RG zgWPC1P*sJNb{w*feFOjqLsjrZ+^|gFWE!4CJDN)EOzaI5}kqRW%&)=Z%J!U`1 zoqvprQ^zPBqkN3l{`J=AwN<)vSB|l4YySac^9IV*l17~;g*mb>k<%q=vp}^fn}T5uK=(!Y5Q%s;1&&yiH3X@_>qG=`qp6HCh_; kyMDgBbh7{KS0kTIMdH?_b literal 0 HcmV?d00001 From 1eb167dcbbffe07bce9c9f69081d2157df773878 Mon Sep 17 00:00:00 2001 From: Goron Filip Date: Sat, 11 Jul 2015 18:28:19 +0300 Subject: [PATCH 3/7] The other Assignments --- Students/Gohonel/SecondAssignment.txt | 21 ++++++++++ Students/Gohonel/ThirdAssignment.txt | 58 +++++++++++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 Students/Gohonel/SecondAssignment.txt create mode 100644 Students/Gohonel/ThirdAssignment.txt diff --git a/Students/Gohonel/SecondAssignment.txt b/Students/Gohonel/SecondAssignment.txt new file mode 100644 index 0000000..434cefe --- /dev/null +++ b/Students/Gohonel/SecondAssignment.txt @@ -0,0 +1,21 @@ +package Assignements; + +public class SecondAssignment { + public static void main(String[] args) + { + int i = 1 , j = 2, sum = 0; + + while ( j < 4000000 ) + { + if ( (j % 2 == 0) && (j < 4000001) ) + { + sum = sum + j; + } + + j = j + i; + i = j - i; + } + System.out.print("Your result is: "); + System.out.println(sum); + } +} diff --git a/Students/Gohonel/ThirdAssignment.txt b/Students/Gohonel/ThirdAssignment.txt new file mode 100644 index 0000000..d59a631 --- /dev/null +++ b/Students/Gohonel/ThirdAssignment.txt @@ -0,0 +1,58 @@ +package Assignements; + +public class ThirdAssignment { + + public static int test (int t) + { + int i, k; + int array[] = new int[6]; + + for ( i = 0; i < 6; i++) + { + array[i] = t % 10; + t = t/10; + } + + if ( array[5] == 0) + { + k = 5; + }else{ + k = 6; + } + + for ( i = 0; i < k; i++) + { + if ( array[i] != array [(k-1) - i] ) + { + return 0; + } + } + + return 1; + } + + public static void main(String[] args) + { + int i, j = 0, max = 0, maxi = 0, maxj = 0, prod; + + + for ( i = 100; i < 1000; i++) + { + for ( j = 100; j < 1000; j++) + { + prod = i * j; + if ( test(prod) == 1 && prod > max) + { + max = prod; + maxi = i; + maxj = j; + } + + } + } + System.out.print("Largest Palindrome is: "+max); + System.out.print(", made by the numbers " + maxi + " and " + maxj); + + } + +} From fa53b352a58fad7a412f969437b4643aa6744814 Mon Sep 17 00:00:00 2001 From: Goron Filip Date: Mon, 13 Jul 2015 21:51:49 +0300 Subject: [PATCH 4/7] FirstAssignement - improved --- Students/Gohonel/FirstAssignement - improved | 32 ++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Students/Gohonel/FirstAssignement - improved diff --git a/Students/Gohonel/FirstAssignement - improved b/Students/Gohonel/FirstAssignement - improved new file mode 100644 index 0000000..2e7ffeb --- /dev/null +++ b/Students/Gohonel/FirstAssignement - improved @@ -0,0 +1,32 @@ +package Assignements; + +import java.util.Scanner; + +public class FirstAssignment { + public static void main(String[] args) + { + System.out.print("Enter up to where we go: "); + Scanner scan = new Scanner(System.in); + int i, j, sum = 0, a = 0, b = 0, c = 0, s = 0, n = 0; + + i = scan.nextInt(); + + n = i / 3; + + a = ( 3 * n * ( n + 1 ))/2; + + n = i / 5; + + b = ( 5 * n * ( n + 1 ))/2; + + n = i / 15; + + c = ( 15 * n * ( n + 1 ))/2; + + s = a + b - c; + + + System.out.print("You number is: "); + System.out.println(s); + } +} From 23412b82751484f7197c6d4ac545f5f0d47a3ced Mon Sep 17 00:00:00 2001 From: Goron Filip Date: Sun, 26 Jul 2015 22:55:00 +0300 Subject: [PATCH 5/7] I was sick this week so everything was written today. Didn't manage to make the output nicer :( --- Students/Gohonel/.changeMe! | 2 +- Students/Gohonel/FirstAssignment.java | Bin 984 -> 0 bytes Students/Gohonel/SecondAssignment.java | Bin 775 -> 0 bytes Students/Gohonel/SecondAssignment.txt | 21 ----- Students/Gohonel/SecondWeek/Functions.txt | 60 +++++++++++++ Students/Gohonel/SecondWeek/InOut.txt | 49 +++++++++++ Students/Gohonel/SecondWeek/Poly.txt | 10 +++ Students/Gohonel/SecondWeek/Polynomial.txt | 95 +++++++++++++++++++++ Students/Gohonel/SecondWeek/Results.txt | 14 +++ Students/Gohonel/ThirdAssignment.java | Bin 1436 -> 0 bytes Students/Gohonel/ThirdAssignment.txt | 58 ------------- 11 files changed, 229 insertions(+), 80 deletions(-) delete mode 100644 Students/Gohonel/FirstAssignment.java delete mode 100644 Students/Gohonel/SecondAssignment.java delete mode 100644 Students/Gohonel/SecondAssignment.txt create mode 100644 Students/Gohonel/SecondWeek/Functions.txt create mode 100644 Students/Gohonel/SecondWeek/InOut.txt create mode 100644 Students/Gohonel/SecondWeek/Poly.txt create mode 100644 Students/Gohonel/SecondWeek/Polynomial.txt create mode 100644 Students/Gohonel/SecondWeek/Results.txt delete mode 100644 Students/Gohonel/ThirdAssignment.java delete mode 100644 Students/Gohonel/ThirdAssignment.txt diff --git a/Students/Gohonel/.changeMe! b/Students/Gohonel/.changeMe! index d550513..2e70112 100644 --- a/Students/Gohonel/.changeMe! +++ b/Students/Gohonel/.changeMe! @@ -1 +1 @@ -.-. +IM SO CHANGED \ No newline at end of file diff --git a/Students/Gohonel/FirstAssignment.java b/Students/Gohonel/FirstAssignment.java deleted file mode 100644 index c5181d8a05a63f89ce35044c7af39a4109312e02..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 984 zcmaKqOHUI~6vzL!oic4H0xg9iv<^O7L`D=)DVnH}q*@&8Hh%vK0sntlEwp+!2VED@_6IzWYk15l1S61O^0#>$W4G zgxwA4J-0SGQXpG*TUMuOdA52V2(@6-_617y|1nef_!SOrt1}=&69rP(F!I#~Fdq$U6+|j@f8gjw3yVJ(Iy%oD+zt z@(%fGPA~k+mqrN}R9i0!6b|AO;;2cbsf@}QR4^-`JMwK%Q#c$>Er~gfW8Do6CmM%g z`~9Nk6}!pamTS=nEw9Z{a1}xdPJ22$Y7(lTTOf zSOzbg@j?oiLx18dMoysO^HEWcUaL@Gd-z`yT?)94@&q=UuZDlk*ioRoS+_OP(9elD zAcqR71~!hFw%>)3bPL$TSsM0N^j}@mD8KWZ91)qM<94&yBJicZ3L1e7SBt2j!iSAK zYN#8q1S*O4aZmvluq}{Y#yli$o@6kl*eT#5E(sV(=Yp@%o4d*IoM6TwR8DxBfKXh! zTyt6vSFS+Oj-1JxJ!g3|!@Nzu6Zu5NQ?CB|fwyAI*a6Y}bRfkYe~8iGslzOo)9r7_ zeon6QjPW%HIK^04H!v4@%HcFhti<52B-5E6=)H7b8+<~|N-y7|Xqn}YFzVL+z^d){ zt=hC_nP)!y{`Cc>dF}w`nd=8=#Bv&9xpopWl+98gk1EBsC{st7&a=1%lTItRkB!7q sdo7F0xI%Oa_i&XxoG0#}$z6&}x6$HGBR9yX9U>=$C>iX!o?veL0sHBm4gdfE diff --git a/Students/Gohonel/SecondAssignment.txt b/Students/Gohonel/SecondAssignment.txt deleted file mode 100644 index 434cefe..0000000 --- a/Students/Gohonel/SecondAssignment.txt +++ /dev/null @@ -1,21 +0,0 @@ -package Assignements; - -public class SecondAssignment { - public static void main(String[] args) - { - int i = 1 , j = 2, sum = 0; - - while ( j < 4000000 ) - { - if ( (j % 2 == 0) && (j < 4000001) ) - { - sum = sum + j; - } - - j = j + i; - i = j - i; - } - System.out.print("Your result is: "); - System.out.println(sum); - } -} diff --git a/Students/Gohonel/SecondWeek/Functions.txt b/Students/Gohonel/SecondWeek/Functions.txt new file mode 100644 index 0000000..4c4b3d5 --- /dev/null +++ b/Students/Gohonel/SecondWeek/Functions.txt @@ -0,0 +1,60 @@ +package Assignements; + +import java.util.Arrays; + +public class Functions { + + public String Add(int[] pol1, int[] pol2, int m, int n) { + int[] pol = new int [100]; + n = (n > m) ? n : m; + for (int i = 0; i < n; i++) { + pol[i] = pol1[i] + pol2[i]; + } + String p = ""; + p = Arrays.toString(pol); + return p; + } + + public String Subtract(int[] pol1, int[] pol2, int m, int n) { + int[] pol = new int[100]; + n = (n > m) ? n : m; + for (int i = 0; i < n; i++) { + pol[i] = pol1[i] - pol2[i]; + } + String p = ""; + p = Arrays.toString(pol); + return p; + } + + public String Multiply(int[] pol1, int[] pol2, int m, int n) { + int[] pol = new int[100]; + for (int i = 0; i < m; i++) { + for (int j = 0; j < n; j++) { + pol[i + j] = (pol1[i] * pol2[j]) + pol[i + j]; + } + } + String p = ""; + p = Arrays.toString(pol); + return p; + } + + public String MultScal(int[] pol1, int m, int scalar) { + int[] pol = new int[100]; + for (int i = 0; i < m; i++) { + pol[i] = scalar * pol1[i]; + } + String p = ""; + p = Arrays.toString(pol); + return p; + } + + public String Eval(int[] pol1, int m, int value) { + int sum = 0; + for (int i = 0; i < m; i++) { + sum = (int) (sum + (pol1[i] * (Math.pow(value, i)))); + } + String p = ""; + p = Integer.toString(sum); + return p; + } +} diff --git a/Students/Gohonel/SecondWeek/InOut.txt b/Students/Gohonel/SecondWeek/InOut.txt new file mode 100644 index 0000000..8e080b2 --- /dev/null +++ b/Students/Gohonel/SecondWeek/InOut.txt @@ -0,0 +1,49 @@ +package Assignements; + +import java.io.BufferedReader; +import java.io.FileNotFoundException; +import java.io.FileReader; +import java.io.IOException; +import java.io.PrintWriter; +import java.io.UnsupportedEncodingException; + +public class InOut { + + public String[] read() { + BufferedReader br = null; + String[] all = new String[100]; + int i = 0; + try { + br = new BufferedReader(new FileReader("C:/Users/Goron/workspace/SecondChapter/Poly.txt")); + + while (i < 100) { + all[i] = br.readLine(); + i++; + } + } catch (IOException e) { + e.printStackTrace(); + } finally { + try { + if (br != null) + br.close(); + } catch (IOException ex) { + ex.printStackTrace(); + } + } + return all; + } + + public void write(String[] out, int k, String[] text) throws FileNotFoundException, UnsupportedEncodingException { + int i = 0; + + PrintWriter writer = new PrintWriter("Results.txt", "UTF-8"); + + + + for (i = 0; i < k; i++) { + writer.println(out[i]); + writer.println(); + } + writer.close(); + } +} diff --git a/Students/Gohonel/SecondWeek/Poly.txt b/Students/Gohonel/SecondWeek/Poly.txt new file mode 100644 index 0000000..579fa1e --- /dev/null +++ b/Students/Gohonel/SecondWeek/Poly.txt @@ -0,0 +1,10 @@ +5 -4 2 0 -2 3 0 3 -17 +4 -2 0 1 + +ADD +SUBTRACT +MULTIPLY +MUL_SCAL 4 +EVAL 5 +EVAL 2 +EVAL 9 \ No newline at end of file diff --git a/Students/Gohonel/SecondWeek/Polynomial.txt b/Students/Gohonel/SecondWeek/Polynomial.txt new file mode 100644 index 0000000..88b15f1 --- /dev/null +++ b/Students/Gohonel/SecondWeek/Polynomial.txt @@ -0,0 +1,95 @@ +package Assignements; + +import java.util.Scanner; +import java.io.FileNotFoundException; +import java.io.UnsupportedEncodingException; +import java.util.Arrays; + +public class Polynomial { + + public static int nAll = 0; + public static int mAll = 0; + + public static int[] sepInt(String[] all, int row) { + int[] pol = new int[100]; + String temp = all[row]; + int i = 0; + Scanner s = new Scanner(temp); + + int n = temp.length() - temp.replaceAll(" ", "").length() + 1; + + while (i < n) { + pol[i] = s.nextInt(); + i++; + } + nAll = n; + return pol; + } + + public static int[] inverse(int[] pol, int m) { + int[] ipol = new int[100]; + for (int i = 0; i <= m; i++) { + ipol[i] = pol[m - i]; + } + return ipol; + } + + public static void main(String[] args) throws FileNotFoundException, UnsupportedEncodingException { + int i; + int[] polynom1 = new int[100]; + int[] polynom2 = new int[100]; + + + Functions F = new Functions(); + InOut IO = new InOut(); + + String[] textFile = IO.read(); + String[] sendOut = new String[100]; + String tempString = null; + + polynom1 = sepInt(textFile, 0); + mAll = nAll; + polynom2 = sepInt(textFile, 1); + + polynom1 = inverse(polynom1, mAll); + for (i = 0; i < mAll; i++) + polynom1[i] = polynom1[i + 1]; + + polynom2 = inverse(polynom2, nAll); + for (i = 0; i < mAll; i++) + polynom2[i] = polynom2[i + 1]; + + i = 3; + + while (textFile[i] != null) { + if (textFile[i].startsWith("A")) { + + tempString = F.Add(polynom1, polynom2, mAll, nAll); + + } else if (textFile[i].startsWith("S")) { + + tempString = F.Subtract(polynom1, polynom2, mAll, nAll); + + } else if (textFile[i].startsWith("M") && textFile[i].matches(".*\\d+.*") == false) { + + tempString = F.Multiply(polynom1, polynom2, mAll, nAll); + + } else if (textFile[i].startsWith("M") && textFile[i].matches(".*\\d+.*") == true) { + + tempString = new String(F.MultScal(polynom1, mAll, Integer.parseInt(textFile[i].replaceAll("[\\D]", ""))) + +" "+ F.MultScal(polynom2, nAll, Integer.parseInt(textFile[i].replaceAll("[\\D]", "")))); + + } else if (textFile[i].startsWith("E")) { + + tempString = new String(F.Eval(polynom1, mAll, Integer.parseInt(textFile[i].replaceAll("[\\D]", ""))) + +" "+ F.Eval(polynom2, nAll, Integer.parseInt(textFile[i].replaceAll("[\\D]", "")))); + + } + sendOut[i-3] = new String(tempString); + i++; + } + IO.write(sendOut, i-3, textFile); + + } + } + diff --git a/Students/Gohonel/SecondWeek/Results.txt b/Students/Gohonel/SecondWeek/Results.txt new file mode 100644 index 0000000..3555820 --- /dev/null +++ b/Students/Gohonel/SecondWeek/Results.txt @@ -0,0 +1,14 @@ +[-16, 3, -2, 7, -2, 0, 2, -4, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] + +[-18, 3, 2, -1, -2, 0, 2, -4, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] + +1670998 451 + +877 25 + +197153686 2755 + diff --git a/Students/Gohonel/ThirdAssignment.java b/Students/Gohonel/ThirdAssignment.java deleted file mode 100644 index 15e8ac74bf8baf5ec57db78141532b32de8ef1a2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1436 zcmaJ=U2hvj6g}hpauz3DJJ|$cC*7nUvD4TFlA01Hfwqtm;eJS|BB6?hO?H)RYOk&J z8YM!&OMe9~5DBR-eSwD*0pbTBegZ#$2gEZ%2y_^oVoX&b7z10`@0_j zEa8TMltAHXw;Sw+e#;NzZuRb75P1WSbQn+ttbO+*x7u{W-RkY_eSaqw&{u*mh}Q&^ zVrff2z25eG6AFeh(4Y&PX#}BvtJm80qr2{Q(-+7!+Brut4eE zPR9>DHjZjM13t-DmoY0DRPm}nI&Kfx3XBz>y+Z8kSTe9EFq)MAB(V%G%fhsdr!jhN-Ru@c;+q&frCDtEKAX^T z50a)Hu>b7s0exyGYI_FwAkEEoFWT|f1NrF2o_fv|$qzH^xWYdGoLMn+&IWf?u7ayJ z{}}17X{2Csmd6tM66eeSz;&3rA^B?Pk(d8~$^pD@=|7mal$D3bmGhI9*}2WBS$`lz z-qMfyzn9aM&yh~AK7?-Rs}g6I^ObTz_3~cj3uwwC2`wD;e^VbZoRXBV%tSz%wVE6m zWSM@P)>&A%fE?y9ig}Eoj0yJg6}*K!uF~EhLYBS6n=Fm!ELQ{X@J^P6&oTZetrTxg zpI92!8Oi3!II%M@`b?w>$#Mc1vHC=FE0V1`lA;PPGi9QJxJ(VC8lNev%9>JBm6~RG zgWPC1P*sJNb{w*feFOjqLsjrZ+^|gFWE!4CJDN)EOzaI5}kqRW%&)=Z%J!U`1 zoqvprQ^zPBqkN3l{`J=AwN<)vSB|l4YySac^9IV*l17~;g*mb>k<%q=vp}^fn}T5uK=(!Y5Q%s;1&&yiH3X@_>qG=`qp6HCh_; kyMDgBbh7{KS0kTIMdH?_b diff --git a/Students/Gohonel/ThirdAssignment.txt b/Students/Gohonel/ThirdAssignment.txt deleted file mode 100644 index d59a631..0000000 --- a/Students/Gohonel/ThirdAssignment.txt +++ /dev/null @@ -1,58 +0,0 @@ -package Assignements; - -public class ThirdAssignment { - - public static int test (int t) - { - int i, k; - int array[] = new int[6]; - - for ( i = 0; i < 6; i++) - { - array[i] = t % 10; - t = t/10; - } - - if ( array[5] == 0) - { - k = 5; - }else{ - k = 6; - } - - for ( i = 0; i < k; i++) - { - if ( array[i] != array [(k-1) - i] ) - { - return 0; - } - } - - return 1; - } - - public static void main(String[] args) - { - int i, j = 0, max = 0, maxi = 0, maxj = 0, prod; - - - for ( i = 100; i < 1000; i++) - { - for ( j = 100; j < 1000; j++) - { - prod = i * j; - if ( test(prod) == 1 && prod > max) - { - max = prod; - maxi = i; - maxj = j; - } - - } - } - System.out.print("Largest Palindrome is: "+max); - System.out.print(", made by the numbers " + maxi + " and " + maxj); - - } - -} From 53030445b7726171b6c4337601eab7883b5b36fe Mon Sep 17 00:00:00 2001 From: Goron Filip Date: Sun, 26 Jul 2015 22:59:17 +0300 Subject: [PATCH 6/7] ! --- Students/Gohonel/SecondWeek-/Functions.txt | 60 +++++++++++++ Students/Gohonel/SecondWeek-/InOut.txt | 49 +++++++++++ Students/Gohonel/SecondWeek-/Poly.txt | 10 +++ Students/Gohonel/SecondWeek-/Polynomial.txt | 95 +++++++++++++++++++++ Students/Gohonel/SecondWeek-/Results.txt | 14 +++ 5 files changed, 228 insertions(+) create mode 100644 Students/Gohonel/SecondWeek-/Functions.txt create mode 100644 Students/Gohonel/SecondWeek-/InOut.txt create mode 100644 Students/Gohonel/SecondWeek-/Poly.txt create mode 100644 Students/Gohonel/SecondWeek-/Polynomial.txt create mode 100644 Students/Gohonel/SecondWeek-/Results.txt diff --git a/Students/Gohonel/SecondWeek-/Functions.txt b/Students/Gohonel/SecondWeek-/Functions.txt new file mode 100644 index 0000000..4c4b3d5 --- /dev/null +++ b/Students/Gohonel/SecondWeek-/Functions.txt @@ -0,0 +1,60 @@ +package Assignements; + +import java.util.Arrays; + +public class Functions { + + public String Add(int[] pol1, int[] pol2, int m, int n) { + int[] pol = new int [100]; + n = (n > m) ? n : m; + for (int i = 0; i < n; i++) { + pol[i] = pol1[i] + pol2[i]; + } + String p = ""; + p = Arrays.toString(pol); + return p; + } + + public String Subtract(int[] pol1, int[] pol2, int m, int n) { + int[] pol = new int[100]; + n = (n > m) ? n : m; + for (int i = 0; i < n; i++) { + pol[i] = pol1[i] - pol2[i]; + } + String p = ""; + p = Arrays.toString(pol); + return p; + } + + public String Multiply(int[] pol1, int[] pol2, int m, int n) { + int[] pol = new int[100]; + for (int i = 0; i < m; i++) { + for (int j = 0; j < n; j++) { + pol[i + j] = (pol1[i] * pol2[j]) + pol[i + j]; + } + } + String p = ""; + p = Arrays.toString(pol); + return p; + } + + public String MultScal(int[] pol1, int m, int scalar) { + int[] pol = new int[100]; + for (int i = 0; i < m; i++) { + pol[i] = scalar * pol1[i]; + } + String p = ""; + p = Arrays.toString(pol); + return p; + } + + public String Eval(int[] pol1, int m, int value) { + int sum = 0; + for (int i = 0; i < m; i++) { + sum = (int) (sum + (pol1[i] * (Math.pow(value, i)))); + } + String p = ""; + p = Integer.toString(sum); + return p; + } +} diff --git a/Students/Gohonel/SecondWeek-/InOut.txt b/Students/Gohonel/SecondWeek-/InOut.txt new file mode 100644 index 0000000..8e080b2 --- /dev/null +++ b/Students/Gohonel/SecondWeek-/InOut.txt @@ -0,0 +1,49 @@ +package Assignements; + +import java.io.BufferedReader; +import java.io.FileNotFoundException; +import java.io.FileReader; +import java.io.IOException; +import java.io.PrintWriter; +import java.io.UnsupportedEncodingException; + +public class InOut { + + public String[] read() { + BufferedReader br = null; + String[] all = new String[100]; + int i = 0; + try { + br = new BufferedReader(new FileReader("C:/Users/Goron/workspace/SecondChapter/Poly.txt")); + + while (i < 100) { + all[i] = br.readLine(); + i++; + } + } catch (IOException e) { + e.printStackTrace(); + } finally { + try { + if (br != null) + br.close(); + } catch (IOException ex) { + ex.printStackTrace(); + } + } + return all; + } + + public void write(String[] out, int k, String[] text) throws FileNotFoundException, UnsupportedEncodingException { + int i = 0; + + PrintWriter writer = new PrintWriter("Results.txt", "UTF-8"); + + + + for (i = 0; i < k; i++) { + writer.println(out[i]); + writer.println(); + } + writer.close(); + } +} diff --git a/Students/Gohonel/SecondWeek-/Poly.txt b/Students/Gohonel/SecondWeek-/Poly.txt new file mode 100644 index 0000000..579fa1e --- /dev/null +++ b/Students/Gohonel/SecondWeek-/Poly.txt @@ -0,0 +1,10 @@ +5 -4 2 0 -2 3 0 3 -17 +4 -2 0 1 + +ADD +SUBTRACT +MULTIPLY +MUL_SCAL 4 +EVAL 5 +EVAL 2 +EVAL 9 \ No newline at end of file diff --git a/Students/Gohonel/SecondWeek-/Polynomial.txt b/Students/Gohonel/SecondWeek-/Polynomial.txt new file mode 100644 index 0000000..88b15f1 --- /dev/null +++ b/Students/Gohonel/SecondWeek-/Polynomial.txt @@ -0,0 +1,95 @@ +package Assignements; + +import java.util.Scanner; +import java.io.FileNotFoundException; +import java.io.UnsupportedEncodingException; +import java.util.Arrays; + +public class Polynomial { + + public static int nAll = 0; + public static int mAll = 0; + + public static int[] sepInt(String[] all, int row) { + int[] pol = new int[100]; + String temp = all[row]; + int i = 0; + Scanner s = new Scanner(temp); + + int n = temp.length() - temp.replaceAll(" ", "").length() + 1; + + while (i < n) { + pol[i] = s.nextInt(); + i++; + } + nAll = n; + return pol; + } + + public static int[] inverse(int[] pol, int m) { + int[] ipol = new int[100]; + for (int i = 0; i <= m; i++) { + ipol[i] = pol[m - i]; + } + return ipol; + } + + public static void main(String[] args) throws FileNotFoundException, UnsupportedEncodingException { + int i; + int[] polynom1 = new int[100]; + int[] polynom2 = new int[100]; + + + Functions F = new Functions(); + InOut IO = new InOut(); + + String[] textFile = IO.read(); + String[] sendOut = new String[100]; + String tempString = null; + + polynom1 = sepInt(textFile, 0); + mAll = nAll; + polynom2 = sepInt(textFile, 1); + + polynom1 = inverse(polynom1, mAll); + for (i = 0; i < mAll; i++) + polynom1[i] = polynom1[i + 1]; + + polynom2 = inverse(polynom2, nAll); + for (i = 0; i < mAll; i++) + polynom2[i] = polynom2[i + 1]; + + i = 3; + + while (textFile[i] != null) { + if (textFile[i].startsWith("A")) { + + tempString = F.Add(polynom1, polynom2, mAll, nAll); + + } else if (textFile[i].startsWith("S")) { + + tempString = F.Subtract(polynom1, polynom2, mAll, nAll); + + } else if (textFile[i].startsWith("M") && textFile[i].matches(".*\\d+.*") == false) { + + tempString = F.Multiply(polynom1, polynom2, mAll, nAll); + + } else if (textFile[i].startsWith("M") && textFile[i].matches(".*\\d+.*") == true) { + + tempString = new String(F.MultScal(polynom1, mAll, Integer.parseInt(textFile[i].replaceAll("[\\D]", ""))) + +" "+ F.MultScal(polynom2, nAll, Integer.parseInt(textFile[i].replaceAll("[\\D]", "")))); + + } else if (textFile[i].startsWith("E")) { + + tempString = new String(F.Eval(polynom1, mAll, Integer.parseInt(textFile[i].replaceAll("[\\D]", ""))) + +" "+ F.Eval(polynom2, nAll, Integer.parseInt(textFile[i].replaceAll("[\\D]", "")))); + + } + sendOut[i-3] = new String(tempString); + i++; + } + IO.write(sendOut, i-3, textFile); + + } + } + diff --git a/Students/Gohonel/SecondWeek-/Results.txt b/Students/Gohonel/SecondWeek-/Results.txt new file mode 100644 index 0000000..3555820 --- /dev/null +++ b/Students/Gohonel/SecondWeek-/Results.txt @@ -0,0 +1,14 @@ +[-16, 3, -2, 7, -2, 0, 2, -4, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0] [4, 0, -8, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] + +1670998 451 + +877 25 + +197153686 2755 + From f00a1349d4fd25caddfb1a3df7df2e2e38000c09 Mon Sep 17 00:00:00 2001 From: Goron Filip Date: Sun, 26 Jul 2015 23:01:23 +0300 Subject: [PATCH 7/7] Didn't manage to finish the output --- Students/Gohonel/SecondWeek--/Functions.txt | 60 +++++++++++++ Students/Gohonel/SecondWeek--/InOut.txt | 49 ++++++++++ Students/Gohonel/SecondWeek--/Poly.txt | 10 +++ Students/Gohonel/SecondWeek--/Polynomial.txt | 95 ++++++++++++++++++++ Students/Gohonel/SecondWeek--/Results.txt | 14 +++ 5 files changed, 228 insertions(+) create mode 100644 Students/Gohonel/SecondWeek--/Functions.txt create mode 100644 Students/Gohonel/SecondWeek--/InOut.txt create mode 100644 Students/Gohonel/SecondWeek--/Poly.txt create mode 100644 Students/Gohonel/SecondWeek--/Polynomial.txt create mode 100644 Students/Gohonel/SecondWeek--/Results.txt diff --git a/Students/Gohonel/SecondWeek--/Functions.txt b/Students/Gohonel/SecondWeek--/Functions.txt new file mode 100644 index 0000000..4c4b3d5 --- /dev/null +++ b/Students/Gohonel/SecondWeek--/Functions.txt @@ -0,0 +1,60 @@ +package Assignements; + +import java.util.Arrays; + +public class Functions { + + public String Add(int[] pol1, int[] pol2, int m, int n) { + int[] pol = new int [100]; + n = (n > m) ? n : m; + for (int i = 0; i < n; i++) { + pol[i] = pol1[i] + pol2[i]; + } + String p = ""; + p = Arrays.toString(pol); + return p; + } + + public String Subtract(int[] pol1, int[] pol2, int m, int n) { + int[] pol = new int[100]; + n = (n > m) ? n : m; + for (int i = 0; i < n; i++) { + pol[i] = pol1[i] - pol2[i]; + } + String p = ""; + p = Arrays.toString(pol); + return p; + } + + public String Multiply(int[] pol1, int[] pol2, int m, int n) { + int[] pol = new int[100]; + for (int i = 0; i < m; i++) { + for (int j = 0; j < n; j++) { + pol[i + j] = (pol1[i] * pol2[j]) + pol[i + j]; + } + } + String p = ""; + p = Arrays.toString(pol); + return p; + } + + public String MultScal(int[] pol1, int m, int scalar) { + int[] pol = new int[100]; + for (int i = 0; i < m; i++) { + pol[i] = scalar * pol1[i]; + } + String p = ""; + p = Arrays.toString(pol); + return p; + } + + public String Eval(int[] pol1, int m, int value) { + int sum = 0; + for (int i = 0; i < m; i++) { + sum = (int) (sum + (pol1[i] * (Math.pow(value, i)))); + } + String p = ""; + p = Integer.toString(sum); + return p; + } +} diff --git a/Students/Gohonel/SecondWeek--/InOut.txt b/Students/Gohonel/SecondWeek--/InOut.txt new file mode 100644 index 0000000..8e080b2 --- /dev/null +++ b/Students/Gohonel/SecondWeek--/InOut.txt @@ -0,0 +1,49 @@ +package Assignements; + +import java.io.BufferedReader; +import java.io.FileNotFoundException; +import java.io.FileReader; +import java.io.IOException; +import java.io.PrintWriter; +import java.io.UnsupportedEncodingException; + +public class InOut { + + public String[] read() { + BufferedReader br = null; + String[] all = new String[100]; + int i = 0; + try { + br = new BufferedReader(new FileReader("C:/Users/Goron/workspace/SecondChapter/Poly.txt")); + + while (i < 100) { + all[i] = br.readLine(); + i++; + } + } catch (IOException e) { + e.printStackTrace(); + } finally { + try { + if (br != null) + br.close(); + } catch (IOException ex) { + ex.printStackTrace(); + } + } + return all; + } + + public void write(String[] out, int k, String[] text) throws FileNotFoundException, UnsupportedEncodingException { + int i = 0; + + PrintWriter writer = new PrintWriter("Results.txt", "UTF-8"); + + + + for (i = 0; i < k; i++) { + writer.println(out[i]); + writer.println(); + } + writer.close(); + } +} diff --git a/Students/Gohonel/SecondWeek--/Poly.txt b/Students/Gohonel/SecondWeek--/Poly.txt new file mode 100644 index 0000000..579fa1e --- /dev/null +++ b/Students/Gohonel/SecondWeek--/Poly.txt @@ -0,0 +1,10 @@ +5 -4 2 0 -2 3 0 3 -17 +4 -2 0 1 + +ADD +SUBTRACT +MULTIPLY +MUL_SCAL 4 +EVAL 5 +EVAL 2 +EVAL 9 \ No newline at end of file diff --git a/Students/Gohonel/SecondWeek--/Polynomial.txt b/Students/Gohonel/SecondWeek--/Polynomial.txt new file mode 100644 index 0000000..88b15f1 --- /dev/null +++ b/Students/Gohonel/SecondWeek--/Polynomial.txt @@ -0,0 +1,95 @@ +package Assignements; + +import java.util.Scanner; +import java.io.FileNotFoundException; +import java.io.UnsupportedEncodingException; +import java.util.Arrays; + +public class Polynomial { + + public static int nAll = 0; + public static int mAll = 0; + + public static int[] sepInt(String[] all, int row) { + int[] pol = new int[100]; + String temp = all[row]; + int i = 0; + Scanner s = new Scanner(temp); + + int n = temp.length() - temp.replaceAll(" ", "").length() + 1; + + while (i < n) { + pol[i] = s.nextInt(); + i++; + } + nAll = n; + return pol; + } + + public static int[] inverse(int[] pol, int m) { + int[] ipol = new int[100]; + for (int i = 0; i <= m; i++) { + ipol[i] = pol[m - i]; + } + return ipol; + } + + public static void main(String[] args) throws FileNotFoundException, UnsupportedEncodingException { + int i; + int[] polynom1 = new int[100]; + int[] polynom2 = new int[100]; + + + Functions F = new Functions(); + InOut IO = new InOut(); + + String[] textFile = IO.read(); + String[] sendOut = new String[100]; + String tempString = null; + + polynom1 = sepInt(textFile, 0); + mAll = nAll; + polynom2 = sepInt(textFile, 1); + + polynom1 = inverse(polynom1, mAll); + for (i = 0; i < mAll; i++) + polynom1[i] = polynom1[i + 1]; + + polynom2 = inverse(polynom2, nAll); + for (i = 0; i < mAll; i++) + polynom2[i] = polynom2[i + 1]; + + i = 3; + + while (textFile[i] != null) { + if (textFile[i].startsWith("A")) { + + tempString = F.Add(polynom1, polynom2, mAll, nAll); + + } else if (textFile[i].startsWith("S")) { + + tempString = F.Subtract(polynom1, polynom2, mAll, nAll); + + } else if (textFile[i].startsWith("M") && textFile[i].matches(".*\\d+.*") == false) { + + tempString = F.Multiply(polynom1, polynom2, mAll, nAll); + + } else if (textFile[i].startsWith("M") && textFile[i].matches(".*\\d+.*") == true) { + + tempString = new String(F.MultScal(polynom1, mAll, Integer.parseInt(textFile[i].replaceAll("[\\D]", ""))) + +" "+ F.MultScal(polynom2, nAll, Integer.parseInt(textFile[i].replaceAll("[\\D]", "")))); + + } else if (textFile[i].startsWith("E")) { + + tempString = new String(F.Eval(polynom1, mAll, Integer.parseInt(textFile[i].replaceAll("[\\D]", ""))) + +" "+ F.Eval(polynom2, nAll, Integer.parseInt(textFile[i].replaceAll("[\\D]", "")))); + + } + sendOut[i-3] = new String(tempString); + i++; + } + IO.write(sendOut, i-3, textFile); + + } + } + diff --git a/Students/Gohonel/SecondWeek--/Results.txt b/Students/Gohonel/SecondWeek--/Results.txt new file mode 100644 index 0000000..3555820 --- /dev/null +++ b/Students/Gohonel/SecondWeek--/Results.txt @@ -0,0 +1,14 @@ +[-16, 3, -2, 7, -2, 0, 2, -4, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] + +[-18, 3, 2, -1, -2, 0, 2, -4, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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