This needs to be made in Javascript. Leap Year Detector: Design a program that asks the user to enter a year, then displays a message indicating whether the year is a leap year. (If the year is evenly divisible by 100 and is also evenly divisible by 400, then it is a leap year. For example, 2000 is a leap year, but 2100 is not. If the year is not evenly divisible by 100 but is divisible by 4, then it is a leap year. For example, 1996 is a leap year, 1997 is not. )

EBK JAVA PROGRAMMING
8th Edition
ISBN:9781305480537
Author:FARRELL
Publisher:FARRELL
Chapter2: Using Data
Section: Chapter Questions
Problem 2GZ
icon
Related questions
Question

This needs to be made in Javascript.

Leap Year Detector:

Design a program that asks the user to enter a year, then displays a message indicating whether the year is a leap year.

(If the year is evenly divisible by 100 and is also evenly divisible by 400, then it is a leap year. For example, 2000 is a leap year, but 2100 is not.

If the year is not evenly divisible by 100 but is divisible by 4, then it is a leap year. For example, 1996 is a leap year, 1997 is not. )

 

Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr