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 20:00
Which location-sharing service offers items for users as a gaming component and also allows them to collectively link their check-ins to publish a trip? a. whrrl b. buzzd c. foursquare (this option is wrong i already tried) d. gowalla for plato
Answers: 2
question
Computers and Technology, 24.06.2019 10:30
Which of the following types of software is most applicable to the promotion of new products through advertising? a.databases b. spreadsheets c. web design programs d. word processing tools
Answers: 2
question
Computers and Technology, 24.06.2019 14:40
Create a function (prob3_6) that will do the following: input a positive scalar integer x. if x is odd, multiply it by 3 and add 1. if the given x is even, divide it by 2. repeat this rule on the new value until you get 1, if ever. your program will output how many operations it had to perform to get to 1 and the largest number along the way. for example, start with the number 3: because 3 is odd, we multiply by 3 and add 1 giving us 10. 10 is even so we divide it by 2, giving us 5. 5 is odd so we multiply by 3 and add one, giving us 16. we divide 16 (even) by two giving 8. we divide 8 (even) by two giving 4. we divide 4 (even) by two giving 2. we divide 2 (even) by 2 to give us 1. once we have one, we stop. this example took seven operations to get to one. the largest number we had along the way was 16. every value of n that anyone has ever checked eventually leads to 1, but it is an open mathematical problem (known as the collatz conjectureopens in new tab) whether every value of n eventually leads to 1. your program should include a while loop and an if-statement.
Answers: 3
question
Computers and Technology, 24.06.2019 15:40
In the above figure, what type of cylinder arrangement is shown in the figure above? a. l-type b. v-type c. in-line d. horizontal pls make sure its right if its rong im grounded for 3months
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, 20.06.2020 21:57
question
Mathematics, 20.06.2020 21:57