Question
I need to make a calendar for the class using java, and I tried but I can't make it as below image. I tried everything,
I need to make a calendar for the class using java, and I tried but I can't make it as below image.
I tried everything, but I can't make it. Can you help me, please?
I can use for, if, while for this calendar.
Here is my code so far:
public static void drawMonth(int month){
// call the row 5 times for (int i = 1; i
//the bottom OUTER LINE looks like "==" String word = ""; for (int i = 0; i
}
//this method would be called 5 times by drawmonth() public static void drawRow(int row){
//the top OUTER LINE looks like "==" String word = ""; for (int i = 1; i
//defining day in the calendar int day = (row -1)*7; System.out.print("|");
//pattern for each box for (int j = 1; j
//vertical space for each box for (int v = 2; v
SUN MON TUE WED THU FRI SAT | 1 15 | 6 | 7 | 2 1 | 3 1 1 | 4 | . . | 19 | 8 | | 14 | 10 1 | 11 | | 12 * | 13 | 19 | 20 | 21 | 15 | | 16 | | 17 | | 18 | | 26 | 27 | 28 | 22 | | | 23 | | 24 | 1 | 25 | . | 29 | 30 | | 31 |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