Question
package edu.cuny.csi.csc330.lab1; /** * Generates a non-leap year perpetual Julian Calendar * @author lji * */ public class JulianCalendar { // Max number of Days
package edu.cuny.csi.csc330.lab1;
/**
* Generates a non-leap year perpetual Julian Calendar
* @author lji
*
*/
public class JulianCalendar {
// Max number of Days in a month
static private final int MAX_DAY = 31;
// abbreviated Month names
static private final String [] MONTH_NAMES = {
"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
};
// day length of each month
static private final int [] MONTH_SIZES = {
31, 28, 31,30,31, 30, 31, 31, 30, 31, 30, 31
};
/**
* display The "DAY" Column Heading
*/
static private void displayDayHeading() {
System.out.printf("%5s", "Day");
}
/**
* display Month names between Day .... Day
*/
static private void displayHeading() {
displayDayHeading();
for(int i = 0 ; i < MONTH_NAMES.length ; ++i ) {
System.out.printf("%5s", MONTH_NAMES[i]);
}
displayDayHeading();
}
static public void display() {
displayHeading(); // display heading
// missing the coding part
//
//
//
//
//
//
}
/**
* @param args
*/
public static void main(String[] args) {
// invoke display method
display();
}
}
Please I need the missing code to form the Julian Dates - Normal Calendar Year in Java
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started