Question: Task 2 (20 pts) complex boolean expression Create project: HW3_Aries Submit java file: HW3_Aries.java Write a program that reads the month and the day from

 Task 2 (20 pts) complex boolean expression Create project: HW3_Aries Submit

Task 2 (20 pts) complex boolean expression Create project: HW3_Aries Submit java file: HW3_Aries.java Write a program that reads the month and the day from the user and prints whether or not someone born on that date is under the Aries astrological sign or not. Anyone born between and including March 21 and April 19 is Aries. You can assume that the month and day are given as integer numbers (e.g. do not worry about user enterring March) Hint: write the condition for an Aries date in March. Write the condition for April. Put these two together -Sample run: Enter the month: 3 Enter the day: 21 Aries. - Sample run: Enter the month: 4 Enter the day: 19 Aries. Sample run: Enter the month: 3 Enter the day: 27 Aries - Sample run: Enter the month: 4 Enter the day: 6 Aries Sample run: Enter the month: 3 Enter the day: 40 Not Aries. Sample run: Enter the month: 4 Enter the day: -5 Not Aries Sample run: Enter the month: 2 Enter the day: 27 Not Aries. Extra (for practice, not grade): recognize the month in other formats as well: Mar, March, 3, 03 Apr, April, 4, 04

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!