|
|||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
For written problems, you can download the assignments, provided below. We may also post problems during lecture, section, and on the website:
|
|
|
|
|
More Viewable |
|
|
|
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:
Note: Unless specified otherwise, submit work as hardcopy, not as e-mail or on disk!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.
Back to Top
Style
and Commentary
Your comments and overall style will greatly affect
your score on all work:
Look here if you wish to submit a regrade.Programs are usually graded in about 1 week. Due to lack of resources, we might need to restrict returning exercises in Carpenter.
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