DId you Consider this: The first day of Sunday means 0 leading spaces
--- Update ---
Also posted at Calendar Assignment - Dev Shed
Type: Posts; User: Norm
DId you Consider this: The first day of Sunday means 0 leading spaces
--- Update ---
Also posted at Calendar Assignment - Dev Shed
Look at what value is put in the startday variable and how it is computed, how the loop control variable starts at 1 vs 0 and the loop terminating test uses <= vs <
Consider this: Sunday means 0...
Did you play computer with the code to see what it is doing? You know that it prints extra spaces to push the first 1 to the right 1 day. Look at the code to see why.
How does the program decide what day January 1 is on and use that to do the spacing to put the 1 in the right spot?
What is the problem?
Use code tags around the program's output to preserve its formatting.
Add some comments saying what is wrong with the output.
What happened to the formatting of the code? All the statements...
Can you post the contents of the console window from when you execute the program? Add some comments saying what is wrong with the output and show what it should be.
What happened to the...
Please explain. Show what the program currently does and add some comments saying what the output should be.
Please edit your post and wrap your code with code tags:
<YOUR CODE HERE>
to...