From 06318483d3fdce6728ab0ae4df52e186b4d4b38c Mon Sep 17 00:00:00 2001 From: eboves Date: Thu, 30 Apr 2015 22:00:37 -0400 Subject: [PATCH 1/4] Assigment in class IntJ --- .DS_Store | Bin 0 -> 6148 bytes exercises/.DS_Store | Bin 0 -> 6148 bytes exercises/5_OOP-and-Intents/oop/.idea/.name | 1 + .../5_OOP-and-Intents/oop/.idea/compiler.xml | 23 + .../oop/.idea/copyright/profiles_settings.xml | 3 + .../5_OOP-and-Intents/oop/.idea/encodings.xml | 4 + .../5_OOP-and-Intents/oop/.idea/misc.xml | 205 ++++++++ .../5_OOP-and-Intents/oop/.idea/modules.xml | 8 + .../oop/.idea/scopes/scope_settings.xml | 5 + exercises/5_OOP-and-Intents/oop/.idea/vcs.xml | 6 + .../5_OOP-and-Intents/oop/.idea/workspace.xml | 461 ++++++++++++++++++ exercises/5_OOP-and-Intents/oop/oop.iml | 11 + .../5_OOP-and-Intents/oop/src/Clarinet.java | 30 ++ .../oop/src/ClarinetPlayer.java | 34 ++ .../oop/src/ReedInstrument.java | 15 + .../5_OOP-and-Intents/oop/src/ReedPLayer.java | 15 + 16 files changed, 821 insertions(+) create mode 100644 .DS_Store create mode 100644 exercises/.DS_Store create mode 100644 exercises/5_OOP-and-Intents/oop/.idea/.name create mode 100644 exercises/5_OOP-and-Intents/oop/.idea/compiler.xml create mode 100644 exercises/5_OOP-and-Intents/oop/.idea/copyright/profiles_settings.xml create mode 100644 exercises/5_OOP-and-Intents/oop/.idea/encodings.xml create mode 100644 exercises/5_OOP-and-Intents/oop/.idea/misc.xml create mode 100644 exercises/5_OOP-and-Intents/oop/.idea/modules.xml create mode 100644 exercises/5_OOP-and-Intents/oop/.idea/scopes/scope_settings.xml create mode 100644 exercises/5_OOP-and-Intents/oop/.idea/vcs.xml create mode 100644 exercises/5_OOP-and-Intents/oop/.idea/workspace.xml create mode 100644 exercises/5_OOP-and-Intents/oop/oop.iml create mode 100644 exercises/5_OOP-and-Intents/oop/src/Clarinet.java create mode 100644 exercises/5_OOP-and-Intents/oop/src/ClarinetPlayer.java create mode 100644 exercises/5_OOP-and-Intents/oop/src/ReedInstrument.java create mode 100644 exercises/5_OOP-and-Intents/oop/src/ReedPLayer.java diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..c6cbac9c0e5903a57ff43df37fa144b210103830 GIT binary patch literal 6148 zcmeHKI|>3Z5S>vA#m3SySMUZw^aNf&{1k#9xCoY8c`lFUn@^#vcG}1rn7m{%FCnkk z*%1+)Uv@K*iHHp0hH|r^YqoFRv0g?L2*(*)IY=XWX?9H~`+dN;BQUP;^D}>Y+?-BF z+on+gDnJFO02QDDUsNEA>u~(VGkFvhpaTD)fPEhd+^{CLf&S^h;4J`ffUq0p-b(Yz{_+IDH3{Dd>5a_?4uyEkdPvpXx7@D zyYqI!*LcJoub=!| zp0mSS#O<(sUB7HLYcH2c0VyB_q<|EV0tYBi&2)Ztz!{=S0V!~t3i$V-(H(o?m>8c9 zh8O{eGp571j#+}(JVES*VLuSI;@5dt0!AcC>BrW`7O#} zJyB5#NP&F?PIJ5P{(nRNW&YnMX(t7wz)>k+v(>|D$yci0I(a$owT=En_nI%d8`nW$ mh;~ejcFc{p + + + + \ No newline at end of file diff --git a/exercises/5_OOP-and-Intents/oop/.idea/copyright/profiles_settings.xml b/exercises/5_OOP-and-Intents/oop/.idea/copyright/profiles_settings.xml new file mode 100644 index 00000000..e7bedf33 --- /dev/null +++ b/exercises/5_OOP-and-Intents/oop/.idea/copyright/profiles_settings.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/exercises/5_OOP-and-Intents/oop/.idea/encodings.xml b/exercises/5_OOP-and-Intents/oop/.idea/encodings.xml new file mode 100644 index 00000000..d8210482 --- /dev/null +++ b/exercises/5_OOP-and-Intents/oop/.idea/encodings.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/exercises/5_OOP-and-Intents/oop/.idea/misc.xml b/exercises/5_OOP-and-Intents/oop/.idea/misc.xml new file mode 100644 index 00000000..17ea2006 --- /dev/null +++ b/exercises/5_OOP-and-Intents/oop/.idea/misc.xml @@ -0,0 +1,205 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1.7 + + + + + + + + 1.7 + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/exercises/5_OOP-and-Intents/oop/.idea/modules.xml b/exercises/5_OOP-and-Intents/oop/.idea/modules.xml new file mode 100644 index 00000000..b67b02b8 --- /dev/null +++ b/exercises/5_OOP-and-Intents/oop/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/exercises/5_OOP-and-Intents/oop/.idea/scopes/scope_settings.xml b/exercises/5_OOP-and-Intents/oop/.idea/scopes/scope_settings.xml new file mode 100644 index 00000000..922003b8 --- /dev/null +++ b/exercises/5_OOP-and-Intents/oop/.idea/scopes/scope_settings.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/exercises/5_OOP-and-Intents/oop/.idea/vcs.xml b/exercises/5_OOP-and-Intents/oop/.idea/vcs.xml new file mode 100644 index 00000000..6564d52d --- /dev/null +++ b/exercises/5_OOP-and-Intents/oop/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/exercises/5_OOP-and-Intents/oop/.idea/workspace.xml b/exercises/5_OOP-and-Intents/oop/.idea/workspace.xml new file mode 100644 index 00000000..5272c5da --- /dev/null +++ b/exercises/5_OOP-and-Intents/oop/.idea/workspace.xml @@ -0,0 +1,461 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1430441948779 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/exercises/5_OOP-and-Intents/oop/oop.iml b/exercises/5_OOP-and-Intents/oop/oop.iml new file mode 100644 index 00000000..c90834f2 --- /dev/null +++ b/exercises/5_OOP-and-Intents/oop/oop.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/exercises/5_OOP-and-Intents/oop/src/Clarinet.java b/exercises/5_OOP-and-Intents/oop/src/Clarinet.java new file mode 100644 index 00000000..0c540de4 --- /dev/null +++ b/exercises/5_OOP-and-Intents/oop/src/Clarinet.java @@ -0,0 +1,30 @@ +/** + * Created by elvisboves on 4/30/15. + */ +public class Clarinet extends ReedInstrument +{ + + @Override + boolean has_reed() + { + return true; + } + + @Override + void place_reed() + { + + } + + @Override + void remove_reed() + { + + } + + @Override + public String play() + { + return null; + } +} diff --git a/exercises/5_OOP-and-Intents/oop/src/ClarinetPlayer.java b/exercises/5_OOP-and-Intents/oop/src/ClarinetPlayer.java new file mode 100644 index 00000000..27855da8 --- /dev/null +++ b/exercises/5_OOP-and-Intents/oop/src/ClarinetPlayer.java @@ -0,0 +1,34 @@ +/** + * Created by elvisboves on 4/30/15. + */ +public class ClarinetPlayer extends Musician +{ + + // The ClarinetPlayer constructor should take in a Clarinet, + // and save it in a field called myClarine + private Clarinet clarinet; // this is how you create a field + + public ClarinetPlayer (Clarinet clarinet) { + this.clarinet = clarinet; + } + + //Add a method toggle_reed, which puts a reed on the Clarinet if it + //doesn't have one, and takes the reed off it if does + + public void toggle_reed () { + if (clarinet.has_reed()) { + clarinet.remove_reed(); + }else { + clarinet.place_reed(); + } + } + + @Override + public String play_instrument() + { + if (!clarinet.has_reed()) { + return null; + } + return clarinet.play(); + } +} diff --git a/exercises/5_OOP-and-Intents/oop/src/ReedInstrument.java b/exercises/5_OOP-and-Intents/oop/src/ReedInstrument.java new file mode 100644 index 00000000..dd1cedd9 --- /dev/null +++ b/exercises/5_OOP-and-Intents/oop/src/ReedInstrument.java @@ -0,0 +1,15 @@ +/** + * Created by elvisboves on 4/30/15. + */ +public abstract class ReedInstrument implements Instrument +{ + + boolean reed; + + abstract boolean has_reed (); + + abstract void place_reed (); + + abstract void remove_reed (); + +} diff --git a/exercises/5_OOP-and-Intents/oop/src/ReedPLayer.java b/exercises/5_OOP-and-Intents/oop/src/ReedPLayer.java new file mode 100644 index 00000000..93d63f69 --- /dev/null +++ b/exercises/5_OOP-and-Intents/oop/src/ReedPLayer.java @@ -0,0 +1,15 @@ +/** + * Created by elvisboves on 4/30/15. + */ +//Refactor: Create the abstract class ReedPlayer, which extends Musician. +// Port the functionality of ClarinetPlayer to ReedPlayer, including having +//the ReedPlayer keep a ReedInstrument field set in the constructor. + + +public abstract class ReedPLayer extends Musician +{ + public ReedPLayer () { + + } + +} From 6d496c87ac3f17c5ef20af924b05fa4981698c03 Mon Sep 17 00:00:00 2001 From: eboves Date: Mon, 4 May 2015 23:38:59 -0400 Subject: [PATCH 2/4] AnimalSort Complete --- .DS_Store | Bin 6148 -> 6148 bytes exercises/.DS_Store | Bin 6148 -> 6148 bytes homework/.DS_Store | Bin 0 -> 6148 bytes homework/week-0/.DS_Store | Bin 0 -> 6148 bytes homework/week-0/eboves/.DS_Store | Bin 0 -> 6148 bytes homework/week-0/eboves/AnimalSort/.DS_Store | Bin 0 -> 6148 bytes .../eboves/AnimalSort/.idea/compiler.xml | 23 ++ .../.idea/copyright/profiles_settings.xml | 3 + .../eboves/AnimalSort/.idea/description.html | 1 + .../eboves/AnimalSort/.idea/encodings.xml | 4 + .../week-0/eboves/AnimalSort/.idea/misc.xml | 12 ++ .../eboves/AnimalSort/.idea/modules.xml | 8 + .../AnimalSort/.idea/project-template.xml | 3 + .../.idea/scopes/scope_settings.xml | 5 + .../week-0/eboves/AnimalSort/.idea/vcs.xml | 6 + .../eboves/AnimalSort/.idea/workspace.xml | 198 ++++++++++++++++++ .../week-0/eboves/AnimalSort/AnimalSort.iml | 12 ++ .../week-0/eboves/AnimalSort/src/.DS_Store | Bin 0 -> 6148 bytes .../eboves/AnimalSort/src/nyc/.DS_Store | Bin 0 -> 6148 bytes .../eboves/AnimalSort/src/nyc/c4q/.DS_Store | Bin 0 -> 6148 bytes .../AnimalSort/src/nyc/c4q/eboves/Animal.java | 44 ++++ .../src/nyc/c4q/eboves/Domestic.java | 9 + .../src/nyc/c4q/eboves/DomesticCat.java | 57 +++++ .../AnimalSort/src/nyc/c4q/eboves/Main.java | 8 + 24 files changed, 393 insertions(+) create mode 100644 homework/.DS_Store create mode 100644 homework/week-0/.DS_Store create mode 100644 homework/week-0/eboves/.DS_Store create mode 100644 homework/week-0/eboves/AnimalSort/.DS_Store create mode 100644 homework/week-0/eboves/AnimalSort/.idea/compiler.xml create mode 100644 homework/week-0/eboves/AnimalSort/.idea/copyright/profiles_settings.xml create mode 100644 homework/week-0/eboves/AnimalSort/.idea/description.html create mode 100644 homework/week-0/eboves/AnimalSort/.idea/encodings.xml create mode 100644 homework/week-0/eboves/AnimalSort/.idea/misc.xml create mode 100644 homework/week-0/eboves/AnimalSort/.idea/modules.xml create mode 100644 homework/week-0/eboves/AnimalSort/.idea/project-template.xml create mode 100644 homework/week-0/eboves/AnimalSort/.idea/scopes/scope_settings.xml create mode 100644 homework/week-0/eboves/AnimalSort/.idea/vcs.xml create mode 100644 homework/week-0/eboves/AnimalSort/.idea/workspace.xml create mode 100644 homework/week-0/eboves/AnimalSort/AnimalSort.iml create mode 100644 homework/week-0/eboves/AnimalSort/src/.DS_Store create mode 100644 homework/week-0/eboves/AnimalSort/src/nyc/.DS_Store create mode 100644 homework/week-0/eboves/AnimalSort/src/nyc/c4q/.DS_Store create mode 100644 homework/week-0/eboves/AnimalSort/src/nyc/c4q/eboves/Animal.java create mode 100644 homework/week-0/eboves/AnimalSort/src/nyc/c4q/eboves/Domestic.java create mode 100644 homework/week-0/eboves/AnimalSort/src/nyc/c4q/eboves/DomesticCat.java create mode 100644 homework/week-0/eboves/AnimalSort/src/nyc/c4q/eboves/Main.java diff --git a/.DS_Store b/.DS_Store index c6cbac9c0e5903a57ff43df37fa144b210103830..767d982b6cd9a36f67d527aa6a7283a70869856c 100644 GIT binary patch delta 424 zcmZoMXfc=|#>B)qu~2NHo+2a5!~pA!2O1cGj2^jq1|Z;I$Y984$Yn@nC(l#+~i0nvb>)H0ynfW*Aiu*~Ajq|BVml1dIv5R4a)sIE3NwbW5Cw6v_%QK&XI zH_%ZqF*dKQ6*$1bA+2fZ=o?v3+qG!%lBLU*uQ+@Z4f21Z5@0|d63{asO&F48!9{sF`FZI;ImV3}+gLWUbMSKjLw@7N@640=MRY|#W`lG#KxnYd Nn?po4Fi&h?0RTC+a}@vp delta 72 zcmZoMXfc=|#>CJzu~2NHo+2aT!~knX#>qTPa+@2N+gUbGV7|t*nVo~51E^$kBlCCW a$^0U^oQw<%3!$Bl;+XOXm&6I%)o790KeT$QHcb~JJI}pe@2s37iG8mL$0m2Ha54M z?e-29_fGp&FwU!>49i(D2&XSiOUFq>_Ao5ROZ$1Ar@!qmI?_osa_>FKvoh3KGQARd za;&pBuLk)ni;I)M&UdWiay)YH52wi~gbu?jInsrWbgIku&Nh~jyE~tI`~8mc`u#;m z&3nCWM?HSjTP)lQ$Ju+ZfAH+ZWO4T4bSc3KY>N ztSy?O11ggO0Jgww1Z>PDFh&vjgtbNJ0g*No(1uD%F{BL#zoKzIVQtZd3rWd`q?ILQ zDAKGB^D8r4NZ%sY%m6dcWMJJkUA+IF{yqP1262lSU2dP)*DvR}` zqeoesUxjwOa}^i;p1;=}CSyqLMp<&EawS!&id(OSSI^&{PMe4Ax@flBv$~kJT8+AR zebAcC{2!k8^3~zd+l#^M!^cmbzkL1n{qCn-2@W5vkzI##_yxuSDRF+2N|**FEOd;+ zVV3IbJ^1H?%?BYQ28aP-V09UAJC?V-y01uYMhp-GPs9N34+0c1a9CP2TL(0z1OTjp z+X&cLOJI(07&t5~LJtVHsem?>yAp%jbnpuo7dR{}+H}TU@xk4bxvNmPc{+?QOgQ6# zMQVuwVqlR0to=ZIJpbSPyZ$#p)DQ#2!1H8)S5Lx|4$RG+txL1SvsQp!gQ8$uY4JV< j409AiEFQ)Cphmzi&;Se^mKMPSLO%kA25N|b|H{B$Z)0nk literal 0 HcmV?d00001 diff --git a/homework/week-0/eboves/.DS_Store b/homework/week-0/eboves/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..31a92a8e0771c6c7dc32c37df67f3ac51542245b GIT binary patch literal 6148 zcmeHKIZgvX5Ud6V7ET-z&KLN>V3`;A0~}6}7FOcOH{xA9&DBSMwUC*_s+M|crl)I0 zQ^EE&0NZ@-Z-6y`CEXEUKFrPc-Dh@D5hK!h#sdcIFyaj#v+Umk&b`7dUh#~VpZxv% z)9^TsgD1$OfE17dQa}nwfs-jvrFFSF*@-$x3P^!-QNX_sjqcbBr^NVlaEKOwxL`Pp z^XMgr%>%?=eJ0Q^+b(QKnffy zaGA@s*Z({EAN~I^Nh>KJ10UpQ9lE&i%bgqw*m*jlNDM3 literal 0 HcmV?d00001 diff --git a/homework/week-0/eboves/AnimalSort/.DS_Store b/homework/week-0/eboves/AnimalSort/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..9a874b5768f336915163bb88cd434575b859f936 GIT binary patch literal 6148 zcmeH~Jr2S!425ml0g0s}V-^m;4I%_5-~tF3k&vj^b9A16778<}(6eNJu~Vz<8=6`~ zboab&MFtUB!i}=AFfm2m$tVxGT*u4pe81nUlA49C} z?O@64YO)2RT{MRe%{!}2F))pG(Sih~)xkgosK7*lF7m<7{{#Hn{6A@7N(HFEpDCdI z{ + + + + \ No newline at end of file diff --git a/homework/week-0/eboves/AnimalSort/.idea/copyright/profiles_settings.xml b/homework/week-0/eboves/AnimalSort/.idea/copyright/profiles_settings.xml new file mode 100644 index 00000000..e7bedf33 --- /dev/null +++ b/homework/week-0/eboves/AnimalSort/.idea/copyright/profiles_settings.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/homework/week-0/eboves/AnimalSort/.idea/description.html b/homework/week-0/eboves/AnimalSort/.idea/description.html new file mode 100644 index 00000000..db5f1295 --- /dev/null +++ b/homework/week-0/eboves/AnimalSort/.idea/description.html @@ -0,0 +1 @@ +Simple Java application that includes a class with main() method \ No newline at end of file diff --git a/homework/week-0/eboves/AnimalSort/.idea/encodings.xml b/homework/week-0/eboves/AnimalSort/.idea/encodings.xml new file mode 100644 index 00000000..d8210482 --- /dev/null +++ b/homework/week-0/eboves/AnimalSort/.idea/encodings.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/homework/week-0/eboves/AnimalSort/.idea/misc.xml b/homework/week-0/eboves/AnimalSort/.idea/misc.xml new file mode 100644 index 00000000..ccf24ce4 --- /dev/null +++ b/homework/week-0/eboves/AnimalSort/.idea/misc.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/homework/week-0/eboves/AnimalSort/.idea/modules.xml b/homework/week-0/eboves/AnimalSort/.idea/modules.xml new file mode 100644 index 00000000..cef7570c --- /dev/null +++ b/homework/week-0/eboves/AnimalSort/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/homework/week-0/eboves/AnimalSort/.idea/project-template.xml b/homework/week-0/eboves/AnimalSort/.idea/project-template.xml new file mode 100644 index 00000000..1f08b887 --- /dev/null +++ b/homework/week-0/eboves/AnimalSort/.idea/project-template.xml @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/homework/week-0/eboves/AnimalSort/.idea/scopes/scope_settings.xml b/homework/week-0/eboves/AnimalSort/.idea/scopes/scope_settings.xml new file mode 100644 index 00000000..922003b8 --- /dev/null +++ b/homework/week-0/eboves/AnimalSort/.idea/scopes/scope_settings.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/homework/week-0/eboves/AnimalSort/.idea/vcs.xml b/homework/week-0/eboves/AnimalSort/.idea/vcs.xml new file mode 100644 index 00000000..6564d52d --- /dev/null +++ b/homework/week-0/eboves/AnimalSort/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/homework/week-0/eboves/AnimalSort/.idea/workspace.xml b/homework/week-0/eboves/AnimalSort/.idea/workspace.xml new file mode 100644 index 00000000..f5ae32a4 --- /dev/null +++ b/homework/week-0/eboves/AnimalSort/.idea/workspace.xml @@ -0,0 +1,198 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1430796938834 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/homework/week-0/eboves/AnimalSort/AnimalSort.iml b/homework/week-0/eboves/AnimalSort/AnimalSort.iml new file mode 100644 index 00000000..d5c07432 --- /dev/null +++ b/homework/week-0/eboves/AnimalSort/AnimalSort.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/homework/week-0/eboves/AnimalSort/src/.DS_Store b/homework/week-0/eboves/AnimalSort/src/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..14ee7d18f17df0c1f6f2c9a18b1a41d94250456e GIT binary patch literal 6148 zcmeH~Jr2S!425mzfW*>~F$)La1`&c2Z~+92hz^K>El211XQ42o3O!5q7dy4uzM-i_ zM7NL2Mx+;!1>7iW3nNqHbGgY=&X@c7dK!kSmE2}YE5Lgh?dLW@1*iZOpaN8Y3QS0W zJjfTz2|W`Zg$huCX((XdhXOa&WDEMI1HnfCutV7mYo8^+Vg;}!TM!kPMk^St>SKu2 zy&WuhT}`%Nw2S8Op?PPuDF&v|E?SVlv^p5502LT1Fps>q^M4QjHvf-Wm{I{M@Mj8W zw>#{%c&R*FKVHx3$E@1A!9l+q;q4~?i5vIYIqf#4$mxIozrYo8^+Vg;}!TM!kPMk^St>SKu2 zy&WuhT}`%Nw2S8Op?PPuDF&v|E?SVlv^p5502LT1Fps>m^Zy9{Hvf-Wm{I{M@Mj9> z;&3|b@ltuVe!QO5&snu~gM)rK!rM;(5<805a5wB1TYxp$f~dgwBj7SHP=TK+@B+F_ B5j6k+ literal 0 HcmV?d00001 diff --git a/homework/week-0/eboves/AnimalSort/src/nyc/c4q/.DS_Store b/homework/week-0/eboves/AnimalSort/src/nyc/c4q/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..a41e7cca62037ee0dda8a2343d53c9f76926b11a GIT binary patch literal 6148 zcmeHKQA-;^5Z;Z^Ui9TkTM&HNS0N7(mC(0qY9EEbiBhV>TkkLn$8E@65=sc%bALwF zwm+jF`XBr$zB#kI5kvIVhB9-^e3RLky}NIZ-3()lw+8VRV?JZd14XRVz&s;3jyfk5 z7g+-2W{!mAa+LREs^wfZ1s0J3T)P#PFv&C<0zO^8d)Z4>UNjnays}hXUU}oyR@d#m7T|Ekms2Jp}sQ=CUQgI@k-;Rpz)IZQVee@%FsFG2~fB#u$MWnK%|D^QzNM*4e zwe%p1^W)IYcckK?+wniN`^gYW+fkMrs$5Bxs^Ys>!>i-3kH=fhk97fNQWxW9vr!j2 z+s(?~m}LNaKM)_!|1U51|0anHF+dFbpA7KoUbxqScXMa!+*{&VD?m>{Q82Hx_*ept iIf@|{kK%PuBM=wp00s_Aix2^!KLUmZGQ_~EGVlOzZEKnU literal 0 HcmV?d00001 diff --git a/homework/week-0/eboves/AnimalSort/src/nyc/c4q/eboves/Animal.java b/homework/week-0/eboves/AnimalSort/src/nyc/c4q/eboves/Animal.java new file mode 100644 index 00000000..3df43b60 --- /dev/null +++ b/homework/week-0/eboves/AnimalSort/src/nyc/c4q/eboves/Animal.java @@ -0,0 +1,44 @@ +package com.company; +/** + * Created by elvisboves on 4/29/15. + */ +public class Animal implements Comparable +{ + private String species; + + public Animal() { + this.species = "nospecies"; + } + + public Animal(String species) { + this.species = species; + } + + public void setSpecies(String species) + { + this.species = species; + } + + public String getSpecies() + { + return this.species; + } + + @Override + public int compareTo(Animal o) + { + return this.getSpecies().compareTo(o.getSpecies()); + + } + + @Override + public boolean equals(Object obj) + { + if (obj instanceof Animal) + { + Animal a1 = (Animal) obj; + return this.getSpecies().equals(a1.getSpecies()); + }else + return false; + } +} diff --git a/homework/week-0/eboves/AnimalSort/src/nyc/c4q/eboves/Domestic.java b/homework/week-0/eboves/AnimalSort/src/nyc/c4q/eboves/Domestic.java new file mode 100644 index 00000000..c64e2fc6 --- /dev/null +++ b/homework/week-0/eboves/AnimalSort/src/nyc/c4q/eboves/Domestic.java @@ -0,0 +1,9 @@ +package com.company; +/** + * Created by elvisboves on 5/4/15. + */ +public interface Domestic +{ + String getName(); + void setName(String name); +} diff --git a/homework/week-0/eboves/AnimalSort/src/nyc/c4q/eboves/DomesticCat.java b/homework/week-0/eboves/AnimalSort/src/nyc/c4q/eboves/DomesticCat.java new file mode 100644 index 00000000..b7ce289b --- /dev/null +++ b/homework/week-0/eboves/AnimalSort/src/nyc/c4q/eboves/DomesticCat.java @@ -0,0 +1,57 @@ +package com.company; +/** + * Created by elvisboves on 5/4/15. + */ +public class DomesticCat extends Animal implements Domestic +{ + + private String name; + + + + public DomesticCat(String species, String name) + { + super(species); + this.name = name; + } + + + + @Override + public int compareTo(Animal o) + { + if(o instanceof Domestic) { + Domestic cat1 = (Domestic) o; + return this.getName().compareTo(cat1.getName()); + } + return super.compareTo(o); + + } + + @Override + public boolean equals(Object obj) + { + if(obj instanceof Domestic) + { + Domestic a2 = (Domestic) obj; + return this.getName().equals(a2.getName()); + } + else if (obj instanceof Animal ) { + + Animal a3 = (Animal) obj; + return super.equals(a3); + }else + return false; + } + + @Override + public String getName() + { + return name; + } + + public void setName(String name) + { + this.name = name; + } +} diff --git a/homework/week-0/eboves/AnimalSort/src/nyc/c4q/eboves/Main.java b/homework/week-0/eboves/AnimalSort/src/nyc/c4q/eboves/Main.java new file mode 100644 index 00000000..36f74843 --- /dev/null +++ b/homework/week-0/eboves/AnimalSort/src/nyc/c4q/eboves/Main.java @@ -0,0 +1,8 @@ +package nyc.c4q.eboves; + +public class Main { + + public static void main(String[] args) { + // write your code here + } +} From 6ba143d1c7667d22258df83fe7951c900083d521 Mon Sep 17 00:00:00 2001 From: eboves Date: Sat, 9 May 2015 14:18:12 -0400 Subject: [PATCH 3/4] Change the structure and initial commit --- .../AnimalSort/.idea => .idea}/compiler.xml | 0 .../copyright/profiles_settings.xml | 0 .../.idea => .idea}/description.html | 0 .../AnimalSort/.idea => .idea}/encodings.xml | 0 .idea/misc.xml | 50 +++ .idea/modules.xml | 8 + .../.idea => .idea}/project-template.xml | 0 .../.idea => .idea}/scopes/scope_settings.xml | 0 .idea/vcs.xml | 6 + .idea/workspace.xml | 385 ++++++++++++++++++ Calculator/.gitignore | 6 + Calculator/.idea/.name | 1 + Calculator/.idea/compiler.xml | 23 ++ .../.idea/copyright/profiles_settings.xml | 3 + Calculator/.idea/encodings.xml | 5 + Calculator/.idea/gradle.xml | 18 + Calculator/.idea/misc.xml | 10 + Calculator/.idea/modules.xml | 10 + Calculator/.idea/scopes/scope_settings.xml | 5 + Calculator/.idea/vcs.xml | 7 + Calculator/Calculator.iml | 19 + Calculator/app/.gitignore | 1 + Calculator/app/app.iml | 93 +++++ Calculator/app/build.gradle | 25 ++ Calculator/app/proguard-rules.pro | 17 + .../c4q/nyc/calculator/ApplicationTest.java | 13 + Calculator/app/src/main/AndroidManifest.xml | 21 + .../c4q/nyc/calculator/MainActivity.java | 76 ++++ .../app/src/main/res/layout/activity_main.xml | 217 ++++++++++ .../app/src/main/res/menu/menu_main.xml | 6 + .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin 0 -> 3418 bytes .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin 0 -> 2206 bytes .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 0 -> 4842 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 0 -> 7718 bytes .../app/src/main/res/values-w820dp/dimens.xml | 6 + Calculator/app/src/main/res/values/dimens.xml | 5 + .../app/src/main/res/values/strings.xml | 6 + Calculator/app/src/main/res/values/styles.xml | 8 + Calculator/build.gradle | 19 + Calculator/gradle.properties | 18 + Calculator/gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 49896 bytes .../gradle/wrapper/gradle-wrapper.properties | 6 + Calculator/gradlew | 164 ++++++++ Calculator/gradlew.bat | 90 ++++ Calculator/settings.gradle | 1 + FinalProject/.gitignore | 6 + FinalProject/.idea/.name | 1 + FinalProject/.idea/compiler.xml | 23 ++ .../.idea/copyright/profiles_settings.xml | 3 + FinalProject/.idea/encodings.xml | 5 + FinalProject/.idea/gradle.xml | 18 + FinalProject/.idea/misc.xml | 10 + FinalProject/.idea/modules.xml | 10 + FinalProject/.idea/scopes/scope_settings.xml | 5 + FinalProject/.idea/vcs.xml | 7 + FinalProject/FinalProject.iml | 19 + FinalProject/app/.gitignore | 1 + FinalProject/app/app.iml | 92 +++++ FinalProject/app/build.gradle | 25 ++ FinalProject/app/proguard-rules.pro | 17 + .../c4q/nyc/finalproject/ApplicationTest.java | 13 + FinalProject/app/src/main/AndroidManifest.xml | 21 + .../c4q/nyc/finalproject/MainActivity.java | 39 ++ .../app/src/main/res/layout/activity_main.xml | 0 .../app/src/main/res/menu/menu_main.xml | 6 + .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin 0 -> 3418 bytes .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin 0 -> 2206 bytes .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 0 -> 4842 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 0 -> 7718 bytes .../app/src/main/res/values-w820dp/dimens.xml | 6 + .../app/src/main/res/values/dimens.xml | 5 + .../app/src/main/res/values/strings.xml | 6 + .../app/src/main/res/values/styles.xml | 8 + FinalProject/build.gradle | 19 + FinalProject/gradle.properties | 18 + .../gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 49896 bytes .../gradle/wrapper/gradle-wrapper.properties | 6 + FinalProject/gradlew | 164 ++++++++ FinalProject/gradlew.bat | 90 ++++ FinalProject/settings.gradle | 1 + homework/.DS_Store | Bin 6148 -> 6148 bytes homework/{week-0 => eboves}/.DS_Store | Bin 6148 -> 6148 bytes .../eboves => eboves/week-0}/.DS_Store | Bin 6148 -> 6148 bytes .../week-0/AnimalSort}/.DS_Store | Bin 6148 -> 6148 bytes .../week-0/AnimalSort/.idea/compiler.xml | 23 ++ .../.idea/copyright/profiles_settings.xml | 3 + .../week-0/AnimalSort/.idea/description.html | 1 + .../week-0/AnimalSort/.idea/encodings.xml | 4 + .../week-0}/AnimalSort/.idea/misc.xml | 0 .../week-0}/AnimalSort/.idea/modules.xml | 0 .../AnimalSort/.idea/project-template.xml | 3 + .../.idea/scopes/scope_settings.xml | 5 + .../week-0}/AnimalSort/.idea/vcs.xml | 0 .../week-0}/AnimalSort/.idea/workspace.xml | 0 .../week-0}/AnimalSort/AnimalSort.iml | 0 .../week-0/AnimalSort/src}/.DS_Store | Bin 6148 -> 6148 bytes .../week-0/AnimalSort/src/nyc}/.DS_Store | Bin 6148 -> 6148 bytes .../week-0}/AnimalSort/src/nyc/c4q/.DS_Store | Bin 6148 -> 6148 bytes .../AnimalSort/src/nyc/c4q/eboves/Animal.java | 0 .../src/nyc/c4q/eboves/Domestic.java | 0 .../src/nyc/c4q/eboves/DomesticCat.java | 0 .../AnimalSort/src/nyc/c4q/eboves/Main.java | 0 homework/eboves/week-1/.DS_Store | Bin 0 -> 6148 bytes homework/eboves/week-1/HorosC/.gitignore | 6 + homework/eboves/week-1/HorosC/.idea/.name | 1 + .../eboves/week-1/HorosC/.idea/compiler.xml | 23 ++ .../.idea/copyright/profiles_settings.xml | 3 + .../eboves/week-1/HorosC/.idea/encodings.xml | 5 + .../eboves/week-1/HorosC/.idea/gradle.xml | 18 + .../inspectionProfiles/Project_Default.xml | 8 + .../inspectionProfiles/profiles_settings.xml | 7 + homework/eboves/week-1/HorosC/.idea/misc.xml | 10 + .../eboves/week-1/HorosC/.idea/modules.xml | 10 + .../HorosC/.idea/scopes/scope_settings.xml | 5 + homework/eboves/week-1/HorosC/.idea/vcs.xml | 7 + homework/eboves/week-1/HorosC/HorosC.iml | 19 + homework/eboves/week-1/HorosC/app/.gitignore | 1 + homework/eboves/week-1/HorosC/app/app.iml | 93 +++++ .../eboves/week-1/HorosC/app/build.gradle | 25 ++ .../week-1/HorosC/app/proguard-rules.pro | 17 + .../c4q/nyc/horosc/ApplicationTest.java | 13 + .../HorosC/app/src/main/AndroidManifest.xml | 21 + .../week-1/HorosC/app/src/main/Aries-web.png | Bin 0 -> 222862 bytes .../java/eboves/c4q/nyc/horosc/EnterDate.java | 21 + .../eboves/c4q/nyc/horosc/FindYourLove.java | 16 + .../java/eboves/c4q/nyc/horosc/HorosGame.java | 18 + .../eboves/c4q/nyc/horosc/MainActivity.java | 166 ++++++++ .../nyc/horosc/NavigationDrawerFragment.java | 282 +++++++++++++ .../eboves/c4q/nyc/horosc/SelectSign.java | 21 + .../src/main/res/drawable-hdpi/ic_drawer.png | Bin 0 -> 2829 bytes .../res/drawable-mdpi/drawer_shadow.9.png | Bin 0 -> 142 bytes .../src/main/res/drawable-mdpi/ic_drawer.png | Bin 0 -> 2820 bytes .../res/drawable-xhdpi/drawer_shadow.9.png | Bin 0 -> 174 bytes .../src/main/res/drawable-xhdpi/ic_drawer.png | Bin 0 -> 2836 bytes .../res/drawable-xxhdpi/drawer_shadow.9.png | Bin 0 -> 208 bytes .../main/res/drawable-xxhdpi/ic_drawer.png | Bin 0 -> 202 bytes .../app/src/main/res/layout/activity_main.xml | 32 ++ .../main/res/layout/fragment_enter_date.xml | 93 +++++ .../res/layout/fragment_find_your_love.xml | 63 +++ .../main/res/layout/fragment_horos_game.xml | 7 + .../app/src/main/res/layout/fragment_main.xml | 14 + .../res/layout/fragment_navigation_drawer.xml | 12 + .../main/res/layout/fragment_select_sign.xml | 161 ++++++++ .../HorosC/app/src/main/res/menu/global.xml | 5 + .../HorosC/app/src/main/res/menu/main.xml | 12 + .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin 0 -> 3418 bytes .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin 0 -> 2206 bytes .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 0 -> 4842 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 0 -> 7718 bytes .../app/src/main/res/values-w820dp/dimens.xml | 6 + .../HorosC/app/src/main/res/values/dimens.xml | 9 + .../app/src/main/res/values/strings.xml | 18 + .../HorosC/app/src/main/res/values/styles.xml | 8 + homework/eboves/week-1/HorosC/build.gradle | 19 + .../eboves/week-1/HorosC/gradle.properties | 18 + .../HorosC/gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 49896 bytes .../gradle/wrapper/gradle-wrapper.properties | 6 + homework/eboves/week-1/HorosC/gradlew | 164 ++++++++ homework/eboves/week-1/HorosC/gradlew.bat | 90 ++++ homework/eboves/week-1/HorosC/settings.gradle | 1 + .../unit-1/ny/c4q/eboves/Main.class | Bin 0 -> 1858 bytes .../unit-1/ny/c4q/eboves/UpperCase.class | Bin 0 -> 493 bytes src/ny/c4q/eboves/Main.java | 40 ++ src/ny/c4q/eboves/UpperCase.java | 15 + unit-1-exercises | 1 + unit-1.iml | 12 + 166 files changed, 3653 insertions(+) rename {homework/week-0/eboves/AnimalSort/.idea => .idea}/compiler.xml (100%) rename {homework/week-0/eboves/AnimalSort/.idea => .idea}/copyright/profiles_settings.xml (100%) rename {homework/week-0/eboves/AnimalSort/.idea => .idea}/description.html (100%) rename {homework/week-0/eboves/AnimalSort/.idea => .idea}/encodings.xml (100%) create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml rename {homework/week-0/eboves/AnimalSort/.idea => .idea}/project-template.xml (100%) rename {homework/week-0/eboves/AnimalSort/.idea => .idea}/scopes/scope_settings.xml (100%) create mode 100644 .idea/vcs.xml create mode 100644 .idea/workspace.xml create mode 100644 Calculator/.gitignore create mode 100644 Calculator/.idea/.name create mode 100644 Calculator/.idea/compiler.xml create mode 100644 Calculator/.idea/copyright/profiles_settings.xml create mode 100644 Calculator/.idea/encodings.xml create mode 100644 Calculator/.idea/gradle.xml create mode 100644 Calculator/.idea/misc.xml create mode 100644 Calculator/.idea/modules.xml create mode 100644 Calculator/.idea/scopes/scope_settings.xml create mode 100644 Calculator/.idea/vcs.xml create mode 100644 Calculator/Calculator.iml create mode 100644 Calculator/app/.gitignore create mode 100644 Calculator/app/app.iml create mode 100644 Calculator/app/build.gradle create mode 100644 Calculator/app/proguard-rules.pro create mode 100644 Calculator/app/src/androidTest/java/eboves/c4q/nyc/calculator/ApplicationTest.java create mode 100644 Calculator/app/src/main/AndroidManifest.xml create mode 100644 Calculator/app/src/main/java/eboves/c4q/nyc/calculator/MainActivity.java create mode 100644 Calculator/app/src/main/res/layout/activity_main.xml create mode 100644 Calculator/app/src/main/res/menu/menu_main.xml create mode 100644 Calculator/app/src/main/res/mipmap-hdpi/ic_launcher.png create mode 100644 Calculator/app/src/main/res/mipmap-mdpi/ic_launcher.png create mode 100644 Calculator/app/src/main/res/mipmap-xhdpi/ic_launcher.png create mode 100644 Calculator/app/src/main/res/mipmap-xxhdpi/ic_launcher.png create mode 100644 Calculator/app/src/main/res/values-w820dp/dimens.xml create mode 100644 Calculator/app/src/main/res/values/dimens.xml create mode 100644 Calculator/app/src/main/res/values/strings.xml create mode 100644 Calculator/app/src/main/res/values/styles.xml create mode 100644 Calculator/build.gradle create mode 100644 Calculator/gradle.properties create mode 100644 Calculator/gradle/wrapper/gradle-wrapper.jar create mode 100644 Calculator/gradle/wrapper/gradle-wrapper.properties create mode 100755 Calculator/gradlew create mode 100644 Calculator/gradlew.bat create mode 100644 Calculator/settings.gradle create mode 100644 FinalProject/.gitignore create mode 100644 FinalProject/.idea/.name create mode 100644 FinalProject/.idea/compiler.xml create mode 100644 FinalProject/.idea/copyright/profiles_settings.xml create mode 100644 FinalProject/.idea/encodings.xml create mode 100644 FinalProject/.idea/gradle.xml create mode 100644 FinalProject/.idea/misc.xml create mode 100644 FinalProject/.idea/modules.xml create mode 100644 FinalProject/.idea/scopes/scope_settings.xml create mode 100644 FinalProject/.idea/vcs.xml create mode 100644 FinalProject/FinalProject.iml create mode 100644 FinalProject/app/.gitignore create mode 100644 FinalProject/app/app.iml create mode 100644 FinalProject/app/build.gradle create mode 100644 FinalProject/app/proguard-rules.pro create mode 100644 FinalProject/app/src/androidTest/java/eboves/c4q/nyc/finalproject/ApplicationTest.java create mode 100644 FinalProject/app/src/main/AndroidManifest.xml create mode 100644 FinalProject/app/src/main/java/eboves/c4q/nyc/finalproject/MainActivity.java create mode 100644 FinalProject/app/src/main/res/layout/activity_main.xml create mode 100644 FinalProject/app/src/main/res/menu/menu_main.xml create mode 100644 FinalProject/app/src/main/res/mipmap-hdpi/ic_launcher.png create mode 100644 FinalProject/app/src/main/res/mipmap-mdpi/ic_launcher.png create mode 100644 FinalProject/app/src/main/res/mipmap-xhdpi/ic_launcher.png create mode 100644 FinalProject/app/src/main/res/mipmap-xxhdpi/ic_launcher.png create mode 100644 FinalProject/app/src/main/res/values-w820dp/dimens.xml create mode 100644 FinalProject/app/src/main/res/values/dimens.xml create mode 100644 FinalProject/app/src/main/res/values/strings.xml create mode 100644 FinalProject/app/src/main/res/values/styles.xml create mode 100644 FinalProject/build.gradle create mode 100644 FinalProject/gradle.properties create mode 100644 FinalProject/gradle/wrapper/gradle-wrapper.jar create mode 100644 FinalProject/gradle/wrapper/gradle-wrapper.properties create mode 100755 FinalProject/gradlew create mode 100644 FinalProject/gradlew.bat create mode 100644 FinalProject/settings.gradle rename homework/{week-0 => eboves}/.DS_Store (95%) rename homework/{week-0/eboves => eboves/week-0}/.DS_Store (98%) rename homework/{week-0/eboves/AnimalSort/src/nyc => eboves/week-0/AnimalSort}/.DS_Store (97%) create mode 100644 homework/eboves/week-0/AnimalSort/.idea/compiler.xml create mode 100644 homework/eboves/week-0/AnimalSort/.idea/copyright/profiles_settings.xml create mode 100644 homework/eboves/week-0/AnimalSort/.idea/description.html create mode 100644 homework/eboves/week-0/AnimalSort/.idea/encodings.xml rename homework/{week-0/eboves => eboves/week-0}/AnimalSort/.idea/misc.xml (100%) rename homework/{week-0/eboves => eboves/week-0}/AnimalSort/.idea/modules.xml (100%) create mode 100644 homework/eboves/week-0/AnimalSort/.idea/project-template.xml create mode 100644 homework/eboves/week-0/AnimalSort/.idea/scopes/scope_settings.xml rename homework/{week-0/eboves => eboves/week-0}/AnimalSort/.idea/vcs.xml (100%) rename homework/{week-0/eboves => eboves/week-0}/AnimalSort/.idea/workspace.xml (100%) rename homework/{week-0/eboves => eboves/week-0}/AnimalSort/AnimalSort.iml (100%) rename homework/{week-0/eboves/AnimalSort => eboves/week-0/AnimalSort/src}/.DS_Store (97%) rename homework/{week-0/eboves/AnimalSort/src => eboves/week-0/AnimalSort/src/nyc}/.DS_Store (97%) rename homework/{week-0/eboves => eboves/week-0}/AnimalSort/src/nyc/c4q/.DS_Store (98%) rename homework/{week-0/eboves => eboves/week-0}/AnimalSort/src/nyc/c4q/eboves/Animal.java (100%) rename homework/{week-0/eboves => eboves/week-0}/AnimalSort/src/nyc/c4q/eboves/Domestic.java (100%) rename homework/{week-0/eboves => eboves/week-0}/AnimalSort/src/nyc/c4q/eboves/DomesticCat.java (100%) rename homework/{week-0/eboves => eboves/week-0}/AnimalSort/src/nyc/c4q/eboves/Main.java (100%) create mode 100644 homework/eboves/week-1/.DS_Store create mode 100644 homework/eboves/week-1/HorosC/.gitignore create mode 100644 homework/eboves/week-1/HorosC/.idea/.name create mode 100644 homework/eboves/week-1/HorosC/.idea/compiler.xml create mode 100644 homework/eboves/week-1/HorosC/.idea/copyright/profiles_settings.xml create mode 100644 homework/eboves/week-1/HorosC/.idea/encodings.xml create mode 100644 homework/eboves/week-1/HorosC/.idea/gradle.xml create mode 100644 homework/eboves/week-1/HorosC/.idea/inspectionProfiles/Project_Default.xml create mode 100644 homework/eboves/week-1/HorosC/.idea/inspectionProfiles/profiles_settings.xml create mode 100644 homework/eboves/week-1/HorosC/.idea/misc.xml create mode 100644 homework/eboves/week-1/HorosC/.idea/modules.xml create mode 100644 homework/eboves/week-1/HorosC/.idea/scopes/scope_settings.xml create mode 100644 homework/eboves/week-1/HorosC/.idea/vcs.xml create mode 100644 homework/eboves/week-1/HorosC/HorosC.iml create mode 100644 homework/eboves/week-1/HorosC/app/.gitignore create mode 100644 homework/eboves/week-1/HorosC/app/app.iml create mode 100644 homework/eboves/week-1/HorosC/app/build.gradle create mode 100644 homework/eboves/week-1/HorosC/app/proguard-rules.pro create mode 100644 homework/eboves/week-1/HorosC/app/src/androidTest/java/eboves/c4q/nyc/horosc/ApplicationTest.java create mode 100644 homework/eboves/week-1/HorosC/app/src/main/AndroidManifest.xml create mode 100644 homework/eboves/week-1/HorosC/app/src/main/Aries-web.png create mode 100644 homework/eboves/week-1/HorosC/app/src/main/java/eboves/c4q/nyc/horosc/EnterDate.java create mode 100644 homework/eboves/week-1/HorosC/app/src/main/java/eboves/c4q/nyc/horosc/FindYourLove.java create mode 100644 homework/eboves/week-1/HorosC/app/src/main/java/eboves/c4q/nyc/horosc/HorosGame.java create mode 100644 homework/eboves/week-1/HorosC/app/src/main/java/eboves/c4q/nyc/horosc/MainActivity.java create mode 100644 homework/eboves/week-1/HorosC/app/src/main/java/eboves/c4q/nyc/horosc/NavigationDrawerFragment.java create mode 100644 homework/eboves/week-1/HorosC/app/src/main/java/eboves/c4q/nyc/horosc/SelectSign.java create mode 100644 homework/eboves/week-1/HorosC/app/src/main/res/drawable-hdpi/ic_drawer.png create mode 100644 homework/eboves/week-1/HorosC/app/src/main/res/drawable-mdpi/drawer_shadow.9.png create mode 100644 homework/eboves/week-1/HorosC/app/src/main/res/drawable-mdpi/ic_drawer.png create mode 100644 homework/eboves/week-1/HorosC/app/src/main/res/drawable-xhdpi/drawer_shadow.9.png create mode 100644 homework/eboves/week-1/HorosC/app/src/main/res/drawable-xhdpi/ic_drawer.png create mode 100644 homework/eboves/week-1/HorosC/app/src/main/res/drawable-xxhdpi/drawer_shadow.9.png create mode 100644 homework/eboves/week-1/HorosC/app/src/main/res/drawable-xxhdpi/ic_drawer.png create mode 100644 homework/eboves/week-1/HorosC/app/src/main/res/layout/activity_main.xml create mode 100644 homework/eboves/week-1/HorosC/app/src/main/res/layout/fragment_enter_date.xml create mode 100644 homework/eboves/week-1/HorosC/app/src/main/res/layout/fragment_find_your_love.xml create mode 100644 homework/eboves/week-1/HorosC/app/src/main/res/layout/fragment_horos_game.xml create mode 100644 homework/eboves/week-1/HorosC/app/src/main/res/layout/fragment_main.xml create mode 100644 homework/eboves/week-1/HorosC/app/src/main/res/layout/fragment_navigation_drawer.xml create mode 100644 homework/eboves/week-1/HorosC/app/src/main/res/layout/fragment_select_sign.xml create mode 100644 homework/eboves/week-1/HorosC/app/src/main/res/menu/global.xml create mode 100644 homework/eboves/week-1/HorosC/app/src/main/res/menu/main.xml create mode 100644 homework/eboves/week-1/HorosC/app/src/main/res/mipmap-hdpi/ic_launcher.png create mode 100644 homework/eboves/week-1/HorosC/app/src/main/res/mipmap-mdpi/ic_launcher.png create mode 100644 homework/eboves/week-1/HorosC/app/src/main/res/mipmap-xhdpi/ic_launcher.png create mode 100644 homework/eboves/week-1/HorosC/app/src/main/res/mipmap-xxhdpi/ic_launcher.png create mode 100644 homework/eboves/week-1/HorosC/app/src/main/res/values-w820dp/dimens.xml create mode 100644 homework/eboves/week-1/HorosC/app/src/main/res/values/dimens.xml create mode 100644 homework/eboves/week-1/HorosC/app/src/main/res/values/strings.xml create mode 100644 homework/eboves/week-1/HorosC/app/src/main/res/values/styles.xml create mode 100644 homework/eboves/week-1/HorosC/build.gradle create mode 100644 homework/eboves/week-1/HorosC/gradle.properties create mode 100644 homework/eboves/week-1/HorosC/gradle/wrapper/gradle-wrapper.jar create mode 100644 homework/eboves/week-1/HorosC/gradle/wrapper/gradle-wrapper.properties create mode 100755 homework/eboves/week-1/HorosC/gradlew create mode 100644 homework/eboves/week-1/HorosC/gradlew.bat create mode 100644 homework/eboves/week-1/HorosC/settings.gradle create mode 100644 out/production/unit-1/ny/c4q/eboves/Main.class create mode 100644 out/production/unit-1/ny/c4q/eboves/UpperCase.class create mode 100644 src/ny/c4q/eboves/Main.java create mode 100644 src/ny/c4q/eboves/UpperCase.java create mode 160000 unit-1-exercises create mode 100644 unit-1.iml diff --git a/homework/week-0/eboves/AnimalSort/.idea/compiler.xml b/.idea/compiler.xml similarity index 100% rename from homework/week-0/eboves/AnimalSort/.idea/compiler.xml rename to .idea/compiler.xml diff --git a/homework/week-0/eboves/AnimalSort/.idea/copyright/profiles_settings.xml b/.idea/copyright/profiles_settings.xml similarity index 100% rename from homework/week-0/eboves/AnimalSort/.idea/copyright/profiles_settings.xml rename to .idea/copyright/profiles_settings.xml diff --git a/homework/week-0/eboves/AnimalSort/.idea/description.html b/.idea/description.html similarity index 100% rename from homework/week-0/eboves/AnimalSort/.idea/description.html rename to .idea/description.html diff --git a/homework/week-0/eboves/AnimalSort/.idea/encodings.xml b/.idea/encodings.xml similarity index 100% rename from homework/week-0/eboves/AnimalSort/.idea/encodings.xml rename to .idea/encodings.xml diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 00000000..b63395b0 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 00000000..7471dbc5 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/homework/week-0/eboves/AnimalSort/.idea/project-template.xml b/.idea/project-template.xml similarity index 100% rename from homework/week-0/eboves/AnimalSort/.idea/project-template.xml rename to .idea/project-template.xml diff --git a/homework/week-0/eboves/AnimalSort/.idea/scopes/scope_settings.xml b/.idea/scopes/scope_settings.xml similarity index 100% rename from homework/week-0/eboves/AnimalSort/.idea/scopes/scope_settings.xml rename to .idea/scopes/scope_settings.xml diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 00000000..35eb1ddf --- /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 00000000..738df303 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,385 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1431180405762 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Calculator/.gitignore b/Calculator/.gitignore new file mode 100644 index 00000000..afbdab33 --- /dev/null +++ b/Calculator/.gitignore @@ -0,0 +1,6 @@ +.gradle +/local.properties +/.idea/workspace.xml +/.idea/libraries +.DS_Store +/build diff --git a/Calculator/.idea/.name b/Calculator/.idea/.name new file mode 100644 index 00000000..ca347468 --- /dev/null +++ b/Calculator/.idea/.name @@ -0,0 +1 @@ +Calculator \ No newline at end of file diff --git a/Calculator/.idea/compiler.xml b/Calculator/.idea/compiler.xml new file mode 100644 index 00000000..217af471 --- /dev/null +++ b/Calculator/.idea/compiler.xml @@ -0,0 +1,23 @@ + + + + + + diff --git a/Calculator/.idea/copyright/profiles_settings.xml b/Calculator/.idea/copyright/profiles_settings.xml new file mode 100644 index 00000000..e7bedf33 --- /dev/null +++ b/Calculator/.idea/copyright/profiles_settings.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/Calculator/.idea/encodings.xml b/Calculator/.idea/encodings.xml new file mode 100644 index 00000000..e206d70d --- /dev/null +++ b/Calculator/.idea/encodings.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/Calculator/.idea/gradle.xml b/Calculator/.idea/gradle.xml new file mode 100644 index 00000000..736c7b5c --- /dev/null +++ b/Calculator/.idea/gradle.xml @@ -0,0 +1,18 @@ + + + + + + + diff --git a/Calculator/.idea/misc.xml b/Calculator/.idea/misc.xml new file mode 100644 index 00000000..59436c98 --- /dev/null +++ b/Calculator/.idea/misc.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/Calculator/.idea/modules.xml b/Calculator/.idea/modules.xml new file mode 100644 index 00000000..f8fed43f --- /dev/null +++ b/Calculator/.idea/modules.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/Calculator/.idea/scopes/scope_settings.xml b/Calculator/.idea/scopes/scope_settings.xml new file mode 100644 index 00000000..922003b8 --- /dev/null +++ b/Calculator/.idea/scopes/scope_settings.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/Calculator/.idea/vcs.xml b/Calculator/.idea/vcs.xml new file mode 100644 index 00000000..def6a6a1 --- /dev/null +++ b/Calculator/.idea/vcs.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/Calculator/Calculator.iml b/Calculator/Calculator.iml new file mode 100644 index 00000000..0bb6048a --- /dev/null +++ b/Calculator/Calculator.iml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + diff --git a/Calculator/app/.gitignore b/Calculator/app/.gitignore new file mode 100644 index 00000000..796b96d1 --- /dev/null +++ b/Calculator/app/.gitignore @@ -0,0 +1 @@ +/build diff --git a/Calculator/app/app.iml b/Calculator/app/app.iml new file mode 100644 index 00000000..3e7a1761 --- /dev/null +++ b/Calculator/app/app.iml @@ -0,0 +1,93 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Calculator/app/build.gradle b/Calculator/app/build.gradle new file mode 100644 index 00000000..58653a1b --- /dev/null +++ b/Calculator/app/build.gradle @@ -0,0 +1,25 @@ +apply plugin: 'com.android.application' + +android { + compileSdkVersion 22 + buildToolsVersion "22.0.1" + + defaultConfig { + applicationId "eboves.c4q.nyc.calculator" + minSdkVersion 15 + targetSdkVersion 22 + versionCode 1 + versionName "1.0" + } + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + } + } +} + +dependencies { + compile fileTree(dir: 'libs', include: ['*.jar']) + compile 'com.android.support:appcompat-v7:22.1.1' +} diff --git a/Calculator/app/proguard-rules.pro b/Calculator/app/proguard-rules.pro new file mode 100644 index 00000000..3f60f63b --- /dev/null +++ b/Calculator/app/proguard-rules.pro @@ -0,0 +1,17 @@ +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in /Users/elvisboves/Library/Android/sdk/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the proguardFiles +# directive in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} diff --git a/Calculator/app/src/androidTest/java/eboves/c4q/nyc/calculator/ApplicationTest.java b/Calculator/app/src/androidTest/java/eboves/c4q/nyc/calculator/ApplicationTest.java new file mode 100644 index 00000000..64378750 --- /dev/null +++ b/Calculator/app/src/androidTest/java/eboves/c4q/nyc/calculator/ApplicationTest.java @@ -0,0 +1,13 @@ +package eboves.c4q.nyc.calculator; + +import android.app.Application; +import android.test.ApplicationTestCase; + +/** + * Testing Fundamentals + */ +public class ApplicationTest extends ApplicationTestCase { + public ApplicationTest() { + super(Application.class); + } +} \ No newline at end of file diff --git a/Calculator/app/src/main/AndroidManifest.xml b/Calculator/app/src/main/AndroidManifest.xml new file mode 100644 index 00000000..9663a5c0 --- /dev/null +++ b/Calculator/app/src/main/AndroidManifest.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + diff --git a/Calculator/app/src/main/java/eboves/c4q/nyc/calculator/MainActivity.java b/Calculator/app/src/main/java/eboves/c4q/nyc/calculator/MainActivity.java new file mode 100644 index 00000000..034580f1 --- /dev/null +++ b/Calculator/app/src/main/java/eboves/c4q/nyc/calculator/MainActivity.java @@ -0,0 +1,76 @@ +package eboves.c4q.nyc.calculator; + +import android.support.v7.app.ActionBarActivity; +import android.os.Bundle; +import android.view.Menu; +import android.view.MenuItem; +import android.view.View; +import android.widget.Button; +import android.widget.EditText; + + +public class MainActivity extends ActionBarActivity { + + EditText result; + Button btnAdd; + Button btnSubtract; + Button btnMultiply; + Button btnDivide; + Button btnPercentage; + Button btnEqual; + Button btnClr; + Button btnDot; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + + // associate editText + result = (EditText) findViewById(R.id.editResult); + + // associate buttons + btnAdd = (Button) findViewById(R.id.butAddition); + btnSubtract = (Button) findViewById(R.id.butSustraction); + btnMultiply = (Button) findViewById(R.id.butMultiply); + btnDivide = (Button) findViewById(R.id.butDivision); + btnPercentage = (Button) findViewById(R.id.butPorcentage); + btnEqual = (Button) findViewById(R.id.butEquals); + btnClr = (Button) findViewById(R.id.butClr); + btnDot = (Button) findViewById(R.id.butDot); + + //action take place + + btnAdd.setOnClickListener(new View.OnClickListener() { + + @Override + public void onClick(View view) { + + } + }); + + } + + + @Override + public boolean onCreateOptionsMenu(Menu menu) { + // Inflate the menu; this adds items to the action bar if it is present. + getMenuInflater().inflate(R.menu.menu_main, menu); + return true; + } + + @Override + public boolean onOptionsItemSelected(MenuItem item) { + // Handle action bar item clicks here. The action bar will + // automatically handle clicks on the Home/Up button, so long + // as you specify a parent activity in AndroidManifest.xml. + int id = item.getItemId(); + + //noinspection SimplifiableIfStatement + if (id == R.id.action_settings) { + return true; + } + + return super.onOptionsItemSelected(item); + } +} diff --git a/Calculator/app/src/main/res/layout/activity_main.xml b/Calculator/app/src/main/res/layout/activity_main.xml new file mode 100644 index 00000000..f9f75d75 --- /dev/null +++ b/Calculator/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,217 @@ + + + + + + +