subject

Create a new class called DaysAwayYourLastName. Prompt the user for the month of their birthday and the date of their birthday. Plan for user input: are you expecting "March" or "mar" or "3" or what? Do you want 3/22 or March 22 or what? Be descriptive in your prompt and figure out how to handle it.

Create a LocalDate object to hold their birthday for the current year.

Pass the birthday to a method you create to calculate the days until their next birthday. Your parameter for your method should be LocalDate and your return type should be int that represents the days until their next birthday.

Inside the method, determine the days until their next birthday based on the date you passed in.

Using LocalDate & Period classes, determine the days until their next birthday.

If their birthday has already passed in the current year, determine how many days until their birthday next year.

When finished, upload your DaysAwayYourLastName. java file to this assignment for 10 points.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:00
The three logical operators used to write compound conditions are "and," "or," and "not." a: true b: false
Answers: 2
question
Computers and Technology, 23.06.2019 06:00
How can a user delete a drawing object
Answers: 1
question
Computers and Technology, 23.06.2019 16:30
Which of the following is not an enhancement to the standard wiki to make it more attractive for corporations? encryptionwork spacespermission toolspredictive text
Answers: 2
question
Computers and Technology, 23.06.2019 17:30
Per the municipal solid waste report, what are the most common sources of waste (trash
Answers: 3
You know the right answer?
Create a new class called DaysAwayYourLastName. Prompt the user for the month of their birthday and...
Questions
question
English, 20.09.2021 07:20
question
Mathematics, 20.09.2021 07:20
question
English, 20.09.2021 07:20
Questions on the website: 13722367