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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 03:00, jarteria0
State 7 common key's for every keyboard
Answers: 1
image
Computers and Technology, 23.06.2019 06:30, Zieken993
Martha is designing a single-player game. her manager suggests that she plan the design to incorporate future modifications. which principle of game design relates to planning for future modifications?
Answers: 1
image
Computers and Technology, 23.06.2019 19:40, Latoyajenjins1789
Use a physical stopwatch to record the length of time it takes to run the program. calculate the difference obtained by calls to the method system. currenttimemillis() just before the start of the algorithm and just after the end of the algorithm. calculate the difference obtained by calls to the method system. currenttimemillis() at the start of the program and at the end of the program so that the elapsed time includes the display of the result. use the value returned by the method system. currenttimemillis() just after the end of the algorithm as the elapsed time.
Answers: 3
image
Computers and Technology, 24.06.2019 12:40, kanga06
Match the feature to the network architecture. expensive to set up useful for a small organization easy to track files has a central server inexpensive to set up difficult to track files useful for a large organization does not have a central server client- server network peer-to-peer network
Answers: 3
You know the right answer?
Create a new class called DaysAwayYourLastName. Prompt the user for the month of their birthday and...

Questions in other subjects:

Konu
Mathematics, 07.12.2020 22:10
Konu
Mathematics, 07.12.2020 22:10