CS100J Exercises
Assignments
Quizzes
Grading
Style and Commentary
Submission Rules
Retrieving Graded Projects
Partners
Academic Integrity
Home
Announcements
Staff&Help
Material
Exercises
Exams
Information
Syllabus
Times&Places
Examples
Projects
Grading
 
Assignments
Programming exercises will consist of smaller problems that help you build your problem solving skills towards solving larger problems. We expect exercises to acquaint you with skills needed for projects and exams. To reduce stress, these smaller exercises are worth a relatively "small" percentage of the course score. We grade exercises based on your success in completing the assigned task. Plus, we will not require you to do all the exercises perfectly to get a perfect exercise score (see Grading).  Thus, as long as you make a sincere effort on most of the exercises, you should get a good exercise score.

For written problems, you can download the assignments, provided below. We may also post problems during lecture, section, and on the website:
#
Assigned
Due
Assignment
Solution
More Viewable
1
 Mon 1/29
Thu 2/1 
Write a program called e1sp01sol.java that finds the minimum of two values. Assume that the two values are stored in variables var1 an var2, respectively. Test your program with values 1 and -1.  e1sp01sol.java e1sp01sol.txt
2 Wed 1/31 Tue 2/6 Do Sections 6.2-6.3 of Project 2. Run p2NumberGuess.class and print out 1 sample session. See Projects for solutions.
For running a class file, see FAQ -> How.
FAQ -> How
3 Mon 2/12 Thurs 2/15 Rewrite DIS's p2NumberGuess.java  using methods for picking the random number and checking the user's guess (reporting whether it's too high or low). e3sol.java e3sol.txt
4 Tues 2/20 Thurs 2/22 Here we go again! Go to the Projects page. Run p3sp01.class. Print and submit the output.  See Projects for solutions.
For running a class file, see FAQ -> How.
FAQ -> How
5 Weds 2/28 Tues 3/6 See the exercise 5 file. Basically, I "borrowed" some of Project 4 from Spring 2000 CS100A. I suggest attempting the problem without checking the solution for practice. Note that E5 has more requirements (mostly encapsulation) than the original version. e5sp01sol.java
(includes output)
e5sp01sol.txt
6
-
optional -- see 3/6 Announcements e6sp01sol.jpg e6sp01sol.jpg
7 Thurs 3/15 Tues 3/27 Complete lecture examples from 3/15 solutions will be posted in the Examples 3/15 spot solutions will be posted in the Examples 3/15 spot
8 Tues 3/27 Thurs 3/29 Complete example aoa0_blanks.java (3/27 Examples) solutions will be posted  in Examples 3/27 spot solutions will be posted  in Examples 3/27 spot
9 Thurs 3/29 Tues 4/3 see e9sp01.pdf. You will need some help with Strings, which you'll find in the 3/29 notes and Savitch 2.2. e9sp01sol.java e9sp01sol.txt
10 Thurs 4/5 Thurs 4/12 See inherit3 in 4/5 examples. You need to complete the tracing table at the bottom. Type your results. Hint: See the lecture notes. inherit3.java inherit3.txt
11 Thurs 4/12 Thurs
 4/19
Problem 1, pg 507 Savitch; be sure to use encapsulation; include sample output Employee.java
EmployeeTest.java
Employee.txt
EmployeeTest.txt
12 Tues 4/24 Thurs 4/26 Do Problems 2 and 3 from Prelim 1 of CS100*J* this semester in MATLAB. e12sp01sol1.m
e12sp01sol2.m
e12sp01sol1.txt
e12sp01sol2.txt

Back to Top


Quizzes
Sometimes these exercises will consist of in-class pop quizzes, so we encourage you to attend lecture.

Back to Top


Grading
Grading is different than project assignments: Back to Top

Submission Rules
You must submit exercises in lecture on the due date. Do not submit exercises to Carpenter Lab.
For each exercise, you must do the following:
  • Staple or bind all sheets of paper. "Bind" means ring or folder, not twist-ties, string, or such nuisances.
  • Submit entire code unless directed otherwise.
  • Type all work and responses to discussion questions.
  • Include a comment block that includes your name, ID, section, section instructor, exercise number, and date as the first lines of each program you submit.
  • Ensure correct alignment of tab stops in programs with no "chopped"  line of code.
  • Note: Unless specified otherwise, submit work as hardcopy, not as e-mail or on disk!

    Back to Top


    Style and Commentary
    Your comments and overall style will greatly affect your score on all work: Back to Top
    Retrieving Graded Exercises
    Where's your work?
  • Programs are usually graded in about 1 week.
  • Due to lack of resources, we might need to restrict returning exercises in Carpenter.
  • Look here if you wish to submit a regrade.

    Back to Top


    Partners
    We do not allow partners for programming exercises.

    Back to Top


    Academic Integrity
    Respect academic integrity! Please review the Code and notes for CS100 here.

    Back to Top


    Back to CS100J Home