subject

In this lab, you add the input and output statements to a partially completed Java program. When completed, the user should be able to enter a year, a month, and a day to determine if the date is valid. Valid years are those that are greater than 0, valid months include the values 1 through 12, and valid days include the values 1 through 31.

Instructions

Notice that variables have been declared for you.

Write the simulated housekeeping() method that contains input statements to retrieve a year, a month, and a day from the user.

Add statements to the simulated housekeeping() method that convert the String representation of the year, month, and day to ints.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 13:00
What are some websites that you can read manga (ex: manga rock)
Answers: 1
question
Computers and Technology, 25.06.2019 05:30
You are asked to calculate an object's velocity, in order to do so you must know the object's a. direction and speed. b. distance and time. c. speed and distance. d. direction and distance.
Answers: 1
question
Computers and Technology, 25.06.2019 06:00
In 2 to 3 sentences, describe how you would change the background of a group of cells
Answers: 1
question
Computers and Technology, 25.06.2019 08:20
The internet backbone is a foundation network linked with
Answers: 1
You know the right answer?
In this lab, you add the input and output statements to a partially completed Java program. When com...
Questions
question
Biology, 08.04.2020 19:15
question
Mathematics, 08.04.2020 19:15
question
Geography, 08.04.2020 19:15
question
Mathematics, 08.04.2020 19:16
question
English, 08.04.2020 19:16
Questions on the website: 13722362