Download TestProgramMod3

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
Thoroughly comment your program for full credit.
Write a program that uses while and if else if statements to allows a person to select one of three
options: Chinese Zodiac, Western Astrology or Elements Astrology. If the person types in “none” then
the program ends. If the person selects Chinese Zodiac he is prompted for his year of birth (as far back
as 1960) and then the animal associated with that year is printed. If the person selects Western
Astrology, then his month and day of birth are entered and an interesting characteristic of that person is
printed out. If the person selects Elements Astrology then the person is asked for his sign (Aries, Taurus,
Gemini, etc.) and then the correct element is printed out (fire, earth, air, water) as shown in the table
below. The program continues over and over again until the word “none” is typed.
Element
Signs
Fire
Aries, Leo, Sagittarius
Earth
Taurus, Virgo, Capricorn
Air
Gemini, Libra, Aquarius
Water
Cancer, Scorpio, Pisces
Related documents