Assignemnt #95 and Month Off Set Code /// Name: Yordan Rashkov /// Period: 7 /// Program Name: month off set /// File Name: MOS.java /// Date Finished: 3/16/2016 public class MOS { public static int MOS( int month ) { int result; if ( month == 1 ) { result = 1; } else if ( month == 2 ) { result = 4; } else if ( month == 3 ) { result = 4; } else if ( month == 4 ) { result = 0; } else if ( month == 5 ) { result = 2; } else if ( month == 6 ) { result = 5; } else if ( month == 7 ) { result = 0; } else if ( month == 8 ) { result = 3; } else if ( month == 9 ) { result = 6; } else if ( month == 10 ) { result = 1; } else if ( month == 11 ) { result = 4; } else if ( month == 12 ) { result = 6; } else { result = -1; } return result; } public static void main( String[] args ) { System.out.println( "Offset for Month #1: " + MOS(1) ); System.out.println( "Offset for Month #2: " + MOS(2) ); System.out.println( "Offset for Month #3: " + MOS(3) ); System.out.println( "Offset for Month #4: " + MOS(4) ); System.out.println( "Offset for Month #5: " + MOS(5) ); System.out.println( "Offset for Month #6: " + MOS(6) ); System.out.println( "Offset for Month #7: " + MOS(7) ); System.out.println( "Offset for Month #8: " + MOS(8) ); System.out.println( "Offset for Month #9: " + MOS(9) ); System.out.println( "Offset for Month #10: " + MOS(10) ); System.out.println( "Offset for Month #11: " + MOS(11) ); System.out.println( "Offset for Month #12: " + MOS(12) ); System.out.println( "Offset for Month #43: " + MOS(43) ); } }