subject

3.26 lab: leap year a year in the modern gregorian calendar consists of 365 days. in reality, the earth takes longer to rotate around the sun. to account for the difference in time, every 4 years, a leap year takes place. a leap year is when a year has 366 days: an extra day, february 29th. the requirements for a given year to be a leap year are: 1) the year must be divisible by 4 2) if the year is a century year (1700, 1800, the year must be evenly divisible by 400 some example leap years are 1600, 1712, and 2016. write a program that takes in a year and determines whether that year is a leap year. ex: if the input is: 1712 the output is: 1712 is a leap year. ex: if the input is: 1913 the output is: 1913 is not a leap year.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 20:00
What side length would you specify if you were required to create a regular hexagonal plate that was composed of 33 cm(squared) of sheet metal? dimension the side length to 0.1 cm
Answers: 2
question
Computers and Technology, 22.06.2019 22:50
Assume the existence of a bankaccount class. define a derived class, savingsaccount that contains two instance variables: the first a double, named interestrate, and the second an integer named interesttype. the value of the interesttype variable can be 1 for simple interest and 2 for compound interest. there is also a constructor that accepts two parameters: a double that is used to initialize the interestrate variable, and a string that you may assume will contain either "simple", or "compound", and which should be used to initialize the interesttype variable appropriately. there should also be a pair of functions getinterestrate and getinteresttype that return the values of the corresponding data members (as double and int respectively).
Answers: 2
question
Computers and Technology, 23.06.2019 07:00
What are three software programs for mobile computing?
Answers: 1
question
Computers and Technology, 23.06.2019 23:30
What are "open-loop" and "closed-loop" systems
Answers: 1
You know the right answer?
3.26 lab: leap year a year in the modern gregorian calendar consists of 365 days. in reality, the e...
Questions
question
Mathematics, 27.12.2020 01:00
question
English, 27.12.2020 01:00
question
Biology, 27.12.2020 01:00
Questions on the website: 13722359