PIC20A

Homework 1: The twelve traditional signs of the zodiac

Due

1/20 Thu 5 pm No late homework will be accepted!

Assignment

This is a very easy Homework. You are going to write a program named Sign.java to find out your Astrological Sign
Here is how your find your Astrological Sign (See also Yahoo! Astrology)

Aries
 3/21-4/19

Leo
 7/23-8/22

Sagittarius
 11/22-12/21

Taurus
 4/20-5/20

Virgo
 8/23-9/22

Capricorn
 12/22-1/19

Gemini
 5/21-6/21

Libra
 9/23-10/22

Aquarius
 1/20-2/18

Cancer
 6/22-7/22

Scorpio
 10/23-11/21

Pisces
 2/19-3/20

Sample Outpt

C:> java Sign 
Usage: java Sign month day
gives the Astrological Sign of people born on month/day.

C:> java Sign 11 
Please input 2 arguments (month and day)
Usage: java Sign month day
gives the Astrological Sign of people born on month/day.

C:> java Sign 11 30 22
Please input 2 arguments (month and day)
Usage: java Sign month day
gives the Astrological Sign of people born on month/day.

C:> java Sign 11 24
Sagittarius

C:> java Sign 2 12
Aquarius

C:> java Sign 50 23
Month should be a number between 1 and 12.

C:> java Sign 33 53
Month should be a number between 1 and 12.

C:> java Sign 11 35
Day should be a number between 1 and 30.

C:> java Sign 2 31
Day should be a number between 1 and 29.
Remark:

What to submit

Call your source code file Sign.java. Put this file in your submit folder. Do not place this file inside another folder within your submit folder.

Remark