subject

This program will print a calendar for a given month. the user will input the following: - the month (1 to 12) the year (1800 to 2200) the day of the week (0 sunday, 1 - monday, etc.) that the 1st falls on. use the validation code you wrote in #1 to validate the input. name your project calendar and create a source file called calendaf. java. the calendar will look like this:

october 2018
smtwtfs
123456
78910111213
14 15 1617 181920
21 22 2324 252627
28 29 3031

one algorithm to print this would be to
a) first print the name of the month, then the day headers
b) on the next line, print spaces for days leading up to the first of the month.
c) print the current day of the month, increment the day of the month.
d) if we've printed the last day of the week (saturday, day 6), print a new line
e) if we've printed the last day of the month, print a new line and exit the loop.
f) loop back to step c

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 21:40
Which of these is not a type of socket? aga (alternating grid array) pga (pin grid array) spga (staggered pin grid array) lga (land grid array)
Answers: 1
question
Computers and Technology, 25.06.2019 08:00
Ais the hardware where the data is actually stored.
Answers: 1
question
Computers and Technology, 25.06.2019 12:00
Fill in the blank; "as well as their traditional role of computing data, computers are also extensively used "
Answers: 3
question
Computers and Technology, 26.06.2019 02:00
To activate the laser pointer, what would you press and/or click? a. ctrl + left mouse button b. ctrl + p c. esc key d. n key
Answers: 2
You know the right answer?
This program will print a calendar for a given month. the user will input the following: - the mont...
Questions
question
Mathematics, 18.03.2020 02:55
question
Mathematics, 18.03.2020 02:55
Questions on the website: 13722367