Computers and Technology
Computers and Technology, 17.08.2021 15:20, cjkc

5.10 LAB: User-Defined Functions: 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, etc.), the year must be evenly divisible by 400 Some example leap years are 1600, 1712, and 2016. Define a function called OutputLeapYear that takes an integer as a parameter, representing a year, and output whether the year is a leap year or not. Then, write a main program that reads a year from a user, calls function OutputLeapYear() with the input as argument to determines whether that year is a leap year. Ex: If the input of the program is: 1712 the output is: 1712 is a leap year Ex: If the input of the program is: 1913 the output is: 1913 is not a leap year. Your program must define and call a function: Function OutputLeapYear(integer inputYear) returns nothing

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 04:30, Lilabbychichi
Ryan is working on the layout of her web page. she needs to figure out where her header, navigation bar, text, and images should go. what technique can her?
Answers: 1
image
Computers and Technology, 22.06.2019 13:00, cookie1701
Why the bear has a slunky tail determine the meaning of the word slunk in the story
Answers: 1
image
Computers and Technology, 23.06.2019 09:30, blake2001
Which of the following tasks is an audio technician most likely to perform while working on a nature documentary? (select all that apply). eliminating potentially distracting background noise adding sound effects making sure the lighting is adequate for a particular scene changing the narration to better match the mood of the documentary
Answers: 3
image
Computers and Technology, 24.06.2019 10:00, genyjoannerubiera
In which view can you see speaker notes?
Answers: 1
Do you know the correct answer?
5.10 LAB: User-Defined Functions: Leap year A year in the modern Gregorian Calendar consists of 365...

Questions in other subjects:

Konu
History, 15.04.2021 17:30
Konu
Mathematics, 15.04.2021 17:30
Konu
Mathematics, 15.04.2021 17:30
Konu
Social Studies, 15.04.2021 17:30