Name: ____________________________________________________ Alpha: _____________ Section: ________

Describe help received: _________________________________________________________________

See the bottom for how to submit your work.

Due: Before 0800 on next class day

  1. (10 pts) Read today's lecture notes. Honestly declare how you read the notes.
    1. (10 pts) I read the notes carefully. I have a good understanding of the topics therein.
    2. (10 pts) I read the notes carefully, but I don't really understand the following points well:
      
      
      
    3. (0 pts) I didn't read the notes carefully.
  2. [10 pts] Carefully read the project 3 description and requirements. Honestly declare how you read the project.
    1. (10 pts) I read the project carefully. I have a good understanding of the topics therein.
    2. (10 pts) I read the project carefully, but I don't really understand the following points well:
      
      
      
      
    3. (0 pts) I didn't read the project carefully.
  3. [80pts] Write a program hw.cpp that works as follows.
    It reads in ints from the user until a negative number is entered, storing them into a linked list. Then allow the user to insert numbers anywhere in the list they want. Enter a loop that ends on "quit" but takes a couple commands:
    • "enter 7 after 9": You should insert the number (7) after the first occurrence of their target number (9).
    • "front 12": You should add the number (12) to the front of the list.
    The program should print the current list from the front to the back, every time after executing a command.

    Example runs:

    ~/$ ./hw
    71 22 84 12 95 10 12 8 54 -1
    71 22 84 12 95 10 12 8 54
    > enter 23 after 12
    71 22 84 12 23 95 10 12 8 54
    > front 6
    6 71 22 84 12 23 95 10 12 8 54
    > enter 40 after 54
    6 71 22 84 12 23 95 10 12 8 54 40
    > quit
    
  4. Project 3 is now starting. Please write by hand the honor pledge below and then sign your name. Turn this in with your homework, on a separate sheet of paper:
    The Military Service I am a part of is bound by honor and integrity. I will not compromise our values by giving or receiving unauthorized help on project 3.
    
    
    
    
      
    Name: _____________________________

    Signature: _________________________

Submit to the submission server (due: 0800 on the next class day)

~/bin/submit -c=IC210 -p=hw33 hw.cpp 
Bring to class