MCS2514: Computer Science 2
Homework Assignments
Homework #1 (9 points)
- Due: Mon. 9-25-00, 12:30pm
- Combine Ex. 11, 12, and 13 on page 89 into a program file, HW1.cpp
- A sample output of your program is described in Ex 13.
- Submit a diskette with HW1.cpp, HW1.exe, and hardcopy of your program in a
big (manila) envelope.
- Please write down you name and the file name, HW1.cpp, on the diskette.
- Must satisfy class programming standards such as comments and
indentation.
- DO NOT COPY THE WORK OF OTHERS.
- hw1ans.cpp
Homework #2 (3 points)
- Due: Monday 10-2-00, 12:30pm
- Page 90, Ex14
- Also visualize the Gaussian distribution graph using just characters
on the console window.
- Submit a diskette with HW2.cpp, HW2.exe, and hardcopy of your program in a
big (manila) envelope. Also hardcopy of your output.
- Please write down you name and the file name, HW2.cpp, on the diskette.
- Must satisfy class programming standards such as comments and
indentation.
- DO NOT COPY THE WORK OF OTHERS.
Homework #3 (15 points) - MS Word
Homework #4 (3 points) - so far 30 out of 50
- Due Monday Nov. 13.
- Complete "doublelink.cpp" in the Chap. 5 handout
- Use the standard homework submission rules. Also include a hardcopy of
your output.
- Do not forget to include doublelink.exe file on the floppy disk.
Extra Homework
- If your current total is greater than 80, +2 points;
else If greater than 70, +3 points;
Otherwise, +5 points
- Due Monday Nov. 13. Late submission will not be accepted.
- Programming Project: The String ADT, Page 183 - 197
- Complete
mystring.h by implementing member functions as well as non-member
functions.
- Test str_demo1.cpp by including the
above mystring.h
- The output should be similar to extraOut.txt
- Use the standard homework submission rules. Also include a hardcopy of
your output.
Homework #5 (10 points)
Find all the Permutations in a set.
Homework #6 (5 points)
- Recursive Version of HW#5
- Due Dec. 11
Homework #7 (5 points)
- Complete three functions in bst.cpp
- Assume repetitions are not allowed in the BST.
- A sample output
- Due Wed. Dec. 20
Copyright (C) 2000- by Chung