Can someone supply me with the proper code for the first project? I just can't get the syntax right, and have only limited time to work on this. I'm hoping that this will get me jumpstarted as I usually learn pretty good from examples.
I am sorry, but as the teacher said, you must do it by yourself. I have pulled out a lot of hair before doing 90% of the work for the first project. But I have the confidence it will be worth it at the end.
The mistake of many books is that they are providing the full code, not allowing the student to evolve by itself.
As for your problem, think simple... You already have an Nand gate. Nand means "NOT And". So, think logically. How do you get AND from NOT AND? DO that. After that, do Not, Or, Xor and from there you will make all of them. It's magic. 1 and 0 have unlimited powers.
I agree, mostly, that the student needs to work through the exercises to grow and understand. However, there are some gotchas in HDL that can be very easy to miss or not understand after reading the appendix once, or twice, or thrice. I wish there were one or two annotated examples that don't solve any of the design problems in the projects but that do include examples of the tricky bits of HDL.
Even something silly like the following could go a long way in getting people over the hump with their first HDL specification.