Course Schedule (including syllabus)
Program 6 is due Monday, May 3. Here are instructions.
Sample questions from Chapters 12 and 13. For previous material, you should look to old tests, sample tests, quizzes, programs, notes and the book.
Test 1: Sample, MW version with answers, WF version with answers.
Test 2: Sample, MW version with answers, WF version with answers.
Test 3: Sample, MW version with answers, WF version with answers.
Schedule for the rest of the semester:
Getting started, A sample program, Sample Quiz 1, Quiz 1 with answers, Sample Quiz 2, Sample Test 1, Quiz 2 with answers, Sample Quiz 3, Quiz 3 with answers, Sample Quiz 4, Quiz 4 with Answers, Sample Quiz 5, Quiz5 with Answers, Sample Quiz 6, Quiz 6 with Answers.
To read some of the above files, you may need to install the free program Adobe Acrobat Reader.
Notes on Recursive Function Calls
Sample programs from class: hello.cpp, comment.cpp, addint.cpp, arithmetic.cpp, manip.cpp, runtime.cpp, chartype.cpp, triangle.cpp, out_to_file.cpp, float_input.cpp (runs with the data files goodsrc.dat and badsrc.dat as input), enterchar.cpp, iferror.cpp, ifelseerror.cpp (the modification of iferror.cpp to incorporate else statements), and.cpp, lettergrade1.cpp, lettergrade2.cpp, switch.cpp, ifelse.cpp, quadratic.cpp, countdown.cpp, countdownbug.cpp, loopruntime.cpp, counterbreak.cpp, sumofsquares.cpp, factorial.cpp, sum.cpp, tri_star.cpp, tri_star_func.cpp, boxfunc.cpp, my_toupper.cpp, sums.cpp, calc_e.cpp, boxfuncglobal.cpp, area_vol.cpp, fact_recur.cpp, print_base.cpp, static_var.cpp, cubicroot.cpp, complex.cpp, intersect.cpp, file_to_array.cpp (uses the data file nums.dat), init_array.cpp, array_path.cpp (uses the data file points.dat), exchange.cpp, bubble.cpp, count_dig.cpp (uses the data file digits.dat), arraypathstruct.cpp (uses the data file points.dat), profits.cpp (uses the data file profits.dat), bigint.cpp (uses the data file bignums.dat), readints.cpp (uses the data file bignums.dat and the header file bigint.h), pointers.cpp, moreptr.cpp, ptr_array.cpp, ptr_obj.cpp, string.cpp, words.cpp (to be used with the data file words.dat), input_c_string.cpp (to be used with the data file inp_string.dat), sort_count.cpp, declare_c_string.cpp, cipher_cl.cpp, str_funcs.cpp.
| Instructor | Prof. John Loftin, 323 Smith Hall, Phone: (973)353-5156, ext. 23. |
| loftin@andromeda.rutgers.edu | |
| Website | http://www.andromeda.rutgers.edu/~loftin (this syllabus is attached to the website) |
| Prerequisites | Math proficiency |
| Course Material
(more details are on the Course Schedule) |
|
| Text | Timothy B. D'Orazio, Programming in C++: Lessons and Applications, McGraw-Hill. |
| Programming Assignments | There will be six programming assignments throughout the term. (See the Course Schedule.) |
| Quizzes | There will be six in-class quizzes. Typically, there will be a quiz on weeks when there is not a programming assignment due. (See the Course Schedule.) |
| Tests and Final Exam | There will be three tests during the term and a final exam. These tests will be held in class, and will test your knowledge of the material covered in the past few weeks' classes. The final exam will be comprehensive. (See the Course Schedule.) |
| Grades | Your grade will be determined by your programming assignments (20%), quizzes (20%), the three tests (30%), and the final exam (30%). |
| Office Hours | Mondays and Wednesdays, 2-3pm, and by appointment. In 323 Smith Hall. |
PROGRAM 1 IS DUE WEDNESDAY, FEB 4. If you haven't received email from me with instructions for this assignment, please let me know (loftin@andromeda.rutgers.edu). To turn in the assignment, email a copy to me at my pegasus account loftin@pegasus.rutgers.edu. Attach the source code (the .cpp file) as an attachment (I don't want the a.out file). On the subject line, put your name and section number, e.g. Joe Student, Section 3.
Program 2 is due Monday, February 23, for both sections. Instructions: pdf version, html version.
Answers to the first test: Friday version, Monday version.
Program 3 is due Tuesday, March 9, 12 noon, for both sections. Instructions.
Test 2 is on Monday, March 22, for Section 2 (MW class), and on Wednesday, March 24, for Section 3 (WF class). Here is a sample test with answers. Also of course study your notes, quizzes, programs, etc. The material for the test is from Chapters 5-7 in the book, as well as supplementary notes on recursive function calls.
Answers for Test 2: Monday version, Wednesday version.
Program 4 is due Wednesday, March 31. Instructions.
Test 3 is on Friday, April 16, for WF section, and Monday, April 19, for the MW section. Here is a sample test.
Program 5 is due Wednesday, April 14. Instructions. A copy of the file you should modify is here.
Answers to Test 3: Friday version, Monday version.