// MyCalendar.java: A subclass of GregorianCalendarimport java.awt.*;import java.util.*;public class MyCalendar extends GregorianCalendar {/**Find the number of days in a month*/public int daysInMonth() {
switch (get(MONTH)) {
case 0: case 2: case 4: case 6: case 7: case 9: case 11:
return 31...