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 21:30
Write a function named printfloatrepresentation(float number) that will print the floating point representation of a number using the format given below. (sign bit) exponent in binary (assumed bit).significandfor example if the number passed an argument is 71 yourprogram should print (0) 10000101 (1).00011100000000000000000similarly if the number passed to the function as argument is -71 the program should print (1) 10000101 (1).00011100000000000000000
Answers: 3
question
Computers and Technology, 22.06.2019 22:40
When you type the pwd command, you notice that your current location on the linux filesystem is the /usr/local directory. answer the following questions, assuming that your current directory is /usr/local for each question. a. which command could you use to change to the /usr directory using an absolute pathname? b. which command could you use to change to the /usr directory using a relative pathname? c. which command could you use to change to the /usr/local/share/info directory using an absolute pathname? d. which command could you use to change to the /usr/local/share/info directory using a relative pathname? e. which command could you use to change to the /etc directory using an absolute pathname? f. which command could you use to change to the /etc directory using a relative pathname?
Answers: 3
question
Computers and Technology, 23.06.2019 13:30
Best laptops for college [$100-$500 range]?
Answers: 2
question
Computers and Technology, 23.06.2019 13:30
Jace needs to answer a question on square roots to win a quiz. how can he use a spreadsheet to find the square root of 786? a. use the functions round and count b. create a table and chart c. use the function sqrt d. use the function now
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
Biology, 08.04.2021 17:20
question
Mathematics, 08.04.2021 17:20
question
SAT, 08.04.2021 17:20
question
Mathematics, 08.04.2021 17:20
Questions on the website: 13722363