CS120
Assignment #3

Due at midnight on Monday Sept. 22th

Beginning with the NIM program make the following modifications (these are exercises 1-5 from the printed text):

  • Change the program so that the player can specify the intial number of objects. The program should check that the number of objects is valid, that is that it is larger than 0.

    If you can't get all of the modifications done (and for some of the assignments you probably won't) be sure to list which ones you've completed in the comments at the beginning of the program. On the other hand if you did extra work on a lab or assignment (and sometime you will want to) also describe the extra work in the comment at the beginning of the program.

    Include a block of comments at the beginning of the program (or add to the existing block) that lists your name, section number, date, and the assignment number. Also include comments on any parts of the assignment you didn't finish or on any extra work you did. Include this comment block at the beginning of every assignment and lab.

    Turn in: Turn in the code for your program (the .cpp file, not a.out) using the cscheckin command.