Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intranet And Web Databases For Dummies

Authors: Paul Litwin

1st Edition

0764502212, 9780764502217

More Books

Students also viewed these Databases questions

Question

What are the best practices for managing a large software project?

Answered: 1 week ago

Question

How does clustering in unsupervised learning help in data analysis?

Answered: 1 week ago

Question

=+4 Develop and deliver the CCT program.

Answered: 1 week ago

Question

=+5 Evaluate whether the CCT program was effective.

Answered: 1 week ago

Question

=+Identify the type of global assignment for which CCT is needed.

Answered: 1 week ago