Draw an activity diagram, which takes the parameters of month/year and returns the number of days in the month of the year. In each leap year, the month of February has 29 days instead of 28. Note that the following three criteria are taken into account to identify leap years: • The year is divisible by 4; • If the year can be divided by 100, it is NOT a leap year, unless; • The year is also divisible by 400, then it is a leap year.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter11: Introduction To Classes
Section11.5: A Closer Look: Uml Class And Object Diagrams
Problem 8E
icon
Related questions
Question
Draw an activity diagram, which takes the parameters of month/year and returns the number of days in the month of the year. In each leap year, the month of February has 29 days instead of 28. Note that the following three criteria are taken into account to identify leap years: • The year is divisible by 4; • If the year can be divided by 100, it is NOT a leap year, unless; • The year is also divisible by 400, then it is a leap year.
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Enhanced ER Model
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
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr