subject

Write a program to generate the entire calendar for one year. the program must get two values from the user: (1) the year and (2) the day of the week for january 1st of that year. the year, which should be positive, is needed to check for and handle leap years1. the day of the week for january 1st is needed so that you know where to start the calendar. the user should enter 0 for sunday, 1 for monday, … or 6 for saturday. as always, you need to validate the user's input. to actually print the calendar, you must use a single method that prints out the calendar for one month and then call this function 12 times from once for each month in the year. to check for a leap year you will need to write another method that takes the year as a parameter and returns true if it’s a leap year, or false otherwise. stubs (i. e. method signatures without any code) for both of these methods have been provided for you. the calendar should be printed in the form below. in this example, january starts on a saturday (day 6). note that february starts on a tuesday in this example because january ended on a monday

ansver
Answers: 3

Another question on Computers and Technology

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 15:30
Whats are the different parts of no verbal comunication, especially body language?
Answers: 3
question
Computers and Technology, 22.06.2019 19:00
Stacy works as blank. the most important soft skill she needs for this role is blank.
Answers: 3
question
Computers and Technology, 22.06.2019 19:30
Singing in the rain: this first part of the film shows the early history of motion picture. how accurate do you think the portrayal of the early motion picture industry is? why? is historical accuracy important in films and theater productions? explain.
Answers: 1
You know the right answer?
Write a program to generate the entire calendar for one year. the program must get two values from t...
Questions
question
Mathematics, 18.05.2021 23:30
question
Arts, 18.05.2021 23:30
Questions on the website: 13722367