1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
V125BC [204]
4 years ago
15

python 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. Write a program that takes in a year and determines whether that year is a leap year.
Computers and Technology
2 answers:
Lesechka [4]4 years ago
4 0

Answer:

i_year=int(input(""))

#check leap year

if((i_year % 4 == 0 and i_year % 100 != 0) or (i_year % 400 == 0)):

  print("{} is a leap year.".format(i_year))

else:

  print("{} is not a leap year.".format(i_year))

Explanation:

e-lub [12.9K]4 years ago
3 0

Answer:

// program in Python.

#read year

i_year=int(input("Please Enter a year:"))

#check leap year

if((i_year % 4 == 0 and i_year % 100 != 0) or (i_year % 400 == 0)):

   print("{} is a leap year.".format(i_year))

else:

   print("{} is not a leap year.".format(i_year))

Explanation:

Read year from user and assign it to variable "year".If year is completely divisible by 4 and not divisible by 100 or year is completely divisible by 400 then year is leap year otherwise year is not a leap year.

Output:

Please Enter a year:2003                                                                                                          

2003 is not a leap year.

You might be interested in
HELP
lubasha [3.4K]

Answer:

You need to pick 10 concepts from the list and take/pick a picture you think shows the concept. You then pick 5 of your favorites from the 10 and put them on a slideshow, explaining what concept it is and how it shows it.

Explanation:

So if I did vegetable, I would take a good picture of a carrot. Then, if I picked it as one of my five favorites, I would put it on a presentation and say, "This displays the concept of vegetables. My picture shows this concept because carrots are a type of vegetable."

4 0
4 years ago
Which component of a computer is its input device and what role does it play in a document?
hichkok12 [17]

a keyboard is a imput device that helps in writing in a document.

3 0
4 years ago
If a DirectAccess user has issues with their laptop or remote device, what can be enabled to facilitate help desk personnel get
chubhunter [2.5K]

Answer:

VPN, Virtual Private Network.

Explanation:

A virtual private network (VPN) is a secure remote connection that allow a user to access a server and access a remote device. The server listen at tcp port 5900 and users must be authenticated to gain access to a remote machine.

A direct access user must be on a VPN for remote access to possible on another device.

3 0
4 years ago
_____ is a system in which a finite set of words can be combined to generate an infinite number of sentences.
Sedbober [7]

Generativity is a system in which a finite set of words can be combined to generate an infinite number of sentences.

<h3>What is a sentence?</h3>

A sentence is a grouping of words, phrases, or clauses that convey meaning to us. An object or a subject can be found in a sentence. These help the person to communicate with one another.

Generativity can be defined as the way to weigh A grammar or a sentence being spoken for. It is defined as a found set of the whole with is defined, usually made with a finite number, to create an infinite number of sentences or words combined.

Learn more about sentences, here:

brainly.com/question/12684453

#SPJ1

8 0
2 years ago
E-mail is the most common distributed application that is widely used across all architectures and vendor platforms.a) trueb) fa
Advocard [28]

Answer:

A. True.

Explanation:

E-mail is an acronym for electronic mail and it can be defined as an exchange or transmission of computer-based data (messages) from one user to another over a communications network system.

Also, a distributed application refers to a software program that is capable of running on several computer systems and can communicate effectively through a network.

E-mail is the most common distributed application that is widely used across all architectures and vendor platforms because it primarily operates on a client-server model, by providing users with the requested services through the Simple Mail Transfer Protocol (SMTP) using the standard port number of 25.

7 0
3 years ago
Other questions:
  • Percy is a lighting technician in a film production. For a shot, the chief lighting technician instructs Percy to get the kind o
    15·1 answer
  • How many water bottles must be collected to win?
    8·2 answers
  • You want to average the numbers in the range b1:b30. you have named this range of cells data and wish to use this range name in
    9·1 answer
  • Which type of memory helps in reading as well as writing data?
    13·1 answer
  • What are programming paradigms?​
    9·1 answer
  • 1. Provide at least two statements that explain the relationship between the position of the Earth and the seasons.
    15·1 answer
  • In this lab, you open a file and read input from that file in a prewritten C program. The program should read and print the name
    5·1 answer
  • Write a function that accepts a cell array StudentScores consisting of the following:
    12·1 answer
  • Will give BRAINLIEST, PLEASE HELP, WILL BE MUCH APPRECIATED
    13·1 answer
  • Different between embedded computer &amp;<br> Micro controllers
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!