Question: Hello. Attached is a portion of my program for the first line of my calendar. Everything else looks perfect besides the alighment. Can you help

Hello. Attached is a portion of my program for the first line of my calendar. Everything else looks perfect besides the alighment. Can you help me figure out how to adjust the amount of spaces present before the startDay?

I am currently having to go in and adjust the number of spaces manually, and that is not practical, when it is supposed to automatically input correctly for the user. For example:

January goes all of the way across and uses all 7 places, so no spaces are needed.

March uses 4 numbers, and so 5 spaces are needed for correct alignment.

Please help :) Hello. Attached is a portion of my program for the firstline of my calendar. Everything else looks perfect besides the alighment. Can

164 165 166 167 168 169 170 int startDay-getStartDay(y, m); int number0fDaysInMonth = getNumberOfDays1nMonth(y ,m); int i; for (i 0; i EndCalendar [Java Application] /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Conter Input the Year CEx: 2017): Declaration Console X 2017 Input the Month (1-12): January 2017 Sun Mon Tue Wed Thu Fri Sat 1 2 34 5 6 7 8910 11 12 13 14 15 16 17 18 19 20 21 22 2324 25 26 27 28 29 30 31

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!