Computers and Technology

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

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 21:00, brockmorrison3468
Is it ok to use a does red wine clean the inside of a computer true or false
Answers: 2
image
Computers and Technology, 22.06.2019 11:00, abelxoconda
Which are examples of note-taking tools? check all that recording devices sticky notes digital highlighters paper flags highlighting pens digital displays digital flags
Answers: 1
image
Computers and Technology, 23.06.2019 12:00, clevelandjaniya1
Which of these is a benefit of using objects in a powerpoint presentation? a. collaborators can create the external files while you create and edit the slide show. b. you can easily change the theme and design of the presentation. c. you can have older data in the source file while having up-to-date data in the presentation. d. collaborators can easily share the presentation.
Answers: 2
image
Computers and Technology, 24.06.2019 15:00, cooljariel11
What questions about an audience should be asked during presentation preparation? check all that apply. what does the audience already know about the topic? how will multimedia tools inspire the audience? is the information interesting and engaging? how will this information affect the presentation? will the audience change the message’s purpose? what is likely to interest the audience?
Answers: 3
Do you know the correct answer?
This program will print a calendar for a given month. the user will input the following: - the mont...

Questions in other subjects:

Konu
Arts, 31.08.2019 03:30
Konu
History, 31.08.2019 03:30
Konu
Engineering, 31.08.2019 03:30