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 10:00
Create a word problem that involves calculating the volume and surface area of a three-dimensional object. cube: surface area 6 s2 , volume s3
Answers: 3
question
Computers and Technology, 22.06.2019 19:00
How is the number 110 written when expanded out to place values in the base 2 (binary) number system? options: 2 x 4 + 3 x 2 + 4 x 1 1 x 2 + 1 x 2 + 0 x 2 1 x 100 + 1 x 10 + 0 x 1 1 x 4 + 1 x 2 + 0 x 1
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
What is the total resistance in a circuit that contains three 60 ohm resistors connected in a series? a. 20 ohms b. 120 ohms c. 60 ohms d. 180 ohms
Answers: 2
question
Computers and Technology, 24.06.2019 08:30
Aconsumer would pay an extra they used the rent to own program to buy the computer, rather than using cash. for all of the items, is the cheapest option over the life of the contract. the most expensive overall option is to use purchase the item.
Answers: 2
You know the right answer?
Create a new class called DaysAwayYourLastName. Prompt the user for the month of their birthday and...
Questions