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.
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
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
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 1 images
Knowledge Booster
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.Recommended textbooks for you
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr