Advertisement
MelindaElezovic

AstroSign

Dec 14th, 2015
371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 6.33 KB | None | 0 0
  1. //Melinda
  2. //12.10.15
  3. //AstroSign
  4. import java.util.*;
  5.  
  6. public class AstroSign
  7. {
  8.   public static void main(String[] args)
  9.   {
  10.     Scanner input = new Scanner(System.in);
  11.     System.out.println("Waht is the number of the month you were born in?");
  12.     int month = input.nextInt();
  13.     System.out.println("What is the day you were born? (number)");
  14.     int day = input.nextInt();
  15.    
  16.     if (month > 12 || month < 1 && day <1 || day > 31)
  17.       System.out.println("You made an error, please try again and follow direction.");
  18.    
  19.     System.out.print("Your birthday is on ");
  20.    
  21.     if (month == 1)
  22.       System.out.print("January ");
  23.     else if (month == 2)
  24.       System.out.print("February ");
  25.     else if (month == 3)
  26.       System.out.print("March ");
  27.     else if (month == 4)
  28.       System.out.print("April ");
  29.     else if (month == 5)
  30.       System.out.print("May ");
  31.     else if (month == 6)
  32.       System.out.print("June ");
  33.     else if (month == 7)
  34.       System.out.print("July ");
  35.     else if (month == 8)
  36.       System.out.print("August ");
  37.     else if (month == 9)
  38.       System.out.print("September ");
  39.     else if (month == 10)
  40.       System.out.print("October ");
  41.     else if (month == 11)
  42.       System.out.print("November ");
  43.     else if (month == 12)
  44.       System.out.print("December ");
  45.    
  46.     if (day == 1)
  47.       System.out.print("first.");
  48.     else if (day == 2)
  49.       System.out.print("second.");
  50.     else if (day == 3)
  51.       System.out.print("third.");
  52.     else if (day == 4)
  53.       System.out.print("fourth.");
  54.     else if (day == 5)
  55.       System.out.print("fifth.");
  56.     else if (day == 6)
  57.       System.out.print("sixth.");
  58.     else if (day == 7)
  59.       System.out.print("seventh.");
  60.     else if (day == 8)
  61.       System.out.print("eighth.");
  62.     else if (day == 9)
  63.       System.out.print("ninth.");
  64.     else if ( day == 10)
  65.       System.out.print("tenth.");
  66.     else if (day == 11)
  67.       System.out.print("eleventh.");
  68.     else if (day == 12)
  69.       System.out.print("twelfth.");
  70.     else if (day == 13)
  71.       System.out.print("thirteenth.");
  72.     else if (day == 14)
  73.       System.out.print("fourteenth.");
  74.     else if (day == 15)
  75.       System.out.print("fifteenth.");
  76.     else if (day == 16)
  77.       System.out.print("sixteenth.");
  78.     else if (day == 17)
  79.       System.out.print("seventeenth.");
  80.     else if (day == 18)
  81.       System.out.print("eighteenth.");
  82.     else if (day == 19)
  83.       System.out.print("nineteenth.");
  84.     else if (day == 20)
  85.       System.out.print("twentieth.");
  86.     else if (day == 21)
  87.       System.out.print("twenty-first.");
  88.     else if (day == 22)
  89.       System.out.print("twenty-second.");
  90.     else if (day == 23)
  91.       System.out.print("twenty-third.");
  92.     else if ( day == 24)
  93.       System.out.print("twenty-fourth.");
  94.     else if (day == 25)
  95.       System.out.print("twenty-fifth.");
  96.     else if (day == 26)
  97.       System.out.print("twenty-sixth.");
  98.     else if (day == 27)
  99.       System.out.print("twenty-seventh.");
  100.     else if (day== 28)
  101.       System.out.print("twenty-eighth.");
  102.     else if (day == 29)
  103.       System.out.print("twenty-ninth.");
  104.     else if (day == 30)
  105.       System.out.print("thirtieth.");
  106.     else if (day == 31)
  107.       System.out.print("thirty-first.");
  108.      
  109.     if (month == 3 && day >= 21 || month == 4 && day <= 19)
  110.       System.out.print(" You are a Aries. Your horoscope says: Today your emotions will be in a very fluid phase, and it will be difficult for anyone to predict how you're going to react to some shocking news -- including you!");
  111.     else if (month== 4 && day >=20 || month == 5 && day <=20)
  112.       System.out.print("You are a Taurus. Your horoscope says: You can feel passionate about more than just romantic things, or other people!");
  113.     else if (month == 5 && day >=21 || month == 6 && day <=20)
  114.       System.out.print(" You are a Gemini. Your horoscope says: Making choices about your life based on what you think other people want you to do is not only unhealthy, it's unwise.");
  115.     else if (month == 6 && day >=21 || month == 7 && day <=22)
  116.       System.out.print(" You are a Cancer. Your horoscope says: Today, try to keep yourself from getting upset when you talk to people who intimidate you.");
  117.     else if (month == 7 && day >=23 || month== 8 && day <=22)
  118.       System.out.print(" You are a Leo. Your horoscope says: You will be able to get beneath surface-level small talk today and zero in on what people really want to talk about, quickly.");
  119.     else if (month== 8 && day>=23 || month== 9 && day <=22)
  120.       System.out.print(" You are a Virgo. Your horoscope says: It's time to create more calm in your life -- and you can do this if you accept the responsibility required to accept things that you don't like.");
  121.     else if (month== 9 && day>=23 || month == 10 && day <=21)
  122.       System.out.print(" You are a Libra. Your horoscope says: You have wonderful ideas inside of you, so go deep and grab one of them today!");
  123.     else if (month == 10 && day>=22 || month== 11 && day <=21)
  124.       System.out.print(" You are a Scorpio. Your horoscope says: Take a good long look in the mirror and remind yourself that while you might not be the hottest person on earth, you are definitely something special -- especially in the eyes of the people who love you.");
  125.     else if (month == 11 && day>=22 || month == 12 && day <=21)
  126.       System.out.print(" You are a Sagittarius. Your horoscope says: You'd better make some more room in your life for new ideas and new people -- because they are going to be coming at you very fast, very soon.");
  127.     else if (month== 12 && day>=22 || month == 1 && day <=19 )
  128.       System.out.print(" You are a Capricorn. Your horoscope says: There is a new person in your life who intrigues you, but they have not revealed enough about themselves for you to get an accurate picture of who they truly are.");
  129.     else if (month == 1 && day>=20 || month == 2 && day<=18)
  130.       System.out.print(" You are a Aquarius. Your horoscope says: Today, you should start to sense that a new beginning is coming in an old relationship.");
  131.     else if (month == 2 && day >=19 || month == 3 && day<=20)
  132.       System.out.print(" You are a Pisces. Your horoscope says: Emotional upheaval can cause even the most level-headed people to say things they don't really mean -- keep that in mind if you overhear a shocking comment today.");
  133.   }
  134. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement