Computers and Programming I, Section 03

The final exams are graded and your course grades are online. Here are solutions to the final. Have a great summer!

Here are some sample questions for the material on Test 1, with solutions.

Here are some sample problems for the material on Test 2, with solutions.

Here are sample problems for the material in Chapter 6 and 7, with solutions.

Here are solutions to test 1.

Solutions to Test 2.

Here are my solutions to Program 1, Program 2, Program 3, Program 4, extra credit for Program 4, Program 5 (including extra credit), Program 6, Program 7, Program 8, Program 9, Program 10 (AC.java, ACS.java).

Instructions for Program 10 (with a sample program), Program 9, Program 8, Program 7, Program 6, Program 5 (and a similar sample program is given here) Program 4, Program 3, Program 2, Program 1.

WARNING: SOME OF THE PROGRAMS IN THE BOOK ARE WRONG (LISTING 2.5, IN PARTICULAR). INSTEAD USE THE PROGRAMS WE DISCUSSED IN CLASS AS MODELS FOR YOUR PROGRAM, OR REFER TO THE FIRST PRINTING UPDATE INSERT IN YOUR BOOK. Programs that do not compile on pegasus will not be graded.

MW 10:00-11:20, Conklin 348

Course Schedule (including syllabus)

Getting started. Writing and running java programs on pegasus.

Programs discussed in class

Solution to Quiz 1, Solution to Quiz 2, Solution to Quiz 3, Solution to Quiz 4, Solution to Quiz 5, Solution to Quiz 6, Solution to Quiz 7, Solution to Quiz 8, Solution to Quiz 9, Solution to Quiz 10, Solution to Quiz 11.
Instructor Prof. John Loftin, 309 Smith Hall, Phone: (973)353-5156, ext. 3910.
Email loftin AT rutgers DOT edu
Email is the best way to get in touch with me.
Website http://www.andromeda.rutgers.edu/~loftin (this syllabus is attached to the website)
Department Website http://math.newark.rutgers.edu/
Prerequisites Fulfillment of the mathematics proficiency requirement (Math 112 or 113, or a higher-level math course, or the placement exam)
Who Should Take This Course This course is required for the Computer Science, Information Systems, Mathematics, and Applied Mathematics majors, for the Computer Science minor, and for the Rutgers Newark 2+2 Engineering Program. This course also fulfills the technology course requirement in the teacher certification program.
Course Material
(more details
are on the 
Course Schedule)
  • Introduction to Computers and Java
  • Data and Expressions
  • Using Classes and Objects
  • Writing Classes
  • Conditionals and Loops
  • Object-Oriented Design
  • Arrays
Text Lewis and Loftus, Java Software Solutions, 6th ed., Addison-Wesley
Homework The homework will be assigned but not collected or graded. However, the quizzes will be strongly based on the homework problems (and will typically include some homework problems verbatim). Homework will be assigned a week or so ahead of time: See the Course Schedule. Students are encouraged to work together on the homework.
Programming Assignments There will be several programming assignments during the course of the semester. All your programs should run on the pegasus server, and will be turned in using Blackboard. You must be officially enrolled in the course in order to access Blackboard. Your programs will make up 20% of your grade. Programs which do not compile on pegasus will receive no credit. Students are encouraged to work together on the programs, but YOU MAY NOT COPY ANYONE ELSE'S CODE.
Quizzes There will also be several in-class 15-minute quizzes based on the homework. These quizzes will make up 10% of your grade. (See the Course Schedule.)
Exams There will be two exams during the term and a final exam. The first two exams will be held in class, on Monday, March 2, and Monday, April 6, and will test your knowledge of the material covered in the past few weeks' classes. The final exam will be comprehensive. The final exam will take place according to the registrar's schedule, 8:30-11:30am, Monday, May 11, room TBA. YOU MAY NOT TAKE THE FINAL EARLY. (See the Course Schedule.)
Grades Your grade will be determined by your programs (20%), quizzes (10%), Exam 1 (17.5%), Exam 2 (17.5%), and the Final Exam (35%).
Office Hours M 1:00-2:00, W 11:30-12:30, in 309 Smith Hall. You may see me any time during office hours without an appointment. You may also make an appointment to see me other times.
Course Schedule


John Loftin
2009-01-19

Test 1 will be held in class Monday, March 2. Here are some sample questions, with solutions.

Test 1 is graded: out of 81 points, average 64, median 66.

Grade range--Number of students

73 - 81 ------------ 3

65 - 72 ------------ 9

57 - 64 ------------ 9

49 - 56 ------------ 0

41 - 48 ------------ 0

33 - 40 ------------ 2

Here are solutions to test 1.

Test 2 is graded: Out of 69 points, average 41, median 43
Grade range - number of students
63-69 --------------- 1
56-62 --------------- 1
49-55 --------------- 3
42-48 --------------- 6
35-41 --------------- 4
28-34 --------------- 1
21-27 --------------- 3

Solutions to Test 2.

Test 2 is on Monday, April 6, in class. Here are some sample problems, with solutions.