diff --git a/HW_05-01/.idea/compiler.xml b/HW_05-01/.idea/compiler.xml
new file mode 100644
index 00000000..a8523149
--- /dev/null
+++ b/HW_05-01/.idea/compiler.xml
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/HW_05-01/.idea/copyright/profiles_settings.xml b/HW_05-01/.idea/copyright/profiles_settings.xml
new file mode 100644
index 00000000..e7bedf33
--- /dev/null
+++ b/HW_05-01/.idea/copyright/profiles_settings.xml
@@ -0,0 +1,3 @@
+
+
+
\ No newline at end of file
diff --git a/HW_05-01/.idea/description.html b/HW_05-01/.idea/description.html
new file mode 100644
index 00000000..db5f1295
--- /dev/null
+++ b/HW_05-01/.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/HW_05-01/.idea/encodings.xml b/HW_05-01/.idea/encodings.xml
new file mode 100644
index 00000000..d8210482
--- /dev/null
+++ b/HW_05-01/.idea/encodings.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/HW_05-01/.idea/misc.xml b/HW_05-01/.idea/misc.xml
new file mode 100644
index 00000000..ccf24ce4
--- /dev/null
+++ b/HW_05-01/.idea/misc.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/HW_05-01/.idea/modules.xml b/HW_05-01/.idea/modules.xml
new file mode 100644
index 00000000..d2dde6bf
--- /dev/null
+++ b/HW_05-01/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/HW_05-01/.idea/project-template.xml b/HW_05-01/.idea/project-template.xml
new file mode 100644
index 00000000..1f08b887
--- /dev/null
+++ b/HW_05-01/.idea/project-template.xml
@@ -0,0 +1,3 @@
+
+ IJ_BASE_PACKAGE
+
\ No newline at end of file
diff --git a/HW_05-01/.idea/scopes/scope_settings.xml b/HW_05-01/.idea/scopes/scope_settings.xml
new file mode 100644
index 00000000..922003b8
--- /dev/null
+++ b/HW_05-01/.idea/scopes/scope_settings.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/HW_05-01/.idea/uiDesigner.xml b/HW_05-01/.idea/uiDesigner.xml
new file mode 100644
index 00000000..e96534fb
--- /dev/null
+++ b/HW_05-01/.idea/uiDesigner.xml
@@ -0,0 +1,124 @@
+
+
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+
+
+
\ No newline at end of file
diff --git a/HW_05-01/.idea/vcs.xml b/HW_05-01/.idea/vcs.xml
new file mode 100644
index 00000000..6564d52d
--- /dev/null
+++ b/HW_05-01/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/HW_05-01/.idea/workspace.xml b/HW_05-01/.idea/workspace.xml
new file mode 100644
index 00000000..e69a869e
--- /dev/null
+++ b/HW_05-01/.idea/workspace.xml
@@ -0,0 +1,943 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1430083781755
+
+ 1430083781755
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/HW_05-01/HW_05-01.iml b/HW_05-01/HW_05-01.iml
new file mode 100644
index 00000000..d5c07432
--- /dev/null
+++ b/HW_05-01/HW_05-01.iml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/HW_05-01/out/production/HW_05-01/hw0501/Animal.class b/HW_05-01/out/production/HW_05-01/hw0501/Animal.class
new file mode 100644
index 00000000..c45d3ab6
Binary files /dev/null and b/HW_05-01/out/production/HW_05-01/hw0501/Animal.class differ
diff --git a/HW_05-01/out/production/HW_05-01/hw0501/Cards.class b/HW_05-01/out/production/HW_05-01/hw0501/Cards.class
new file mode 100644
index 00000000..12c4d10a
Binary files /dev/null and b/HW_05-01/out/production/HW_05-01/hw0501/Cards.class differ
diff --git a/HW_05-01/out/production/HW_05-01/hw0501/Character.class b/HW_05-01/out/production/HW_05-01/hw0501/Character.class
new file mode 100644
index 00000000..717de720
Binary files /dev/null and b/HW_05-01/out/production/HW_05-01/hw0501/Character.class differ
diff --git a/HW_05-01/out/production/HW_05-01/hw0501/Domestic.class b/HW_05-01/out/production/HW_05-01/hw0501/Domestic.class
new file mode 100644
index 00000000..4ae28b6e
Binary files /dev/null and b/HW_05-01/out/production/HW_05-01/hw0501/Domestic.class differ
diff --git a/HW_05-01/out/production/HW_05-01/hw0501/DomesticCat.class b/HW_05-01/out/production/HW_05-01/hw0501/DomesticCat.class
new file mode 100644
index 00000000..2cd12c6c
Binary files /dev/null and b/HW_05-01/out/production/HW_05-01/hw0501/DomesticCat.class differ
diff --git a/HW_05-01/out/production/HW_05-01/hw0501/Game.class b/HW_05-01/out/production/HW_05-01/hw0501/Game.class
new file mode 100644
index 00000000..f6086b5c
Binary files /dev/null and b/HW_05-01/out/production/HW_05-01/hw0501/Game.class differ
diff --git a/HW_05-01/out/production/HW_05-01/hw0501/Main.class b/HW_05-01/out/production/HW_05-01/hw0501/Main.class
new file mode 100644
index 00000000..df2a908a
Binary files /dev/null and b/HW_05-01/out/production/HW_05-01/hw0501/Main.class differ
diff --git a/HW_05-01/out/production/HW_05-01/hw0501/MyCharacter.class b/HW_05-01/out/production/HW_05-01/hw0501/MyCharacter.class
new file mode 100644
index 00000000..6866b884
Binary files /dev/null and b/HW_05-01/out/production/HW_05-01/hw0501/MyCharacter.class differ
diff --git a/HW_05-01/out/production/HW_05-01/hw0501/MyRoom.class b/HW_05-01/out/production/HW_05-01/hw0501/MyRoom.class
new file mode 100644
index 00000000..9dd38d44
Binary files /dev/null and b/HW_05-01/out/production/HW_05-01/hw0501/MyRoom.class differ
diff --git a/HW_05-01/out/production/HW_05-01/hw0501/MyWeapon.class b/HW_05-01/out/production/HW_05-01/hw0501/MyWeapon.class
new file mode 100644
index 00000000..e598ceff
Binary files /dev/null and b/HW_05-01/out/production/HW_05-01/hw0501/MyWeapon.class differ
diff --git a/HW_05-01/out/production/HW_05-01/hw0501/PlayingCards.class b/HW_05-01/out/production/HW_05-01/hw0501/PlayingCards.class
new file mode 100644
index 00000000..ae702cd8
Binary files /dev/null and b/HW_05-01/out/production/HW_05-01/hw0501/PlayingCards.class differ
diff --git a/HW_05-01/out/production/HW_05-01/hw0501/Room.class b/HW_05-01/out/production/HW_05-01/hw0501/Room.class
new file mode 100644
index 00000000..1c3a92ec
Binary files /dev/null and b/HW_05-01/out/production/HW_05-01/hw0501/Room.class differ
diff --git a/HW_05-01/out/production/HW_05-01/hw0501/UseWeapon.class b/HW_05-01/out/production/HW_05-01/hw0501/UseWeapon.class
new file mode 100644
index 00000000..f86b26f2
Binary files /dev/null and b/HW_05-01/out/production/HW_05-01/hw0501/UseWeapon.class differ
diff --git a/HW_05-01/out/production/HW_05-01/hw0501/Weapon.class b/HW_05-01/out/production/HW_05-01/hw0501/Weapon.class
new file mode 100644
index 00000000..af8ebc6d
Binary files /dev/null and b/HW_05-01/out/production/HW_05-01/hw0501/Weapon.class differ
diff --git a/HW_05-01/src/hw0501/Animal.java b/HW_05-01/src/hw0501/Animal.java
new file mode 100644
index 00000000..12b75a52
--- /dev/null
+++ b/HW_05-01/src/hw0501/Animal.java
@@ -0,0 +1,38 @@
+package hw0501;
+import java.util.ArrayList;
+import java.util.Collections;
+
+/**
+ * Access Code 2.1
+ * Ray Acevedo
+ * Animal.java
+ */
+
+public class Animal implements Comparable
+{
+ String speciesName;
+ public Animal(){}
+ public Animal(String speciesName){}
+ public void setSpeciesName (String speciesName){speciesName = this.speciesName;}
+ public String getSpeciesName(){return speciesName;}
+
+
+ public static void putInAlphabetical (Animal a, Animal b)
+ {
+ ArrayListanimals = new ArrayList();
+ animals.add(a);
+ animals.add(b);
+ Collections.sort(animals);
+ for(Animal animal:animals){
+ System.out.println(animal);
+ }
+ }
+
+ @Override
+ public int compareTo(Animal animal)
+ {
+ return speciesName.compareTo(animal.getSpeciesName());
+ }
+
+ public static void main(String[] args){}
+}
\ No newline at end of file
diff --git a/HW_05-01/src/hw0501/Cards.java b/HW_05-01/src/hw0501/Cards.java
new file mode 100644
index 00000000..e597a27a
--- /dev/null
+++ b/HW_05-01/src/hw0501/Cards.java
@@ -0,0 +1,38 @@
+package hw0501;
+
+/**
+ * Access Code 2.1
+ * Ray Acevedo
+ * PlayingCards.java
+ */
+
+public class Cards
+{
+ String suite;
+ int cardNumber;
+
+
+ public Cards(){}
+
+ public Cards(String suite, int cardNumber)
+ {
+ this.suite = suite;
+ this.cardNumber = cardNumber;
+ }
+
+ public void setSuite(String suite)
+ {
+ this.suite = suite;
+ }
+
+ public String getSuite() {return suite;}
+
+ public void setCardNumber(int cardNumber) {}
+
+ public int getCardNumber()
+ {
+ return cardNumber;
+ }
+
+ public static void main(String[] args){}
+}
\ No newline at end of file
diff --git a/HW_05-01/src/hw0501/Character.java b/HW_05-01/src/hw0501/Character.java
new file mode 100644
index 00000000..70e788bd
--- /dev/null
+++ b/HW_05-01/src/hw0501/Character.java
@@ -0,0 +1,14 @@
+package hw0501;
+/**
+ * Access Code 2.1
+ * Ray Acevedo
+ * Character.java
+ */
+public abstract class Character
+{
+ String name;
+ Weapon weapon;
+ int height;
+ int weight;
+}
+
diff --git a/HW_05-01/src/hw0501/Domestic.java b/HW_05-01/src/hw0501/Domestic.java
new file mode 100644
index 00000000..4913f9b9
--- /dev/null
+++ b/HW_05-01/src/hw0501/Domestic.java
@@ -0,0 +1,12 @@
+package hw0501;
+/**
+ * Access Code 2.1
+ * Ray Acevedo
+ * Domestic.java
+ */
+public interface Domestic
+{
+ public void setName (String Name);
+
+ public String getName();
+}
diff --git a/HW_05-01/src/hw0501/DomesticCat.java b/HW_05-01/src/hw0501/DomesticCat.java
new file mode 100644
index 00000000..d37ba84e
--- /dev/null
+++ b/HW_05-01/src/hw0501/DomesticCat.java
@@ -0,0 +1,41 @@
+package hw0501;
+import java.util.ArrayList;
+import java.util.Arrays;
+
+/**
+ * Access Code 2.1
+ * Ray Acevedo
+ * DomesticCat.java
+ */
+public class DomesticCat extends Animal implements Domestic
+{
+ private String name;
+ private String species;
+
+
+ public DomesticCat (){}
+ public DomesticCat (String name){}
+ public DomesticCat (String name, String species){
+ this.name=name;
+ this.species=species;
+ }
+ @Override
+ public int compareTo(Animal animal)
+ {
+ animal = new DomesticCat();
+ DomesticCat domesticCat = (DomesticCat) animal;
+ return name.compareTo(domesticCat.getName());
+ }
+
+ @Override
+ public void setName(String Name)
+ {
+ this.name=name;
+ }
+
+ @Override
+ public String getName()
+ {
+ return name;
+ }
+}
diff --git a/HW_05-01/src/hw0501/Game.java b/HW_05-01/src/hw0501/Game.java
new file mode 100644
index 00000000..aba93280
--- /dev/null
+++ b/HW_05-01/src/hw0501/Game.java
@@ -0,0 +1,14 @@
+package hw0501;
+import java.util.ArrayList;
+
+
+/**
+ * Access Code 2.1
+ * Ray Acevedo
+ * Game.java
+ */
+
+public abstract class Game
+{
+ protected abstract ArrayList getPieces();
+}
diff --git a/HW_05-01/src/hw0501/Main.java b/HW_05-01/src/hw0501/Main.java
new file mode 100644
index 00000000..2763ae86
--- /dev/null
+++ b/HW_05-01/src/hw0501/Main.java
@@ -0,0 +1,16 @@
+package hw0501;
+
+/**
+ * Access Code 2.1
+ * Ray Acevedo
+ * Main.java
+ */
+
+public class Main {
+ public static void main(String[] args) {
+
+ }
+}
+
+
+
diff --git a/HW_05-01/src/hw0501/MyCharacter.java b/HW_05-01/src/hw0501/MyCharacter.java
new file mode 100644
index 00000000..c342f656
--- /dev/null
+++ b/HW_05-01/src/hw0501/MyCharacter.java
@@ -0,0 +1,34 @@
+package hw0501;
+/**
+ * Access Code 2.1
+ * Ray Acevedo
+ * MyCharacter.java
+ */
+public class MyCharacter extends Character
+{
+ public MyCharacter (){}
+
+ public MyCharacter (String name){}
+
+ public MyCharacter (String name, Weapon weapon, int height, int weight){}
+
+ public void setName (String name){
+ this.name=name;
+ }
+
+ public String getName(){
+ return name;
+ }
+
+ public void setWeapon (Weapon weapon){this.weapon=weapon;}
+
+ public Weapon getWeapon(){return weapon;}
+
+ public void setHeight(int height){this.height=height;}
+
+ public int getHeight(){return height;}
+
+ public void setWeight(int weight){this.height=weight;}
+
+ public int getWeight(){return weight;}
+}
diff --git a/HW_05-01/src/hw0501/MyRoom.java b/HW_05-01/src/hw0501/MyRoom.java
new file mode 100644
index 00000000..1c182b08
--- /dev/null
+++ b/HW_05-01/src/hw0501/MyRoom.java
@@ -0,0 +1,26 @@
+package hw0501;
+/**
+ * Access Code 2.1
+ * Ray Acevedo
+ * MyRoom.java
+ */
+public class MyRoom extends Room
+{
+ public MyRoom (){}
+
+ public MyRoom (String name){}
+
+ public MyRoom (String name,int area){}
+
+ public void setName (String name){
+ this.name=name;
+ }
+
+ public String getName(){
+ return name;
+ }
+
+ public void setArea (int area){this.area=area;}
+
+ public int getArea(){return area;}
+}
diff --git a/HW_05-01/src/hw0501/MyWeapon.java b/HW_05-01/src/hw0501/MyWeapon.java
new file mode 100644
index 00000000..be54147c
--- /dev/null
+++ b/HW_05-01/src/hw0501/MyWeapon.java
@@ -0,0 +1,22 @@
+package hw0501;
+/**
+ * Access Code 2.1
+ * Ray Acevedo
+ * MyWeapon.java
+ */
+public class MyWeapon implements Weapon
+{
+ String name;
+ int bullets;
+
+
+ public MyWeapon (){}
+
+ public MyWeapon (String name, int bullets){}
+
+ @Override
+ public void fireWeapon(Weapon weapon)
+ {
+ System.out.println("Bang!");
+ }
+}
diff --git a/HW_05-01/src/hw0501/PlayingCards.java b/HW_05-01/src/hw0501/PlayingCards.java
new file mode 100644
index 00000000..be429c19
--- /dev/null
+++ b/HW_05-01/src/hw0501/PlayingCards.java
@@ -0,0 +1,46 @@
+package hw0501;
+import java.util.ArrayList;
+
+/**
+ * Access Code 2.1
+ * Ray Acevedo
+ * PlayingCards.java
+ */
+public class PlayingCards extends Game
+{
+ ArrayList cards = new ArrayList();
+
+
+ public PlayingCards() //creates a deck of cards
+ {
+ ArrayList suits = new ArrayList();
+ suits.add("Clubs");
+ suits.add("Hearts");
+ suits.add("Spades");
+ suits.add("Diamonds");
+ for(String suite : suits)
+ {
+ for(int i = 1; i < 14; i++)
+ {
+ Cards card = new Cards(suite, i);
+ this.cards.add(card);
+ }
+ }
+ }
+
+ @Override
+ public ArrayList getPieces()
+ {
+ return cards;
+ }
+
+ public static void listPieces(ArrayList arraylist)
+ {
+ for(Cards card : arraylist)
+ {
+ System.out.println(card.getSuite() + card.getCardNumber());
+ }
+ }
+
+ public static void main(String[] args){}
+}
diff --git a/HW_05-01/src/hw0501/Room.java b/HW_05-01/src/hw0501/Room.java
new file mode 100644
index 00000000..2f5d6454
--- /dev/null
+++ b/HW_05-01/src/hw0501/Room.java
@@ -0,0 +1,11 @@
+package hw0501;
+/**
+ * Access Code 2.1
+ * Ray Acevedo
+ * Room.java
+ */
+public abstract class Room
+{
+ String name;
+ int area;
+}
diff --git a/HW_05-01/src/hw0501/Weapon.java b/HW_05-01/src/hw0501/Weapon.java
new file mode 100644
index 00000000..8eb10335
--- /dev/null
+++ b/HW_05-01/src/hw0501/Weapon.java
@@ -0,0 +1,10 @@
+package hw0501;
+/**
+ * Access Code 2.1
+ * Ray Acevedo
+ * Weapon.java
+ */
+public interface Weapon
+{
+ public void fireWeapon (Weapon weapon);
+}
diff --git a/exercises/.DS_Store b/exercises/.DS_Store
new file mode 100644
index 00000000..5008ddfc
Binary files /dev/null and b/exercises/.DS_Store differ
diff --git a/exercises/.idea/.name b/exercises/.idea/.name
new file mode 100644
index 00000000..f60f1fc3
--- /dev/null
+++ b/exercises/.idea/.name
@@ -0,0 +1 @@
+exercises
\ No newline at end of file
diff --git a/exercises/.idea/compiler.xml b/exercises/.idea/compiler.xml
new file mode 100644
index 00000000..a8523149
--- /dev/null
+++ b/exercises/.idea/compiler.xml
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/exercises/.idea/copyright/profiles_settings.xml b/exercises/.idea/copyright/profiles_settings.xml
new file mode 100644
index 00000000..e7bedf33
--- /dev/null
+++ b/exercises/.idea/copyright/profiles_settings.xml
@@ -0,0 +1,3 @@
+
+
+
\ No newline at end of file
diff --git a/exercises/.idea/encodings.xml b/exercises/.idea/encodings.xml
new file mode 100644
index 00000000..d8210482
--- /dev/null
+++ b/exercises/.idea/encodings.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/exercises/.idea/exercises.iml b/exercises/.idea/exercises.iml
new file mode 100644
index 00000000..d6ebd480
--- /dev/null
+++ b/exercises/.idea/exercises.iml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/exercises/.idea/misc.xml b/exercises/.idea/misc.xml
new file mode 100644
index 00000000..7ca410e9
--- /dev/null
+++ b/exercises/.idea/misc.xml
@@ -0,0 +1,211 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1.7
+
+
+
+
+
+
+
+
+
+
+
+ 1.7
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/exercises/.idea/modules.xml b/exercises/.idea/modules.xml
new file mode 100644
index 00000000..7d2682d1
--- /dev/null
+++ b/exercises/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/exercises/.idea/scopes/scope_settings.xml b/exercises/.idea/scopes/scope_settings.xml
new file mode 100644
index 00000000..922003b8
--- /dev/null
+++ b/exercises/.idea/scopes/scope_settings.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/exercises/.idea/vcs.xml b/exercises/.idea/vcs.xml
new file mode 100644
index 00000000..6564d52d
--- /dev/null
+++ b/exercises/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/exercises/.idea/workspace.xml b/exercises/.idea/workspace.xml
new file mode 100644
index 00000000..2c9cfc80
--- /dev/null
+++ b/exercises/.idea/workspace.xml
@@ -0,0 +1,470 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1430439586493
+
+ 1430439586493
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/exercises/5_OOP-and-Intents/MyPhone/app/src/main/AndroidManifest.xml b/exercises/5_OOP-and-Intents/MyPhone/app/src/main/AndroidManifest.xml
deleted file mode 100644
index 832d95e8..00000000
--- a/exercises/5_OOP-and-Intents/MyPhone/app/src/main/AndroidManifest.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/exercises/5_OOP-and-Intents/MyPhone/app/src/main/java/com/example/accesscode/myphone/DialerActivity.java b/exercises/5_OOP-and-Intents/MyPhone/app/src/main/java/com/example/accesscode/myphone/DialerActivity.java
deleted file mode 100644
index 09e62463..00000000
--- a/exercises/5_OOP-and-Intents/MyPhone/app/src/main/java/com/example/accesscode/myphone/DialerActivity.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package com.example.accesscode.myphone;
-
-import android.app.Activity;
-import android.os.Bundle;
-import android.view.View;
-import android.widget.Button;
-import android.widget.EditText;
-
-/**
- * Created by amyquispe on 4/30/15.
- */
-public class DialerActivity extends Activity {
-
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_dialer);
- Button callButton = (Button) findViewById(R.id.call_button);
- final EditText dialerText = (EditText) findViewById(R.id.dialer_text);
- callButton.setOnClickListener(new View.OnClickListener() {
- @Override
- public void onClick(View v) {
- /* get text input */
- String phoneNumber = dialerText.getText().toString();
-
- /*
- Use an implicit intent to open the user's phone app to call this number.
- http://developer.android.com/guide/components/intents-common.html#Phone
- */
- }
- });
- }
-}
diff --git a/exercises/5_OOP-and-Intents/MyPhone/app/src/main/java/com/example/accesscode/myphone/EmailActivity.java b/exercises/5_OOP-and-Intents/MyPhone/app/src/main/java/com/example/accesscode/myphone/EmailActivity.java
deleted file mode 100644
index 24934ce9..00000000
--- a/exercises/5_OOP-and-Intents/MyPhone/app/src/main/java/com/example/accesscode/myphone/EmailActivity.java
+++ /dev/null
@@ -1,37 +0,0 @@
-package com.example.accesscode.myphone;
-
-import android.app.Activity;
-import android.os.Bundle;
-import android.view.View;
-import android.widget.Button;
-import android.widget.EditText;
-
-/**
- * Created by amyquispe on 4/30/15.
- */
-public class EmailActivity extends Activity {
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_email);
- final EditText emailSubject = (EditText) findViewById(R.id.email_subject);
- final EditText emailBody = (EditText) findViewById(R.id.email_body);
- Button mailButton = (Button) findViewById(R.id.mail_button);
- mailButton.setOnClickListener(new View.OnClickListener() {
- @Override
- public void onClick(View v) {
- String myEmailAddress = ""; /* put your email address here */
- String subject = emailSubject.getText().toString();
- String body = emailBody.getText().toString();
-
- /*
- Use an implicit intent to open up the user's email program and send
- and email with this subject and body to you.
-
- http://developer.android.com/guide/components/intents-common.html#Email
-
- */
- }
- });
- }
-}
diff --git a/exercises/5_OOP-and-Intents/MyPhone/app/src/main/java/com/example/accesscode/myphone/MainActivity.java b/exercises/5_OOP-and-Intents/MyPhone/app/src/main/java/com/example/accesscode/myphone/MainActivity.java
deleted file mode 100644
index 2e0460c9..00000000
--- a/exercises/5_OOP-and-Intents/MyPhone/app/src/main/java/com/example/accesscode/myphone/MainActivity.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package com.example.accesscode.myphone;
-
-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.Toast;
-
-
-public class MainActivity extends ActionBarActivity {
-
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_main);
-
- /* DialerActivity */
- Button dialerButton = (Button) findViewById(R.id.dialer_button);
- dialerButton.setOnClickListener(new View.OnClickListener() {
- @Override
- public void onClick(View v) {
- Toast.makeText(getApplicationContext(), "Dialer clicked", Toast.LENGTH_SHORT).show();
- /*
- Use Explicit Intent to start DialerActivity here.
- */
- }
- });
- /* EmailActivity */
- Button emailButton = (Button) findViewById(R.id.email_button);
- emailButton.setOnClickListener(new View.OnClickListener() {
- @Override
- public void onClick(View v) {
- Toast.makeText(getApplicationContext(), "Email clicked", Toast.LENGTH_SHORT).show();
- /*
- Use Explicit Intent to start EmailActivity here.
- */
-
- }
- });
- }
-
-
- @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/exercises/5_OOP-and-Intents/MyPhone/app/src/main/res/layout/activity_dialer.xml b/exercises/5_OOP-and-Intents/MyPhone/app/src/main/res/layout/activity_dialer.xml
deleted file mode 100644
index d4bc14d3..00000000
--- a/exercises/5_OOP-and-Intents/MyPhone/app/src/main/res/layout/activity_dialer.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/exercises/5_OOP-and-Intents/MyPhone/app/src/main/res/layout/activity_email.xml b/exercises/5_OOP-and-Intents/MyPhone/app/src/main/res/layout/activity_email.xml
deleted file mode 100644
index da926c48..00000000
--- a/exercises/5_OOP-and-Intents/MyPhone/app/src/main/res/layout/activity_email.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/exercises/5_OOP-and-Intents/MyPhone/app/src/main/res/layout/activity_main.xml b/exercises/5_OOP-and-Intents/MyPhone/app/src/main/res/layout/activity_main.xml
deleted file mode 100644
index 5a281d5a..00000000
--- a/exercises/5_OOP-and-Intents/MyPhone/app/src/main/res/layout/activity_main.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
-
-
-
-
diff --git a/exercises/5_OOP-and-Intents/MyPhone/app/src/main/res/values/strings.xml b/exercises/5_OOP-and-Intents/MyPhone/app/src/main/res/values/strings.xml
deleted file mode 100644
index 0ddeb50a..00000000
--- a/exercises/5_OOP-and-Intents/MyPhone/app/src/main/res/values/strings.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
- MyPhone
-
- Hello world!
- Settings
-
diff --git a/exercises/5_OOP-and-Intents/oop/src/Instrument.java b/exercises/5_OOP-and-Intents/oop/src/Instrument.java
deleted file mode 100644
index e3f342e9..00000000
--- a/exercises/5_OOP-and-Intents/oop/src/Instrument.java
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Created by amyquispe on 4/30/15.
- */
-public interface Instrument {
- /* expected behavior: when play() is called, return a String that represents the Instrument's noise */
- public String play();
-}
diff --git a/exercises/5_OOP-and-Intents/oop/src/Musician.java b/exercises/5_OOP-and-Intents/oop/src/Musician.java
deleted file mode 100644
index fe90f5ff..00000000
--- a/exercises/5_OOP-and-Intents/oop/src/Musician.java
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Created by amyquispe on 4/30/15.
- */
-public abstract class Musician {
- /* expected behavior: when play_instrument() is called, return a String that represents the instrument's noise */
- public abstract String play_instrument();
-}
diff --git a/homework/Horoscope4/.gitignore b/homework/Horoscope4/.gitignore
new file mode 100644
index 00000000..afbdab33
--- /dev/null
+++ b/homework/Horoscope4/.gitignore
@@ -0,0 +1,6 @@
+.gradle
+/local.properties
+/.idea/workspace.xml
+/.idea/libraries
+.DS_Store
+/build
diff --git a/homework/Horoscope4/.idea/.name b/homework/Horoscope4/.idea/.name
new file mode 100644
index 00000000..1b4deb03
--- /dev/null
+++ b/homework/Horoscope4/.idea/.name
@@ -0,0 +1 @@
+Horoscope4
\ No newline at end of file
diff --git a/homework/Horoscope4/.idea/compiler.xml b/homework/Horoscope4/.idea/compiler.xml
new file mode 100644
index 00000000..217af471
--- /dev/null
+++ b/homework/Horoscope4/.idea/compiler.xml
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/homework/Horoscope4/.idea/copyright/profiles_settings.xml b/homework/Horoscope4/.idea/copyright/profiles_settings.xml
new file mode 100644
index 00000000..e7bedf33
--- /dev/null
+++ b/homework/Horoscope4/.idea/copyright/profiles_settings.xml
@@ -0,0 +1,3 @@
+
+
+
\ No newline at end of file
diff --git a/homework/Horoscope4/.idea/encodings.xml b/homework/Horoscope4/.idea/encodings.xml
new file mode 100644
index 00000000..e206d70d
--- /dev/null
+++ b/homework/Horoscope4/.idea/encodings.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/homework/Horoscope4/.idea/gradle.xml b/homework/Horoscope4/.idea/gradle.xml
new file mode 100644
index 00000000..736c7b5c
--- /dev/null
+++ b/homework/Horoscope4/.idea/gradle.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/homework/Horoscope4/.idea/inspectionProfiles/Project_Default.xml b/homework/Horoscope4/.idea/inspectionProfiles/Project_Default.xml
new file mode 100644
index 00000000..609cf44a
--- /dev/null
+++ b/homework/Horoscope4/.idea/inspectionProfiles/Project_Default.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/homework/Horoscope4/.idea/inspectionProfiles/profiles_settings.xml b/homework/Horoscope4/.idea/inspectionProfiles/profiles_settings.xml
new file mode 100644
index 00000000..3b312839
--- /dev/null
+++ b/homework/Horoscope4/.idea/inspectionProfiles/profiles_settings.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/homework/Horoscope4/.idea/misc.xml b/homework/Horoscope4/.idea/misc.xml
new file mode 100644
index 00000000..58ff01f3
--- /dev/null
+++ b/homework/Horoscope4/.idea/misc.xml
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 1.7
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/homework/Horoscope4/.idea/modules.xml b/homework/Horoscope4/.idea/modules.xml
new file mode 100644
index 00000000..bb0d5cfe
--- /dev/null
+++ b/homework/Horoscope4/.idea/modules.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/homework/Horoscope4/.idea/scopes/scope_settings.xml b/homework/Horoscope4/.idea/scopes/scope_settings.xml
new file mode 100644
index 00000000..922003b8
--- /dev/null
+++ b/homework/Horoscope4/.idea/scopes/scope_settings.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/homework/Horoscope4/.idea/vcs.xml b/homework/Horoscope4/.idea/vcs.xml
new file mode 100644
index 00000000..def6a6a1
--- /dev/null
+++ b/homework/Horoscope4/.idea/vcs.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/homework/Horoscope4/Horoscope4.iml b/homework/Horoscope4/Horoscope4.iml
new file mode 100644
index 00000000..0bb6048a
--- /dev/null
+++ b/homework/Horoscope4/Horoscope4.iml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/homework/Horoscope4/app/.gitignore b/homework/Horoscope4/app/.gitignore
new file mode 100644
index 00000000..796b96d1
--- /dev/null
+++ b/homework/Horoscope4/app/.gitignore
@@ -0,0 +1 @@
+/build
diff --git a/homework/Horoscope4/app/app.iml b/homework/Horoscope4/app/app.iml
new file mode 100644
index 00000000..cc79b52d
--- /dev/null
+++ b/homework/Horoscope4/app/app.iml
@@ -0,0 +1,93 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/exercises/5_OOP-and-Intents/MyPhone/app/build.gradle b/homework/Horoscope4/app/build.gradle
similarity index 66%
rename from exercises/5_OOP-and-Intents/MyPhone/app/build.gradle
rename to homework/Horoscope4/app/build.gradle
index f2d962df..9e2c211e 100644
--- a/exercises/5_OOP-and-Intents/MyPhone/app/build.gradle
+++ b/homework/Horoscope4/app/build.gradle
@@ -1,13 +1,13 @@
apply plugin: 'com.android.application'
android {
- compileSdkVersion 21
- buildToolsVersion "21.1.2"
+ compileSdkVersion 22
+ buildToolsVersion "22.0.1"
defaultConfig {
- applicationId "com.example.accesscode.myphone"
+ applicationId "com.example.c4q_raynaldie.horoscope4"
minSdkVersion 15
- targetSdkVersion 21
+ targetSdkVersion 22
versionCode 1
versionName "1.0"
}
@@ -21,5 +21,5 @@ android {
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
- compile 'com.android.support:appcompat-v7:22.0.0'
+ compile 'com.android.support:appcompat-v7:22.1.1'
}
diff --git a/exercises/5_OOP-and-Intents/MyPhone/app/proguard-rules.pro b/homework/Horoscope4/app/proguard-rules.pro
similarity index 87%
rename from exercises/5_OOP-and-Intents/MyPhone/app/proguard-rules.pro
rename to homework/Horoscope4/app/proguard-rules.pro
index 1109d47e..cfab67a3 100644
--- a/exercises/5_OOP-and-Intents/MyPhone/app/proguard-rules.pro
+++ b/homework/Horoscope4/app/proguard-rules.pro
@@ -1,6 +1,6 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
-# in /Users/amyquispe/Library/Android/sdk/tools/proguard/proguard-android.txt
+# in /Users/c4q-raynaldie/Library/Android/sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
diff --git a/exercises/5_OOP-and-Intents/MyPhone/app/src/androidTest/java/com/example/accesscode/myphone/ApplicationTest.java b/homework/Horoscope4/app/src/androidTest/java/com/example/c4q_raynaldie/horoscope4/ApplicationTest.java
similarity index 87%
rename from exercises/5_OOP-and-Intents/MyPhone/app/src/androidTest/java/com/example/accesscode/myphone/ApplicationTest.java
rename to homework/Horoscope4/app/src/androidTest/java/com/example/c4q_raynaldie/horoscope4/ApplicationTest.java
index 1f9ab7ae..59956f20 100644
--- a/exercises/5_OOP-and-Intents/MyPhone/app/src/androidTest/java/com/example/accesscode/myphone/ApplicationTest.java
+++ b/homework/Horoscope4/app/src/androidTest/java/com/example/c4q_raynaldie/horoscope4/ApplicationTest.java
@@ -1,4 +1,4 @@
-package com.example.accesscode.myphone;
+package com.example.c4q_raynaldie.horoscope4;
import android.app.Application;
import android.test.ApplicationTestCase;
diff --git a/homework/Horoscope4/app/src/main/AndroidManifest.xml b/homework/Horoscope4/app/src/main/AndroidManifest.xml
new file mode 100644
index 00000000..99ad28ee
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/AndroidManifest.xml
@@ -0,0 +1,73 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/AquariusActivity.java b/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/AquariusActivity.java
new file mode 100644
index 00000000..a37eade7
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/AquariusActivity.java
@@ -0,0 +1,66 @@
+package com.example.c4q_raynaldie.horoscope4;
+
+import android.support.v7.app.ActionBarActivity;
+import android.support.v7.app.ActionBar;
+import android.support.v4.app.Fragment;
+import android.os.Bundle;
+import android.view.LayoutInflater;
+import android.view.Menu;
+import android.view.MenuItem;
+import android.view.View;
+import android.view.ViewGroup;
+import android.os.Build;
+
+
+public class AquariusActivity extends ActionBarActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_aquarius);
+ if (savedInstanceState == null) {
+ getSupportFragmentManager().beginTransaction()
+ .add(R.id.container, new PlaceholderFragment())
+ .commit();
+ }
+ }
+
+
+ @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_aquarius, 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);
+ }
+
+ /**
+ * A placeholder fragment containing a simple view.
+ */
+ public static class PlaceholderFragment extends Fragment {
+
+ public PlaceholderFragment() {
+ }
+
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container,
+ Bundle savedInstanceState) {
+ View rootView = inflater.inflate(R.layout.fragment_aquarius, container, false);
+ return rootView;
+ }
+ }
+}
diff --git a/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/AriesActivity.java b/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/AriesActivity.java
new file mode 100644
index 00000000..4424eac9
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/AriesActivity.java
@@ -0,0 +1,66 @@
+package com.example.c4q_raynaldie.horoscope4;
+
+import android.support.v7.app.ActionBarActivity;
+import android.support.v7.app.ActionBar;
+import android.support.v4.app.Fragment;
+import android.os.Bundle;
+import android.view.LayoutInflater;
+import android.view.Menu;
+import android.view.MenuItem;
+import android.view.View;
+import android.view.ViewGroup;
+import android.os.Build;
+
+
+public class AriesActivity extends ActionBarActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_aries);
+ if (savedInstanceState == null) {
+ getSupportFragmentManager().beginTransaction()
+ .add(R.id.container, new PlaceholderFragment())
+ .commit();
+ }
+ }
+
+
+ @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_aries, 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);
+ }
+
+ /**
+ * A placeholder fragment containing a simple view.
+ */
+ public static class PlaceholderFragment extends Fragment {
+
+ public PlaceholderFragment() {
+ }
+
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container,
+ Bundle savedInstanceState) {
+ View rootView = inflater.inflate(R.layout.fragment_aries, container, false);
+ return rootView;
+ }
+ }
+}
diff --git a/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/CancerActivity.java b/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/CancerActivity.java
new file mode 100644
index 00000000..b3720794
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/CancerActivity.java
@@ -0,0 +1,66 @@
+package com.example.c4q_raynaldie.horoscope4;
+
+import android.support.v7.app.ActionBarActivity;
+import android.support.v7.app.ActionBar;
+import android.support.v4.app.Fragment;
+import android.os.Bundle;
+import android.view.LayoutInflater;
+import android.view.Menu;
+import android.view.MenuItem;
+import android.view.View;
+import android.view.ViewGroup;
+import android.os.Build;
+
+
+public class CancerActivity extends ActionBarActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_cancer);
+ if (savedInstanceState == null) {
+ getSupportFragmentManager().beginTransaction()
+ .add(R.id.container, new PlaceholderFragment())
+ .commit();
+ }
+ }
+
+
+ @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_cancer, 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);
+ }
+
+ /**
+ * A placeholder fragment containing a simple view.
+ */
+ public static class PlaceholderFragment extends Fragment {
+
+ public PlaceholderFragment() {
+ }
+
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container,
+ Bundle savedInstanceState) {
+ View rootView = inflater.inflate(R.layout.fragment_cancer, container, false);
+ return rootView;
+ }
+ }
+}
diff --git a/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/CapricornActivity.java b/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/CapricornActivity.java
new file mode 100644
index 00000000..017dfcc7
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/CapricornActivity.java
@@ -0,0 +1,66 @@
+package com.example.c4q_raynaldie.horoscope4;
+
+import android.support.v7.app.ActionBarActivity;
+import android.support.v7.app.ActionBar;
+import android.support.v4.app.Fragment;
+import android.os.Bundle;
+import android.view.LayoutInflater;
+import android.view.Menu;
+import android.view.MenuItem;
+import android.view.View;
+import android.view.ViewGroup;
+import android.os.Build;
+
+
+public class CapricornActivity extends ActionBarActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_capricorn);
+ if (savedInstanceState == null) {
+ getSupportFragmentManager().beginTransaction()
+ .add(R.id.container, new PlaceholderFragment())
+ .commit();
+ }
+ }
+
+
+ @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_capricorn, 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);
+ }
+
+ /**
+ * A placeholder fragment containing a simple view.
+ */
+ public static class PlaceholderFragment extends Fragment {
+
+ public PlaceholderFragment() {
+ }
+
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container,
+ Bundle savedInstanceState) {
+ View rootView = inflater.inflate(R.layout.fragment_capricorn, container, false);
+ return rootView;
+ }
+ }
+}
diff --git a/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/Game.java b/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/Game.java
new file mode 100644
index 00000000..ae47203a
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/Game.java
@@ -0,0 +1,365 @@
+package com.example.c4q_raynaldie.horoscope4;
+
+import android.content.Intent;
+import android.support.v7.app.ActionBarActivity;
+import android.os.Bundle;
+import android.util.Log;
+import android.view.Menu;
+import android.view.MenuItem;
+import android.view.View;
+import android.widget.EditText;
+import android.widget.TextView;
+
+
+public class Game extends ActionBarActivity {
+ int random = (int)(Math.random() * 12 + 1);
+ int random2 = (int)(Math.random() * 28 + 1);
+ public EditText userResponse;
+ public TextView makeRandomNumber;
+ String whatAnswerShouldBe;
+ String userResponseString;
+ String RandomNumberString;
+
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_game);
+ //TextView r = (TextView) findViewById(R.id.userResponse);
+ }
+
+
+ @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_game, 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);
+ }
+ public void tryAgain (View v){
+ TextView t = (TextView) findViewById(R.id.randomNumberTextView);
+ t.setText("");
+ }
+ public void makeRandomNumber (View v){
+ TextView t = (TextView) findViewById(R.id.randomNumberTextView);
+ if (random < 10 ){
+ t.setText(0 + "" + random + "-" + random2);
+ }
+ else if(random2 < 10){
+ t.setText(random + "-" + 0 + random2 );
+ }
+ else if(random < 10 && random2 < 10){
+ t.setText(0 + "" + random + "-" + 0 + random2);
+ }
+ else if(random > 10 && random2 < 10){
+ t.setText(random + "-" + 0 + random2);
+ }
+ else if(random < 10 && random2 > 10){
+ t.setText(0 + "" + random + "-" + random2);
+ }
+ else{
+ t.setText(random + "-" + random2);
+ }
+ }
+ public void whatanswerShouldBe(View v){
+ TextView r = (TextView) findViewById(R.id.userResponse);
+ userResponseString = r.getText().toString();
+ TextView q = (TextView) findViewById(R.id.randomNumberTextView);
+ RandomNumberString = q.getText().toString();
+ Log.d("randomNumberString", RandomNumberString);
+ String month = RandomNumberString.substring(0, 2);
+ Log.d("month", month);
+ String day = RandomNumberString.substring(3, 5);
+ Log.d("day", day);
+ int monthInt = Integer.parseInt(month);
+ int bdayInt = Integer.parseInt(day);
+ TextView t = (TextView) findViewById(R.id.answerTextView);
+
+
+ if (monthInt == 1 && bdayInt >= 21) {
+ whatAnswerShouldBe = "aquarius";
+ if (whatAnswerShouldBe.equals(userResponseString)){
+
+ t.setText("Correct!");
+ }
+ else {
+
+ t.setText("Wrong");
+ }
+
+ } else if (monthInt == 2 && bdayInt <= 19) {
+ whatAnswerShouldBe = "aquarius";
+ if (whatAnswerShouldBe.equals(userResponseString)){
+
+ t.setText("Correct!");
+ }
+ else {
+
+ t.setText("Wrong");
+ }
+
+ } else if (monthInt == 2 && bdayInt >= 21) {
+ whatAnswerShouldBe = "pisces";
+ if (whatAnswerShouldBe.equals(userResponseString)){
+
+ t.setText("Correct!");
+ }
+ else {
+
+ t.setText("Wrong");
+ }
+
+ } else if (monthInt == 3 && bdayInt <= 19) {
+ whatAnswerShouldBe = "pisces";
+ if (whatAnswerShouldBe.equals(userResponseString)){
+
+ t.setText("Correct!");
+ }
+ else {
+
+ t.setText("Wrong");
+ }
+
+ } else if (monthInt == 3 && bdayInt >= 21) {
+ whatAnswerShouldBe = "aries";
+ if (whatAnswerShouldBe.equals(userResponseString)){
+
+ t.setText("Correct!");
+ }
+ else {
+
+ t.setText("Wrong");
+ }
+
+ } else if (monthInt == 4 && bdayInt <= 19) {
+ whatAnswerShouldBe = "aries";
+ if (whatAnswerShouldBe.equals(userResponseString)){
+
+ t.setText("Correct!");
+ }
+ else {
+
+ t.setText("Wrong");
+ }
+
+ } else if (monthInt == 4 && bdayInt >= 20) {
+ whatAnswerShouldBe = "taurus";
+ if (whatAnswerShouldBe.equals(userResponseString)){
+
+ t.setText("Correct!");
+ }
+ else {
+
+ t.setText("Wrong");
+ }
+
+ } else if (monthInt == 5 && bdayInt <= 20) {
+ whatAnswerShouldBe = "taurus";
+ if (whatAnswerShouldBe.equals(userResponseString)){
+
+ t.setText("Correct!");
+ }
+ else {
+
+ t.setText("Wrong");
+ }
+
+ } else if (monthInt == 5 && bdayInt >= 21) {
+ whatAnswerShouldBe = "gemini";
+ if (whatAnswerShouldBe.equals(userResponseString)){
+
+ t.setText("Correct!");
+ }
+ else {
+
+ t.setText("Wrong");
+ }
+
+ } else if (monthInt == 6 && bdayInt <= 21) {
+ whatAnswerShouldBe = "gemini";
+ if (whatAnswerShouldBe.equals(userResponseString)){
+
+ t.setText("Correct!");
+ }
+ else {
+
+ t.setText("Wrong");
+ }
+
+ } else if (monthInt == 6 && bdayInt >= 22) {
+ whatAnswerShouldBe = "cancer";
+ if (whatAnswerShouldBe.equals(userResponseString)){
+
+ t.setText("Correct!");
+ }
+ else {
+
+ t.setText("Wrong");
+ }
+
+ } else if (monthInt == 7 && bdayInt <= 22) {
+ whatAnswerShouldBe = "cancer";
+ if (whatAnswerShouldBe.equals(userResponseString)){
+
+ t.setText("Correct!");
+ }
+ else {
+
+ t.setText("Wrong");
+ }
+
+ } else if (monthInt == 7 && bdayInt >= 23) {
+ whatAnswerShouldBe = "leo";
+ if (whatAnswerShouldBe.equals(userResponseString)){
+
+ t.setText("Correct!");
+ }
+ else {
+
+ t.setText("Wrong");
+ }
+
+ } else if (monthInt == 8 && bdayInt <= 22) {
+ whatAnswerShouldBe = "leo";
+ if (whatAnswerShouldBe.equals(userResponseString)){
+
+ t.setText("Correct!");
+ }
+ else {
+
+ t.setText("Wrong");
+ }
+
+ } else if (monthInt == 8 && bdayInt >= 23) {
+ whatAnswerShouldBe = "virgo";
+ if (whatAnswerShouldBe.equals(userResponseString)){
+
+ t.setText("Correct!");
+ }
+ else {
+
+ t.setText("Wrong");
+ }
+
+ } else if (monthInt == 9 && bdayInt <= 22) {
+ whatAnswerShouldBe = "virgo";
+ if (whatAnswerShouldBe.equals(userResponseString)){
+
+ t.setText("Correct!");
+ }
+ else {
+
+ t.setText("Wrong");
+ }
+
+ } else if (monthInt == 9 && bdayInt >= 23) {
+ whatAnswerShouldBe = "libra";
+ if (whatAnswerShouldBe.equals(userResponseString)){
+
+ t.setText("Correct!");
+ }
+ else {
+
+ t.setText("Wrong");
+ }
+
+ } else if (monthInt == 10 && bdayInt <= 22) {
+ whatAnswerShouldBe = "libra";
+ if (whatAnswerShouldBe.equals(userResponseString)){
+
+ t.setText("Correct!");
+ }
+ else {
+
+ t.setText("Wrong");
+ }
+
+ } else if (monthInt == 10 && bdayInt >= 23) {
+ whatAnswerShouldBe = "scorpio";
+ if (whatAnswerShouldBe.equals(userResponseString)){
+
+ t.setText("Correct!");
+ }
+ else {
+
+ t.setText("Wrong");
+ }
+
+ } else if (monthInt == 11 && bdayInt <= 21) {
+ whatAnswerShouldBe = "scorpio";
+ if (whatAnswerShouldBe.equals(userResponseString)){
+
+ t.setText("Correct!");
+ }
+ else {
+
+ t.setText("Wrong");
+ }
+
+ }else if (monthInt == 11 && bdayInt >= 22){
+ whatAnswerShouldBe = "sagittarius";
+ if (whatAnswerShouldBe.equals(userResponseString)){
+
+ t.setText("Correct!");
+ }
+ else {
+
+ t.setText("Wrong");
+ }
+
+ }else if (monthInt == 12 && bdayInt <= 19){
+ whatAnswerShouldBe = "sagittarius";
+ if (whatAnswerShouldBe.equals(userResponseString)){
+
+ t.setText("Correct!");
+ }
+ else {
+
+ t.setText("Wrong");
+ }
+
+ }
+ else
+ {
+ whatAnswerShouldBe = "capricorn";
+ if (whatAnswerShouldBe.equals(userResponseString)){
+
+ t.setText("Correct!");
+ }
+ else {
+
+ t.setText("Wrong");
+ }
+
+ }
+ }
+// public void correctOrWrong (View v){
+//
+// String userResponseString = userResponse.getText().toString();
+// //String RandomNumberString = makeRandomNumber.getText().toString();
+// Log.d("whatAnswerShouldBe", whatAnswerShouldBe);
+// Log.d("userResponse", userResponseString);
+// if (whatAnswerShouldBe == userResponseString){
+// TextView t = (TextView) findViewById(R.id.answerTextView);
+// t.setText("Correct!");
+// }
+// else {
+// TextView t = (TextView) findViewById(R.id.answerTextView);
+// t.setText("Wrong");
+ //}
+ // }
+}
diff --git a/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/GeminiActivity.java b/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/GeminiActivity.java
new file mode 100644
index 00000000..38a158c8
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/GeminiActivity.java
@@ -0,0 +1,66 @@
+package com.example.c4q_raynaldie.horoscope4;
+
+import android.support.v7.app.ActionBarActivity;
+import android.support.v7.app.ActionBar;
+import android.support.v4.app.Fragment;
+import android.os.Bundle;
+import android.view.LayoutInflater;
+import android.view.Menu;
+import android.view.MenuItem;
+import android.view.View;
+import android.view.ViewGroup;
+import android.os.Build;
+
+
+public class GeminiActivity extends ActionBarActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_gemini);
+ if (savedInstanceState == null) {
+ getSupportFragmentManager().beginTransaction()
+ .add(R.id.container, new PlaceholderFragment())
+ .commit();
+ }
+ }
+
+
+ @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_gemini, 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);
+ }
+
+ /**
+ * A placeholder fragment containing a simple view.
+ */
+ public static class PlaceholderFragment extends Fragment {
+
+ public PlaceholderFragment() {
+ }
+
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container,
+ Bundle savedInstanceState) {
+ View rootView = inflater.inflate(R.layout.fragment_gemini, container, false);
+ return rootView;
+ }
+ }
+}
diff --git a/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/LeoActivity.java b/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/LeoActivity.java
new file mode 100644
index 00000000..b5efe481
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/LeoActivity.java
@@ -0,0 +1,66 @@
+package com.example.c4q_raynaldie.horoscope4;
+
+import android.support.v7.app.ActionBarActivity;
+import android.support.v7.app.ActionBar;
+import android.support.v4.app.Fragment;
+import android.os.Bundle;
+import android.view.LayoutInflater;
+import android.view.Menu;
+import android.view.MenuItem;
+import android.view.View;
+import android.view.ViewGroup;
+import android.os.Build;
+
+
+public class LeoActivity extends ActionBarActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_leo);
+ if (savedInstanceState == null) {
+ getSupportFragmentManager().beginTransaction()
+ .add(R.id.container, new PlaceholderFragment())
+ .commit();
+ }
+ }
+
+
+ @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_leo, 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);
+ }
+
+ /**
+ * A placeholder fragment containing a simple view.
+ */
+ public static class PlaceholderFragment extends Fragment {
+
+ public PlaceholderFragment() {
+ }
+
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container,
+ Bundle savedInstanceState) {
+ View rootView = inflater.inflate(R.layout.fragment_leo, container, false);
+ return rootView;
+ }
+ }
+}
diff --git a/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/LibraActivity.java b/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/LibraActivity.java
new file mode 100644
index 00000000..97e26dac
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/LibraActivity.java
@@ -0,0 +1,66 @@
+package com.example.c4q_raynaldie.horoscope4;
+
+import android.support.v7.app.ActionBarActivity;
+import android.support.v7.app.ActionBar;
+import android.support.v4.app.Fragment;
+import android.os.Bundle;
+import android.view.LayoutInflater;
+import android.view.Menu;
+import android.view.MenuItem;
+import android.view.View;
+import android.view.ViewGroup;
+import android.os.Build;
+
+
+public class LibraActivity extends ActionBarActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_libra);
+ if (savedInstanceState == null) {
+ getSupportFragmentManager().beginTransaction()
+ .add(R.id.container, new PlaceholderFragment())
+ .commit();
+ }
+ }
+
+
+ @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_libra, 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);
+ }
+
+ /**
+ * A placeholder fragment containing a simple view.
+ */
+ public static class PlaceholderFragment extends Fragment {
+
+ public PlaceholderFragment() {
+ }
+
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container,
+ Bundle savedInstanceState) {
+ View rootView = inflater.inflate(R.layout.fragment_libra, container, false);
+ return rootView;
+ }
+ }
+}
diff --git a/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/MainActivity.java b/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/MainActivity.java
new file mode 100644
index 00000000..e72ebbbb
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/MainActivity.java
@@ -0,0 +1,231 @@
+package com.example.c4q_raynaldie.horoscope4;
+
+import android.content.Intent;
+import android.support.v7.app.ActionBarActivity;
+import android.os.Bundle;
+import android.util.Log;
+import android.view.KeyEvent;
+import android.view.Menu;
+import android.view.MenuItem;
+import android.view.View;
+import android.view.inputmethod.EditorInfo;
+import android.widget.Button;
+import android.widget.EditText;
+import android.widget.TextView;
+
+
+public class MainActivity extends ActionBarActivity {
+
+ public EditText userbday;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_main);
+
+ userbday = (EditText) findViewById(R.id.userbday);
+ userbday.setOnEditorActionListener(new TextView.OnEditorActionListener() {
+ @Override
+ public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
+ if(actionId == EditorInfo.IME_ACTION_DONE) {
+ //if(event.getKeyCode() == KeyEvent.KEYCODE_ENTER) {
+ findUserSign(v);
+ return true;
+ }
+ return false;
+ }
+ });
+ }
+
+
+ @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);
+ }
+
+ public void showScorpioInfo(View v) {
+ Intent intent = new Intent(MainActivity.this, ScorpioActivity.class);
+ startActivity(intent);
+ }
+
+ public void showAriesInfo(View v) {
+ Intent intent = new Intent(MainActivity.this, AriesActivity.class);
+ startActivity(intent);
+ }
+
+
+ public void showAquariusInfo(View v) {
+ Intent intent = new Intent(MainActivity.this, AquariusActivity.class);
+ startActivity(intent);
+ }
+
+ public void showCancerInfo(View v) {
+ Intent intent = new Intent(MainActivity.this, CancerActivity.class);
+ startActivity(intent);
+ }
+ public void showCapricornInfo(View v) {
+ Intent intent = new Intent(MainActivity.this, CapricornActivity.class);
+ startActivity(intent);
+ }
+
+ public void showGeminiInfo(View v) {
+ Intent intent = new Intent(MainActivity.this, GeminiActivity.class);
+ startActivity(intent);
+ }
+ public void showLeoInfo(View v) {
+ Intent intent = new Intent(MainActivity.this, LeoActivity.class);
+ startActivity(intent);
+ }
+
+ public void showLibraInfo(View v) {
+ Intent intent = new Intent(MainActivity.this, LibraActivity.class);
+ startActivity(intent);
+ }
+ public void showPiscesInfo(View v) {
+ Intent intent = new Intent(MainActivity.this, PiscesActivity.class);
+ startActivity(intent);
+ }
+
+ public void showSagittariusInfo(View v) {
+ Intent intent = new Intent(MainActivity.this, SagittariusActivity.class);
+ startActivity(intent);
+ }
+ public void showTaurusInfo(View v) {
+ Intent intent = new Intent(MainActivity.this, TaurusActivity.class);
+ startActivity(intent);
+ }
+
+ public void showVirgoInfo(View v) {
+ Intent intent = new Intent(MainActivity.this, VirgoActivity.class);
+ startActivity(intent);
+ }
+
+ public void playGame(View v) {
+ Intent intent = new Intent(MainActivity.this, Game.class);
+ startActivity(intent);
+ }
+
+
+ public void findUserSign (View v) {
+ String userbdayText = userbday.getText().toString();
+ Log.d("userbday", userbdayText);
+ String month = userbdayText.substring(0, 2);
+ Log.d("month", month);
+ String day = userbdayText.substring(3, 5);
+ Log.d("day", day);
+
+
+ int monthInt = Integer.parseInt(month);
+ int bdayInt = Integer.parseInt(day);
+
+ if (monthInt == 1 && bdayInt >= 21) {
+ Intent intent = new Intent(MainActivity.this, AquariusActivity.class);
+ startActivity(intent);
+ } else if (monthInt == 2 && bdayInt <= 19) {
+ Intent intent = new Intent(MainActivity.this, AquariusActivity.class);
+ startActivity(intent);
+
+ } else if (monthInt == 2 && bdayInt >= 21) {
+ Intent intent = new Intent(MainActivity.this, PiscesActivity.class);
+ startActivity(intent);
+
+ } else if (monthInt == 3 && bdayInt <= 19) {
+ Intent intent = new Intent(MainActivity.this, PiscesActivity.class);
+ startActivity(intent);
+
+ } else if (monthInt == 3 && bdayInt >= 21) {
+ Intent intent = new Intent(MainActivity.this, AriesActivity.class);
+ startActivity(intent);
+
+ } else if (monthInt == 4 && bdayInt <= 19) {
+ Intent intent = new Intent(MainActivity.this, AriesActivity.class);
+ startActivity(intent);
+
+ } else if (monthInt == 4 && bdayInt >= 20) {
+ Intent intent = new Intent(MainActivity.this, TaurusActivity.class);
+ startActivity(intent);
+
+ } else if (monthInt == 5 && bdayInt <= 20) {
+ Intent intent = new Intent(MainActivity.this, TaurusActivity.class);
+ startActivity(intent);
+
+ } else if (monthInt == 5 && bdayInt >= 21) {
+ Intent intent = new Intent(MainActivity.this, GeminiActivity.class);
+ startActivity(intent);
+
+ } else if (monthInt == 6 && bdayInt <= 21) {
+ Intent intent = new Intent(MainActivity.this, GeminiActivity.class);
+ startActivity(intent);
+
+ } else if (monthInt == 6 && bdayInt >= 22) {
+ Intent intent = new Intent(MainActivity.this, CancerActivity.class);
+ startActivity(intent);
+
+ } else if (monthInt == 7 && bdayInt <= 22) {
+ Intent intent = new Intent(MainActivity.this, CancerActivity.class);
+ startActivity(intent);
+
+ } else if (monthInt == 7 && bdayInt >= 23) {
+ Intent intent = new Intent(MainActivity.this, LeoActivity.class);
+ startActivity(intent);
+
+ } else if (monthInt == 8 && bdayInt <= 22) {
+ Intent intent = new Intent(MainActivity.this, LeoActivity.class);
+ startActivity(intent);
+
+ } else if (monthInt == 8 && bdayInt >= 23) {
+ Intent intent = new Intent(MainActivity.this, VirgoActivity.class);
+ startActivity(intent);
+
+ } else if (monthInt == 9 && bdayInt <= 22) {
+ Intent intent = new Intent(MainActivity.this, VirgoActivity.class);
+ startActivity(intent);
+
+ } else if (monthInt == 9 && bdayInt >= 23) {
+ Intent intent = new Intent(MainActivity.this, LibraActivity.class);
+ startActivity(intent);
+
+ } else if (monthInt == 10 && bdayInt <= 22) {
+ Intent intent = new Intent(MainActivity.this, LibraActivity.class);
+ startActivity(intent);
+
+ } else if (monthInt == 10 && bdayInt >= 23) {
+ Intent intent = new Intent(MainActivity.this, ScorpioActivity.class);
+ startActivity(intent);
+
+ } else if (monthInt == 11 && bdayInt <= 21) {
+ Intent intent2 = new Intent(MainActivity.this, ScorpioActivity.class);
+ startActivity(intent2);
+
+ }else if (monthInt == 11 && bdayInt >= 22){
+ Intent intent = new Intent(MainActivity.this, SagittariusActivity.class);
+ startActivity(intent);
+
+ }else if (monthInt == 12 && bdayInt <= 19){
+ Intent intent = new Intent(MainActivity.this, SagittariusActivity.class);
+ startActivity(intent);
+
+ }
+ else
+ {
+ Intent intent = new Intent(MainActivity.this, CapricornActivity.class);
+ startActivity(intent);
+ }
+ }
+}
diff --git a/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/PiscesActivity.java b/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/PiscesActivity.java
new file mode 100644
index 00000000..3ff2a33e
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/PiscesActivity.java
@@ -0,0 +1,66 @@
+package com.example.c4q_raynaldie.horoscope4;
+
+import android.support.v7.app.ActionBarActivity;
+import android.support.v7.app.ActionBar;
+import android.support.v4.app.Fragment;
+import android.os.Bundle;
+import android.view.LayoutInflater;
+import android.view.Menu;
+import android.view.MenuItem;
+import android.view.View;
+import android.view.ViewGroup;
+import android.os.Build;
+
+
+public class PiscesActivity extends ActionBarActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_pisces);
+ if (savedInstanceState == null) {
+ getSupportFragmentManager().beginTransaction()
+ .add(R.id.container, new PlaceholderFragment())
+ .commit();
+ }
+ }
+
+
+ @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_pisces, 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);
+ }
+
+ /**
+ * A placeholder fragment containing a simple view.
+ */
+ public static class PlaceholderFragment extends Fragment {
+
+ public PlaceholderFragment() {
+ }
+
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container,
+ Bundle savedInstanceState) {
+ View rootView = inflater.inflate(R.layout.fragment_pisces, container, false);
+ return rootView;
+ }
+ }
+}
diff --git a/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/SagittariusActivity.java b/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/SagittariusActivity.java
new file mode 100644
index 00000000..b84f175f
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/SagittariusActivity.java
@@ -0,0 +1,66 @@
+package com.example.c4q_raynaldie.horoscope4;
+
+import android.support.v7.app.ActionBarActivity;
+import android.support.v7.app.ActionBar;
+import android.support.v4.app.Fragment;
+import android.os.Bundle;
+import android.view.LayoutInflater;
+import android.view.Menu;
+import android.view.MenuItem;
+import android.view.View;
+import android.view.ViewGroup;
+import android.os.Build;
+
+
+public class SagittariusActivity extends ActionBarActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_sagittarius);
+ if (savedInstanceState == null) {
+ getSupportFragmentManager().beginTransaction()
+ .add(R.id.container, new PlaceholderFragment())
+ .commit();
+ }
+ }
+
+
+ @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_sagittarius, 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);
+ }
+
+ /**
+ * A placeholder fragment containing a simple view.
+ */
+ public static class PlaceholderFragment extends Fragment {
+
+ public PlaceholderFragment() {
+ }
+
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container,
+ Bundle savedInstanceState) {
+ View rootView = inflater.inflate(R.layout.fragment_sagittarius, container, false);
+ return rootView;
+ }
+ }
+}
diff --git a/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/ScorpioActivity.java b/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/ScorpioActivity.java
new file mode 100644
index 00000000..69a7635f
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/ScorpioActivity.java
@@ -0,0 +1,66 @@
+package com.example.c4q_raynaldie.horoscope4;
+
+import android.support.v7.app.ActionBarActivity;
+import android.support.v7.app.ActionBar;
+import android.support.v4.app.Fragment;
+import android.os.Bundle;
+import android.view.LayoutInflater;
+import android.view.Menu;
+import android.view.MenuItem;
+import android.view.View;
+import android.view.ViewGroup;
+import android.os.Build;
+
+
+public class ScorpioActivity extends ActionBarActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_scorpio);
+ if (savedInstanceState == null) {
+ getSupportFragmentManager().beginTransaction()
+ .add(R.id.container, new PlaceholderFragment())
+ .commit();
+ }
+ }
+
+
+ @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_scorpio, 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);
+ }
+
+ /**
+ * A placeholder fragment containing a simple view.
+ */
+ public static class PlaceholderFragment extends Fragment {
+
+ public PlaceholderFragment() {
+ }
+
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container,
+ Bundle savedInstanceState) {
+ View rootView = inflater.inflate(R.layout.fragment_scorpio, container, false);
+ return rootView;
+ }
+ }
+}
diff --git a/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/TaurusActivity.java b/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/TaurusActivity.java
new file mode 100644
index 00000000..5ed63486
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/TaurusActivity.java
@@ -0,0 +1,66 @@
+package com.example.c4q_raynaldie.horoscope4;
+
+import android.support.v7.app.ActionBarActivity;
+import android.support.v7.app.ActionBar;
+import android.support.v4.app.Fragment;
+import android.os.Bundle;
+import android.view.LayoutInflater;
+import android.view.Menu;
+import android.view.MenuItem;
+import android.view.View;
+import android.view.ViewGroup;
+import android.os.Build;
+
+
+public class TaurusActivity extends ActionBarActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_taurus);
+ if (savedInstanceState == null) {
+ getSupportFragmentManager().beginTransaction()
+ .add(R.id.container, new PlaceholderFragment())
+ .commit();
+ }
+ }
+
+
+ @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_taurus, 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);
+ }
+
+ /**
+ * A placeholder fragment containing a simple view.
+ */
+ public static class PlaceholderFragment extends Fragment {
+
+ public PlaceholderFragment() {
+ }
+
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container,
+ Bundle savedInstanceState) {
+ View rootView = inflater.inflate(R.layout.fragment_taurus, container, false);
+ return rootView;
+ }
+ }
+}
diff --git a/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/VirgoActivity.java b/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/VirgoActivity.java
new file mode 100644
index 00000000..f8879ddd
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/java/com/example/c4q_raynaldie/horoscope4/VirgoActivity.java
@@ -0,0 +1,66 @@
+package com.example.c4q_raynaldie.horoscope4;
+
+import android.support.v7.app.ActionBarActivity;
+import android.support.v7.app.ActionBar;
+import android.support.v4.app.Fragment;
+import android.os.Bundle;
+import android.view.LayoutInflater;
+import android.view.Menu;
+import android.view.MenuItem;
+import android.view.View;
+import android.view.ViewGroup;
+import android.os.Build;
+
+
+public class VirgoActivity extends ActionBarActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_virgo);
+ if (savedInstanceState == null) {
+ getSupportFragmentManager().beginTransaction()
+ .add(R.id.container, new PlaceholderFragment())
+ .commit();
+ }
+ }
+
+
+ @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_virgo, 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);
+ }
+
+ /**
+ * A placeholder fragment containing a simple view.
+ */
+ public static class PlaceholderFragment extends Fragment {
+
+ public PlaceholderFragment() {
+ }
+
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container,
+ Bundle savedInstanceState) {
+ View rootView = inflater.inflate(R.layout.fragment_virgo, container, false);
+ return rootView;
+ }
+ }
+}
diff --git a/homework/Horoscope4/app/src/main/res/drawable/virgo.png b/homework/Horoscope4/app/src/main/res/drawable/virgo.png
new file mode 100644
index 00000000..50810074
Binary files /dev/null and b/homework/Horoscope4/app/src/main/res/drawable/virgo.png differ
diff --git a/homework/Horoscope4/app/src/main/res/layout/activity_aquarius.xml b/homework/Horoscope4/app/src/main/res/layout/activity_aquarius.xml
new file mode 100644
index 00000000..a026f690
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/res/layout/activity_aquarius.xml
@@ -0,0 +1,8 @@
+
+
+
+
diff --git a/homework/Horoscope4/app/src/main/res/layout/activity_aries.xml b/homework/Horoscope4/app/src/main/res/layout/activity_aries.xml
new file mode 100644
index 00000000..7ef053ea
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/res/layout/activity_aries.xml
@@ -0,0 +1,5 @@
+
diff --git a/homework/Horoscope4/app/src/main/res/layout/activity_cancer.xml b/homework/Horoscope4/app/src/main/res/layout/activity_cancer.xml
new file mode 100644
index 00000000..d51da1fb
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/res/layout/activity_cancer.xml
@@ -0,0 +1,5 @@
+
diff --git a/homework/Horoscope4/app/src/main/res/layout/activity_capricorn.xml b/homework/Horoscope4/app/src/main/res/layout/activity_capricorn.xml
new file mode 100644
index 00000000..eb814b91
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/res/layout/activity_capricorn.xml
@@ -0,0 +1,5 @@
+
diff --git a/homework/Horoscope4/app/src/main/res/layout/activity_game.xml b/homework/Horoscope4/app/src/main/res/layout/activity_game.xml
new file mode 100644
index 00000000..d57a3f28
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/res/layout/activity_game.xml
@@ -0,0 +1,71 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/homework/Horoscope4/app/src/main/res/layout/activity_gemini.xml b/homework/Horoscope4/app/src/main/res/layout/activity_gemini.xml
new file mode 100644
index 00000000..be78c97f
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/res/layout/activity_gemini.xml
@@ -0,0 +1,5 @@
+
diff --git a/homework/Horoscope4/app/src/main/res/layout/activity_leo.xml b/homework/Horoscope4/app/src/main/res/layout/activity_leo.xml
new file mode 100644
index 00000000..e0abeadf
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/res/layout/activity_leo.xml
@@ -0,0 +1,5 @@
+
diff --git a/homework/Horoscope4/app/src/main/res/layout/activity_libra.xml b/homework/Horoscope4/app/src/main/res/layout/activity_libra.xml
new file mode 100644
index 00000000..d8cf4ab5
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/res/layout/activity_libra.xml
@@ -0,0 +1,5 @@
+
diff --git a/homework/Horoscope4/app/src/main/res/layout/activity_main.xml b/homework/Horoscope4/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 00000000..9f7eaef7
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,189 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/homework/Horoscope4/app/src/main/res/layout/activity_pisces.xml b/homework/Horoscope4/app/src/main/res/layout/activity_pisces.xml
new file mode 100644
index 00000000..23f3a5ca
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/res/layout/activity_pisces.xml
@@ -0,0 +1,5 @@
+
diff --git a/homework/Horoscope4/app/src/main/res/layout/activity_sagittarius.xml b/homework/Horoscope4/app/src/main/res/layout/activity_sagittarius.xml
new file mode 100644
index 00000000..6145024f
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/res/layout/activity_sagittarius.xml
@@ -0,0 +1,5 @@
+
diff --git a/homework/Horoscope4/app/src/main/res/layout/activity_scorpio.xml b/homework/Horoscope4/app/src/main/res/layout/activity_scorpio.xml
new file mode 100644
index 00000000..c998a87d
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/res/layout/activity_scorpio.xml
@@ -0,0 +1,5 @@
+
diff --git a/homework/Horoscope4/app/src/main/res/layout/activity_taurus.xml b/homework/Horoscope4/app/src/main/res/layout/activity_taurus.xml
new file mode 100644
index 00000000..772af42a
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/res/layout/activity_taurus.xml
@@ -0,0 +1,5 @@
+
diff --git a/homework/Horoscope4/app/src/main/res/layout/activity_virgo.xml b/homework/Horoscope4/app/src/main/res/layout/activity_virgo.xml
new file mode 100644
index 00000000..add62bed
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/res/layout/activity_virgo.xml
@@ -0,0 +1,5 @@
+
diff --git a/homework/Horoscope4/app/src/main/res/layout/fragment_aquarius.xml b/homework/Horoscope4/app/src/main/res/layout/fragment_aquarius.xml
new file mode 100644
index 00000000..48a637be
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/res/layout/fragment_aquarius.xml
@@ -0,0 +1,106 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/homework/Horoscope4/app/src/main/res/layout/fragment_aries.xml b/homework/Horoscope4/app/src/main/res/layout/fragment_aries.xml
new file mode 100644
index 00000000..d76defb6
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/res/layout/fragment_aries.xml
@@ -0,0 +1,104 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/homework/Horoscope4/app/src/main/res/layout/fragment_cancer.xml b/homework/Horoscope4/app/src/main/res/layout/fragment_cancer.xml
new file mode 100644
index 00000000..a3638204
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/res/layout/fragment_cancer.xml
@@ -0,0 +1,98 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/homework/Horoscope4/app/src/main/res/layout/fragment_capricorn.xml b/homework/Horoscope4/app/src/main/res/layout/fragment_capricorn.xml
new file mode 100644
index 00000000..cfe9ef10
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/res/layout/fragment_capricorn.xml
@@ -0,0 +1,90 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/homework/Horoscope4/app/src/main/res/layout/fragment_gemini.xml b/homework/Horoscope4/app/src/main/res/layout/fragment_gemini.xml
new file mode 100644
index 00000000..5670dac5
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/res/layout/fragment_gemini.xml
@@ -0,0 +1,100 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/homework/Horoscope4/app/src/main/res/layout/fragment_leo.xml b/homework/Horoscope4/app/src/main/res/layout/fragment_leo.xml
new file mode 100644
index 00000000..ce76eeb7
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/res/layout/fragment_leo.xml
@@ -0,0 +1,97 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/homework/Horoscope4/app/src/main/res/layout/fragment_libra.xml b/homework/Horoscope4/app/src/main/res/layout/fragment_libra.xml
new file mode 100644
index 00000000..fa9fca80
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/res/layout/fragment_libra.xml
@@ -0,0 +1,98 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/homework/Horoscope4/app/src/main/res/layout/fragment_pisces.xml b/homework/Horoscope4/app/src/main/res/layout/fragment_pisces.xml
new file mode 100644
index 00000000..90ec10ab
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/res/layout/fragment_pisces.xml
@@ -0,0 +1,100 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/homework/Horoscope4/app/src/main/res/layout/fragment_sagittarius.xml b/homework/Horoscope4/app/src/main/res/layout/fragment_sagittarius.xml
new file mode 100644
index 00000000..26c7b039
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/res/layout/fragment_sagittarius.xml
@@ -0,0 +1,98 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/homework/Horoscope4/app/src/main/res/layout/fragment_scorpio.xml b/homework/Horoscope4/app/src/main/res/layout/fragment_scorpio.xml
new file mode 100644
index 00000000..edfe2b5e
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/res/layout/fragment_scorpio.xml
@@ -0,0 +1,99 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/homework/Horoscope4/app/src/main/res/layout/fragment_taurus.xml b/homework/Horoscope4/app/src/main/res/layout/fragment_taurus.xml
new file mode 100644
index 00000000..26ed8df6
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/res/layout/fragment_taurus.xml
@@ -0,0 +1,104 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/homework/Horoscope4/app/src/main/res/layout/fragment_virgo.xml b/homework/Horoscope4/app/src/main/res/layout/fragment_virgo.xml
new file mode 100644
index 00000000..93f503ca
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/res/layout/fragment_virgo.xml
@@ -0,0 +1,107 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/homework/Horoscope4/app/src/main/res/menu/menu_aquarius.xml b/homework/Horoscope4/app/src/main/res/menu/menu_aquarius.xml
new file mode 100644
index 00000000..ddfaa82b
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/res/menu/menu_aquarius.xml
@@ -0,0 +1,7 @@
+
diff --git a/homework/Horoscope4/app/src/main/res/menu/menu_aries.xml b/homework/Horoscope4/app/src/main/res/menu/menu_aries.xml
new file mode 100644
index 00000000..19726761
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/res/menu/menu_aries.xml
@@ -0,0 +1,7 @@
+
diff --git a/homework/Horoscope4/app/src/main/res/menu/menu_cancer.xml b/homework/Horoscope4/app/src/main/res/menu/menu_cancer.xml
new file mode 100644
index 00000000..046526cf
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/res/menu/menu_cancer.xml
@@ -0,0 +1,7 @@
+
diff --git a/homework/Horoscope4/app/src/main/res/menu/menu_capricorn.xml b/homework/Horoscope4/app/src/main/res/menu/menu_capricorn.xml
new file mode 100644
index 00000000..fc5c955a
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/res/menu/menu_capricorn.xml
@@ -0,0 +1,7 @@
+
diff --git a/homework/Horoscope4/app/src/main/res/menu/menu_game.xml b/homework/Horoscope4/app/src/main/res/menu/menu_game.xml
new file mode 100644
index 00000000..cd3a2d63
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/res/menu/menu_game.xml
@@ -0,0 +1,7 @@
+
diff --git a/homework/Horoscope4/app/src/main/res/menu/menu_gemini.xml b/homework/Horoscope4/app/src/main/res/menu/menu_gemini.xml
new file mode 100644
index 00000000..7983f9b0
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/res/menu/menu_gemini.xml
@@ -0,0 +1,7 @@
+
diff --git a/homework/Horoscope4/app/src/main/res/menu/menu_leo.xml b/homework/Horoscope4/app/src/main/res/menu/menu_leo.xml
new file mode 100644
index 00000000..10e61b3b
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/res/menu/menu_leo.xml
@@ -0,0 +1,7 @@
+
diff --git a/homework/Horoscope4/app/src/main/res/menu/menu_libra.xml b/homework/Horoscope4/app/src/main/res/menu/menu_libra.xml
new file mode 100644
index 00000000..aea18214
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/res/menu/menu_libra.xml
@@ -0,0 +1,7 @@
+
diff --git a/exercises/5_OOP-and-Intents/MyPhone/app/src/main/res/menu/menu_main.xml b/homework/Horoscope4/app/src/main/res/menu/menu_main.xml
similarity index 100%
rename from exercises/5_OOP-and-Intents/MyPhone/app/src/main/res/menu/menu_main.xml
rename to homework/Horoscope4/app/src/main/res/menu/menu_main.xml
diff --git a/homework/Horoscope4/app/src/main/res/menu/menu_pisces.xml b/homework/Horoscope4/app/src/main/res/menu/menu_pisces.xml
new file mode 100644
index 00000000..809930f7
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/res/menu/menu_pisces.xml
@@ -0,0 +1,7 @@
+
diff --git a/homework/Horoscope4/app/src/main/res/menu/menu_sagittarius.xml b/homework/Horoscope4/app/src/main/res/menu/menu_sagittarius.xml
new file mode 100644
index 00000000..2087c789
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/res/menu/menu_sagittarius.xml
@@ -0,0 +1,7 @@
+
diff --git a/homework/Horoscope4/app/src/main/res/menu/menu_scorpio.xml b/homework/Horoscope4/app/src/main/res/menu/menu_scorpio.xml
new file mode 100644
index 00000000..55db0476
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/res/menu/menu_scorpio.xml
@@ -0,0 +1,7 @@
+
diff --git a/homework/Horoscope4/app/src/main/res/menu/menu_taurus.xml b/homework/Horoscope4/app/src/main/res/menu/menu_taurus.xml
new file mode 100644
index 00000000..fcdea30b
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/res/menu/menu_taurus.xml
@@ -0,0 +1,7 @@
+
diff --git a/homework/Horoscope4/app/src/main/res/menu/menu_virgo.xml b/homework/Horoscope4/app/src/main/res/menu/menu_virgo.xml
new file mode 100644
index 00000000..55f16145
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/res/menu/menu_virgo.xml
@@ -0,0 +1,7 @@
+
diff --git a/exercises/5_OOP-and-Intents/MyPhone/app/src/main/res/mipmap-hdpi/ic_launcher.png b/homework/Horoscope4/app/src/main/res/mipmap-hdpi/ic_launcher.png
similarity index 100%
rename from exercises/5_OOP-and-Intents/MyPhone/app/src/main/res/mipmap-hdpi/ic_launcher.png
rename to homework/Horoscope4/app/src/main/res/mipmap-hdpi/ic_launcher.png
diff --git a/exercises/5_OOP-and-Intents/MyPhone/app/src/main/res/mipmap-mdpi/ic_launcher.png b/homework/Horoscope4/app/src/main/res/mipmap-mdpi/ic_launcher.png
similarity index 100%
rename from exercises/5_OOP-and-Intents/MyPhone/app/src/main/res/mipmap-mdpi/ic_launcher.png
rename to homework/Horoscope4/app/src/main/res/mipmap-mdpi/ic_launcher.png
diff --git a/exercises/5_OOP-and-Intents/MyPhone/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/homework/Horoscope4/app/src/main/res/mipmap-xhdpi/ic_launcher.png
similarity index 100%
rename from exercises/5_OOP-and-Intents/MyPhone/app/src/main/res/mipmap-xhdpi/ic_launcher.png
rename to homework/Horoscope4/app/src/main/res/mipmap-xhdpi/ic_launcher.png
diff --git a/exercises/5_OOP-and-Intents/MyPhone/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/homework/Horoscope4/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
similarity index 100%
rename from exercises/5_OOP-and-Intents/MyPhone/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
rename to homework/Horoscope4/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
diff --git a/exercises/5_OOP-and-Intents/MyPhone/app/src/main/res/values-w820dp/dimens.xml b/homework/Horoscope4/app/src/main/res/values-w820dp/dimens.xml
similarity index 100%
rename from exercises/5_OOP-and-Intents/MyPhone/app/src/main/res/values-w820dp/dimens.xml
rename to homework/Horoscope4/app/src/main/res/values-w820dp/dimens.xml
diff --git a/exercises/5_OOP-and-Intents/MyPhone/app/src/main/res/values/dimens.xml b/homework/Horoscope4/app/src/main/res/values/dimens.xml
similarity index 100%
rename from exercises/5_OOP-and-Intents/MyPhone/app/src/main/res/values/dimens.xml
rename to homework/Horoscope4/app/src/main/res/values/dimens.xml
diff --git a/homework/Horoscope4/app/src/main/res/values/strings.xml b/homework/Horoscope4/app/src/main/res/values/strings.xml
new file mode 100644
index 00000000..3deb0106
--- /dev/null
+++ b/homework/Horoscope4/app/src/main/res/values/strings.xml
@@ -0,0 +1,49 @@
+
+ Horoscope4
+
+ Hello world!
+ Settings
+ Horoscopes!
+ Aries
+ Taurus
+ Gemini
+ Cancer
+ Leo
+ Virgo
+ Libra
+ Scorpio
+ Sagittarius
+ Capricorn
+ Aquarius
+ Pisces
+ ScorpioActivity
+ AriesActivity
+ TaurusActivity
+ GeminiActivity
+ CancerActivity
+ LeoActivity
+ VirgoActivity
+ LibraActivity
+ SagittariusActivity
+ CapricornActivity
+ AquariusActivity
+ PiscesActivity
+ January 21 - February 19
+ March 21 - April 20
+ June 22 - July 22
+ December 23 - January 20
+ May 22 - June 21
+ July 23 -August 21
+ September 24 - October 23
+ February 20- March 20
+ November 23 - December 22
+ October 24 - November 22
+ April 21 - May 21
+ August 22 - September 23
+ Don\'t know your sign\? Type it in below (mm-dd) and I\'ll show you.
+ The Good \=\)
+ The Bad \=\(
+ Game
+
+
+
diff --git a/exercises/5_OOP-and-Intents/MyPhone/app/src/main/res/values/styles.xml b/homework/Horoscope4/app/src/main/res/values/styles.xml
similarity index 100%
rename from exercises/5_OOP-and-Intents/MyPhone/app/src/main/res/values/styles.xml
rename to homework/Horoscope4/app/src/main/res/values/styles.xml
diff --git a/exercises/5_OOP-and-Intents/MyPhone/build.gradle b/homework/Horoscope4/build.gradle
similarity index 100%
rename from exercises/5_OOP-and-Intents/MyPhone/build.gradle
rename to homework/Horoscope4/build.gradle
diff --git a/homework/Horoscope4/gradle.properties b/homework/Horoscope4/gradle.properties
new file mode 100644
index 00000000..1d3591c8
--- /dev/null
+++ b/homework/Horoscope4/gradle.properties
@@ -0,0 +1,18 @@
+# Project-wide Gradle settings.
+
+# IDE (e.g. Android Studio) users:
+# Gradle settings configured through the IDE *will override*
+# any settings specified in this file.
+
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+# Default value: -Xmx10248m -XX:MaxPermSize=256m
+# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
+
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
\ No newline at end of file
diff --git a/exercises/5_OOP-and-Intents/MyPhone/gradle/wrapper/gradle-wrapper.jar b/homework/Horoscope4/gradle/wrapper/gradle-wrapper.jar
similarity index 100%
rename from exercises/5_OOP-and-Intents/MyPhone/gradle/wrapper/gradle-wrapper.jar
rename to homework/Horoscope4/gradle/wrapper/gradle-wrapper.jar
diff --git a/exercises/5_OOP-and-Intents/MyPhone/gradle/wrapper/gradle-wrapper.properties b/homework/Horoscope4/gradle/wrapper/gradle-wrapper.properties
similarity index 100%
rename from exercises/5_OOP-and-Intents/MyPhone/gradle/wrapper/gradle-wrapper.properties
rename to homework/Horoscope4/gradle/wrapper/gradle-wrapper.properties
diff --git a/exercises/5_OOP-and-Intents/MyPhone/gradlew b/homework/Horoscope4/gradlew
similarity index 100%
rename from exercises/5_OOP-and-Intents/MyPhone/gradlew
rename to homework/Horoscope4/gradlew
diff --git a/exercises/5_OOP-and-Intents/MyPhone/gradlew.bat b/homework/Horoscope4/gradlew.bat
similarity index 100%
rename from exercises/5_OOP-and-Intents/MyPhone/gradlew.bat
rename to homework/Horoscope4/gradlew.bat
diff --git a/exercises/5_OOP-and-Intents/MyPhone/settings.gradle b/homework/Horoscope4/settings.gradle
similarity index 100%
rename from exercises/5_OOP-and-Intents/MyPhone/settings.gradle
rename to homework/Horoscope4/settings.gradle