Advertisement
DavidPeikrishvili1

Horoscope Project

Dec 14th, 2015
384
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 8.82 KB | None | 0 0
  1. //David Peikrishvili
  2. //12/10/2015
  3.  
  4. import java.util.*;
  5. public class Horoscopes
  6. {
  7.   public static void main(String[] args)
  8.   {
  9.     Scanner input = new Scanner (System.in);
  10.     System.out.println("Welcome to the Horoscope");
  11.     System.out.println("Please enter your  month that you were born in! (In numbers please!!)");
  12.     int month = input.nextInt();
  13.     System.out.println("What is the day that your were born in? (In numbers please!!)");
  14.     int day = input.nextInt();
  15.     String dayString, monthString;
  16.    
  17.     if (month == 1)
  18.     monthString = "January";
  19.     else if (month == 2)
  20.     monthString = "February";
  21.     else if (month == 3)
  22.     monthString = "March";
  23.     else if (month == 4)
  24.     monthString = "April";
  25.     else if (month == 5)
  26.     monthString = "May";
  27.     else if (month == 6)
  28.     monthString = "June";
  29.     else if (month == 7)
  30.     monthString = "July";
  31.     else if (month == 8)
  32.     monthString = "August";
  33.     else if (month == 9)
  34.     monthString = "September";
  35.     else if (month == 10)
  36.     monthString = "October";
  37.     else if (month == 11)
  38.     monthString = "November";
  39.     else if (month == 12)
  40.     monthString = "December";
  41.    
  42.     else if (day == 1)
  43.       dayString = "first";
  44.     else if (day == 2)
  45.       dayString = "second";
  46.     else if (day == 3)
  47.       dayString = "third";
  48.     else if (day == 4)
  49.       dayString = "fourth";
  50.     else if (day == 5)
  51.       dayString = "fifth";
  52.     else if (day == 6)
  53.       dayString = "sixth";
  54.     else if (day == 7)
  55.       dayString = "seventh";
  56.     else if (day == 8)
  57.       dayString = "eighth";
  58.     else if (day == 9 )
  59.       dayString = "ninth";
  60.     else if (day == 10)
  61.       dayString = "tenth";
  62.     else if (day == 11)
  63.       dayString = "eleventh";
  64.     else if (day == 12)
  65.       dayString = "twelfth";
  66.     else if (day == 13)
  67.       dayString = "thirteenth";
  68.     else if (day == 14)
  69.       dayString = "fourteenth";
  70.     else if (day == 15)
  71.       dayString = "fifthteenth";
  72.     else if (day == 16)
  73.       dayString = "sixthteenth";
  74.     else if (day == 17)
  75.       dayString = "seventeenth";
  76.     else if (day == 18)
  77.       dayString = "eighteenth";
  78.     else if (day == 19)
  79.       dayString = "nineteenth";
  80.     else if (day == 20)
  81.       dayString = "twentieth";
  82.     else if (day == 21)
  83.       dayString = "twenty first";
  84.     else if (day == 22)
  85.       dayString = "twenty second";
  86.     else if (day == 23)
  87.       dayString = "twenty third";
  88.     else if (day == 24)
  89.       dayString = "twenty fourth";
  90.     else if (day == 25)
  91.       dayString = "twenty fifth";
  92.     else if (day == 26)
  93.       dayString = "twenty sixth";
  94.     else if (day == 27)
  95.       dayString = "twenty seventh";
  96.     else if (day == 28)
  97.       dayString = "twenty eighth";
  98.     else if (day == 29)
  99.       dayString = "twenty ninth";
  100.     else if (day == 30)
  101.       dayString = "thirtieth";
  102.     else if (day == 31)
  103.       dayString = "thirty first";
  104.    
  105.     if (day < 1 || day >31 || month <1 || month > 12)
  106.      System.out.println("ERROR");
  107.    
  108.     if ((month == 1 && day >= 19) || (month == 2 && day <= 15))
  109.     {
  110.       System.out.println("Zodiac Sign : Capricornus - The Sea Goat!!!");
  111.       System.out.println("Your Horoscope is : Capricorn, the tenth sign of the zodiac, is all about hard work. Those born under this sign are more than happy to put in a full day at the office, realizing that it will likely take a lot of those days to get to the top.");
  112.     }
  113.      else if ((month == 2 && day >= 16) || (month == 3 && day <= 11))
  114.      {
  115.       System.out.println("Zodiac Sign : Aquarius - The Water Carrier!!!");
  116.       System.out.println("Your Horoscope is - Those born under this sign have the social conscience needed to carry us into the new millennium. These folks are humanitarian, philanthropic and keenly interested in making the world a better place.  ");
  117.      }
  118.      else if ((month == 3 && day >= 12) || (month == 4 && day <= 18))
  119.      {
  120.       System.out.println("Zodiac Sign : Pisces - The Fishes!!!");
  121.       System.out.println("Your Horoscope is - Pisces, however, are happiest keeping many of these qualities under wraps. These folks are selfless, spiritual and very focused on their inner journey. ");
  122.      }
  123.      else if ((month == 4 && day >= 19) || (month == 5 && day <= 13))
  124.      {
  125.       System.out.println("Zodiac Sign : Aries- The Ram");
  126.       System.out.println("Your Horoscope is - Aries are the leaders of the pack, first in line to get things going. Whether or not everything gets done is another question altogether, for an Aries prefers to initiate rather than to complete. ");
  127.      }
  128.      else if ((month == 5 && day >= 14) || (month == 6 && day <= 19))
  129.      {
  130.       System.out.println("Zodiac Sign : Taurus - The Bull");
  131.       System.out.println("Your Horoscope is - Unlike the Aries love of the game, Taurus loves the rewards of the game. Think physical pleasures and material goods, for those born under this sign revel in delicious excess. They are also a tactile lot, enjoying a tender, even sensual, touch.");
  132.      }
  133.      else if ((month == 6 && day >= 20) || (month == 7 && day <= 20))
  134.      {
  135.       System.out.println("Zodiac Sign : Gemini - The Twins!!!");
  136.       System.out.println("Your Horoscope is - those born under this sign will be quick to tell you all about it. That's because they love to talk! It's not just idle chatter with these folks, either. The driving force behind a Gemini's conversation is their mind. ");
  137.      }
  138.      else if ((month == 7 && day >= 21) || (month == 8 && day <= 9))
  139.      {
  140.       System.out.println("Zodiac Sign : Cancer - The Crab!!!");
  141.       System.out.println("Your Horoscope is - Those born under this sign are 'roots' kinds of people, and take great pleasure in the comforts of home and family. Cancers are maternal, domestic and love to nurture others. More than likely, their family will be large, too -- the more, the merrier! ");
  142.      }
  143.      else if ((month == 8 && day >= 10) || (month == 9 && day <= 15))
  144.      {
  145.       System.out.println("Zodiac Sign : Leo - The lion");
  146.       System.out.println("Your Horoscope is - These folks are impossible to miss, since they love being center stage. Making an impression is Job One for Leos, and when you consider their personal magnetism, you see the job is quite easy. ");
  147.      }
  148.      else if ((month == 9 && day >= 16) || (month == 10 && day <= 30))
  149.      {
  150.       System.out.println("Zodiac Sign : Virgo - The Maiden!!!");
  151.       System.out.println("Your Horoscope is - Those born under this sign are forever the butt of jokes for being so picky and critical (and they can be), but their 'attention to detail' is for a reason: to help others. ");
  152.      }
  153.      else if ((month == 10 && day >= 31) || (month == 11 && day <= 28))
  154.      {
  155.       System.out.println("Zodiac Sign : Libra - The Scales!!!");
  156.       System.out.println("Your Horoscope is - Libras are first and foremost focused on others and how they relate to them. We can call this the sign of Partnership with a capital 'P' because these folks do not want to be alone! For a Libra, everything is better if it's done as a pair. Libras are good when paired up, too, since they epitomize balance, harmony and a sense of fair play. ");
  157.      }
  158.      else if ((month == 11 && day >= 23) || (month == 11 && day <= 29))
  159.      {
  160.       System.out.println("Zodiac Sign : Scorpius - The Scorpion!!!");
  161.       System.out.println("Your Horoscope is - Today, that bad, nagging feeling you've been having about something or someone will start to fade away. All of your worries were unfounded, which will become evident by the end of today. ");
  162.      }
  163.      else if ((month == 11 && day >= 30) || (month == 12 && day <= 17))
  164.      {
  165.       System.out.println("Zodiac Sign : Ophiuchus - The Serpent Bearer!!!");
  166.       System.out.println("Your Horoscope is -Wait a minute! There’s no Ophiuchus on the horoscope page.You are absolutely correct. That’s because Ophiuchus is a constellation – not a sign – of the Zodiac. Follow the links below to learn more about astrological signs versus astronomical constellations, when and where to locate Ophiuchus, some deep-sky treasures it contains, its mythology, its science and more.  ");
  167.      }
  168.      else if ((month == 12 && day >= 18) || (month == 1 && day <= 18))
  169.      {
  170.       System.out.println("Zodiac Sign : Sagittarius - The Archer!!!");
  171.       System.out.println("Your Horoscope is - Today, all of your choices and ideas will have everyone buzzing with admiration -- and maybe even just a wee bit of jealousy. But you can't let other people's envy get you down. Keep on busting out with your smart style, and stop caring who's getting all worked up about it. ");
  172.      }
  173.      
  174.      
  175.      
  176.  
  177.    
  178.     //if (day == 1)
  179.     //day string = "first"
  180.     //same with months, first if and put numerical number and then turn it into a word format with an else)
  181.    
  182.    
  183.    
  184.    
  185.    
  186.    
  187.    
  188.    
  189.    
  190.    
  191.    
  192.   }
  193. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement