[nfbcs] C++ Assignment Help

Lanie Molinar laniemolinar91 at gmail.com
Fri Oct 27 07:45:36 UTC 2017


Wow, thanks! That fixed it! I understand if it's too hard to explain, 
but why did that change anything? I want to understand so maybe I can 
avoid this problem in the future.


On 10/27/2017 2:36 AM, Jim Barbour wrote:
> Leave the count at 0, and add these two lines right after the open
> brace of the displayTable function..
>
> Basically, you need to increment the offset by 1 and set it back to 0
> if the offset is 7.  This makes the calendar start on Monday.
>
>     offset++;
>     offset%=7;
>
> Jim
>
> On Fri, Oct 27, 2017 at 02:12:29AM -0500, Lanie Molinar via nfbcs wrote:
>> I think that just made things worse. Take a look at the attached log now.
>>
>>
>> On 10/27/2017 2:06 AM, Jim Barbour wrote:
>>> So, one thing you should do is start with
>>>
>>> int count = 0;
>>>
>>> instead of
>>>
>>> int count = 1;
>>>
>>> I think that will fix you up.
>>>
>>> Jim
>>>
>>> On Fri, Oct 27, 2017 at 01:34:01AM -0500, Lanie Molinar via nfbcs wrote:
>>>> Hi, everyone. Thanks for trying to help me a couple days ago. I still didn't
>>>> understand what I needed to do after you tried to help, but not long after
>>>> that, I was able to find a tutor, and she helped me a lot. Now, I have a
>>>> question about another assignment, and I think this one even has my tutor
>>>> stuck. I'm working on a program that prompts a user for the number of days
>>>> in the month and the offset from Monday for that month, and then displays a
>>>> calendar table. It's a lot like the calendar I wrote the pseudocode for in
>>>> the assignment before this. It's almost complete, but the spacing of the
>>>> numbers in the first row is off by 4, and I don't know how to fix it. I've
>>>> tried several things, and my tutor has suggested some things, too, but
>>>> nothing fixes it. My professor says this is probably the hardest assignment
>>>> of the semester, and I can definitely see why. Can you please take a look at
>>>> my work and let me know if you have any suggestions? I'm attaching my work,
>>>> my log from PuTTY that shows the expected output, and the assignment
>>>> instructions. Thanks.





More information about the NFBCS mailing list