Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Melinda
- //12.10.15
- //AstroSign
- import java.util.*;
- public class AstroSign
- {
- public static void main(String[] args)
- {
- Scanner input = new Scanner(System.in);
- System.out.println("Waht is the number of the month you were born in?");
- int month = input.nextInt();
- System.out.println("What is the day you were born? (number)");
- int day = input.nextInt();
- if (month > 12 || month < 1 && day <1 || day > 31)
- System.out.println("You made an error, please try again and follow direction.");
- System.out.print("Your birthday is on ");
- if (month == 1)
- System.out.print("January ");
- else if (month == 2)
- System.out.print("February ");
- else if (month == 3)
- System.out.print("March ");
- else if (month == 4)
- System.out.print("April ");
- else if (month == 5)
- System.out.print("May ");
- else if (month == 6)
- System.out.print("June ");
- else if (month == 7)
- System.out.print("July ");
- else if (month == 8)
- System.out.print("August ");
- else if (month == 9)
- System.out.print("September ");
- else if (month == 10)
- System.out.print("October ");
- else if (month == 11)
- System.out.print("November ");
- else if (month == 12)
- System.out.print("December ");
- if (day == 1)
- System.out.print("first.");
- else if (day == 2)
- System.out.print("second.");
- else if (day == 3)
- System.out.print("third.");
- else if (day == 4)
- System.out.print("fourth.");
- else if (day == 5)
- System.out.print("fifth.");
- else if (day == 6)
- System.out.print("sixth.");
- else if (day == 7)
- System.out.print("seventh.");
- else if (day == 8)
- System.out.print("eighth.");
- else if (day == 9)
- System.out.print("ninth.");
- else if ( day == 10)
- System.out.print("tenth.");
- else if (day == 11)
- System.out.print("eleventh.");
- else if (day == 12)
- System.out.print("twelfth.");
- else if (day == 13)
- System.out.print("thirteenth.");
- else if (day == 14)
- System.out.print("fourteenth.");
- else if (day == 15)
- System.out.print("fifteenth.");
- else if (day == 16)
- System.out.print("sixteenth.");
- else if (day == 17)
- System.out.print("seventeenth.");
- else if (day == 18)
- System.out.print("eighteenth.");
- else if (day == 19)
- System.out.print("nineteenth.");
- else if (day == 20)
- System.out.print("twentieth.");
- else if (day == 21)
- System.out.print("twenty-first.");
- else if (day == 22)
- System.out.print("twenty-second.");
- else if (day == 23)
- System.out.print("twenty-third.");
- else if ( day == 24)
- System.out.print("twenty-fourth.");
- else if (day == 25)
- System.out.print("twenty-fifth.");
- else if (day == 26)
- System.out.print("twenty-sixth.");
- else if (day == 27)
- System.out.print("twenty-seventh.");
- else if (day== 28)
- System.out.print("twenty-eighth.");
- else if (day == 29)
- System.out.print("twenty-ninth.");
- else if (day == 30)
- System.out.print("thirtieth.");
- else if (day == 31)
- System.out.print("thirty-first.");
- if (month == 3 && day >= 21 || month == 4 && day <= 19)
- 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!");
- else if (month== 4 && day >=20 || month == 5 && day <=20)
- System.out.print("You are a Taurus. Your horoscope says: You can feel passionate about more than just romantic things, or other people!");
- else if (month == 5 && day >=21 || month == 6 && day <=20)
- 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.");
- else if (month == 6 && day >=21 || month == 7 && day <=22)
- 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.");
- else if (month == 7 && day >=23 || month== 8 && day <=22)
- 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.");
- else if (month== 8 && day>=23 || month== 9 && day <=22)
- 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.");
- else if (month== 9 && day>=23 || month == 10 && day <=21)
- 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!");
- else if (month == 10 && day>=22 || month== 11 && day <=21)
- 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.");
- else if (month == 11 && day>=22 || month == 12 && day <=21)
- 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.");
- else if (month== 12 && day>=22 || month == 1 && day <=19 )
- 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.");
- else if (month == 1 && day>=20 || month == 2 && day<=18)
- 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.");
- else if (month == 2 && day >=19 || month == 3 && day<=20)
- 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.");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement