X609: Magic Date A magic date is one when written in the following format, the month times the date equals the year e.g. 6/10/60. Write code that igures out if a user entered date is a magic date. The dates must be between 1 - 31, inclusive and the months between 1 - 12, nclusive. Let the user know whether they entered a magic date. If the input parameters are not valid, return false. Examples:

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 5GZ
icon
Related questions
Question

IN JAVA PLEASE

 

X609: Magic Date
A magic date is one when written in the following format, the month times the date equals the year e.g. 6/10/60. Write code that
figures out if a user entered date is a magic date. The dates must be between 1 - 31, inclusive and the months between 1 - 12,
inclusive. Let the user know whether they entered a magic date. If the input parameters are not valid, return false.
Examples:
magicDate(6, 10, 60) -> true
magicDate(50, 12, 600) –> false
Transcribed Image Text:X609: Magic Date A magic date is one when written in the following format, the month times the date equals the year e.g. 6/10/60. Write code that figures out if a user entered date is a magic date. The dates must be between 1 - 31, inclusive and the months between 1 - 12, inclusive. Let the user know whether they entered a magic date. If the input parameters are not valid, return false. Examples: magicDate(6, 10, 60) -> true magicDate(50, 12, 600) –> false
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 4 images

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:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,