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, 21.06.2019 15:30
Which function in spreadsheet software can be used to predict future sales or inventory needs?
Answers: 2
question
Computers and Technology, 22.06.2019 03:00
Check my work the microprocessor is a(n) circuit, which is designed to process data based on a set of instructions. most desktop and laptop devices contain a microprocessor based on the standard. most tablets and smartphones contain processors based on technology. a microprocessor's circuitry is designed to perform a limited number of tasks contained in its set. during processing, an instruction is loaded into the processor's unit. data is loaded into registers in the processor's where arithmetic and logic operations are performed. microprocessor performance can be measured by its speed. other factors affecting overall processing performance include word size, cache size, and instruction set complexity. most digital devices contain only one microprocessor chip, but today's multi- processors contain circuitry that supports parallel processing. computers contain various kinds of memory. random memory is a special holding area for data, program instructions, and the system. it stores data on a temporary basis until the processor makes a data request. ram is different from disk storage because it is , which means that it can hold data only when the computer power is turned on. computers also contain read- memory, which is a type of non-volatile memory that provides a set of "hard-wired" instructions, called the loader, that a computer uses to boot up.
Answers: 3
question
Computers and Technology, 22.06.2019 12:40
The most complicated four letter word
Answers: 1
question
Computers and Technology, 23.06.2019 20:00
What multimedia system creates an immersive, real-life experience that the user can interact with?
Answers: 1
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, 12.08.2020 08:01
question
Mathematics, 12.08.2020 08:01
Questions on the website: 13722367