Create a program that asks the user to enter a birth date and tellsthe user the
ID: 3615743 • Letter: C
Question
Create a program that asks the user to enter a birth date and tellsthe user the zodiac sign of that date. But this time, ask the userif he wants to enter another birth date, if so, then he shouldenter "yes", and if not anymore, the user should enter "no".Sample Output:
Enter a birth date: May 27
The zodiac sign is: Gemini
Do you want to enter another birth date? (Enter yes or no). Yes
Enter another birth date: May 28
The zodiac sign is: Gemini
Do you want to enter another birth date? (Enter yes or no). No
Explanation / Answer
please rate - thanks import java.io.*; public class untitled { public static void main(String[] args) throwsException { BufferedReader keyIn =new BufferedReader(new InputStreamReader(System.in)); String YesNo="yes"; while(YesNo.equalsIgnoreCase("yes")) { System.out.println("Please enter your birthday: "); System.out.print("Enter month: "); String month=keyIn.readLine(); System.out.print("Enter month: "); String input=keyIn.readLine(); intday=Integer.parseInt(input); if(month.equals("January")) if(dayRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.