You are viewing a single comment's thread. Return to all comments →
public static int libraryFine(int d1, int m1, int y1, int d2, int m2, int y2) {
if(y1<y2) return 0; if(d1>d2 && m1<m2 && y1<=y2) return 0; if(d1>d2 && m1<=m2 && y1<=y1) return 15*(d1-d2); if(m1>m2 && y1<=y2) return 500*(m1-m2); if(d1<=d2 && m1<=m2 && y1<=y2) return 0; return 10000; }
Library Fine
You are viewing a single comment's thread. Return to all comments →
public static int libraryFine(int d1, int m1, int y1, int d2, int m2, int y2) {