Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

java Lab 04 What is your Zodiac? Objective: Write a program that determines a person's astrological zodiac sign based on their birthday Prompt the user

image text in transcribed

java

Lab 04 What is your Zodiac? Objective: Write a program that determines a person's astrological zodiac sign based on their birthday Prompt the user for a month and then a day The month and day have to be valid o Month: 1-12 0 Day: 1-31 - You do not have to check if it the date is rcal. Such as April 31 is not a real date. That's a wholc different problem, Then determine the person's zodiac symbol 0 Aries = March 21 to April 19 o Taurus - April 20 to May 20 o Gemini = May 21 to June 20 . Cancer = Junc 21 to July 22 o Lco = July 23 to August 22 Virgo = August 23 to September 22 o Libra - September 23 to October 22 o Scorpio = October 23 to November 21 o Sagittarius = November 22 to December 21 o Capricorn = December 22 to January 19 Aquarius = January 20 to February 18 o Pisces - February 19 to March 20 . If the data was incorrect (like April 31*) then you do not have to print out anything, Example Dialog: What is your zodiac? Enter your birthday! Month followed by Day! 6 22 You are a cancer! Another Example Dialog: What is your zodiac? Enter your birthday! Month followed by Day! -6 22 Invalid month or day

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Database Systems Design Implementation And Project Management

Authors: Albert K.W. Yeung, G. Brent Hall

1st Edition

1402053932, 978-1402053931

More Books

Students also viewed these Databases questions