Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Problem b (PA3b.java) Write an astrology program. The user will give their birthday as a month number (1 - 12) and then a day number
Problem b (PA3b.java) Write an astrology program. The user will give their birthday as a month number (1 - 12) and then a day number (1 - 31). Your program will then output the person's astrological sign on one line, and then a horoscope for the user on the next. You may make up whatever horoscope you want for each different sign. Here are the sign dates: Apay 21 Sign Aries Taurus Gemini Cancer Leo Virgo Libra Scorpio Sagittarius Capricorn Aquarius Pisces Start Date March 21 April 20 May 21 June 22 July 23 August 23 September 23 October 23 November 22 December 22 January 20 February 19 End Date April 19 May 20 June 21 July 22 August 22 September 22 October 22 November 21 December 21 January 19 February 18 March 20 and here is an example execution: Enter your birth month (1-12): 9 Enter your birth day (1-31): 26 You are a Libra! Tony Stark will buy out your business. You are going to need to use a long set of if and else if statements. You will either need to use compound expressions (combining expressions with the "and" and "or" operators) or have nested if statements (if statements inside of if statements). To get started, try to get one or two of the signs correct first, then try to make it work for the rest. You should verify that the month is between 1 and 12 and the day is between 1 and 31, but you don't need to check the day for specific months. You have been supplied with JUnit tests for each of the signs, as well as day/month inputs that are too large
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started