CSC 157 Assignments

Curricula
syllabus |
announcements |
assignments | answers to questions

Archives
student work |
review notes

Resources
research materials |
tutorials | web courses |

Contacts
home to: course | instructor |
department | La Salle home

E-Mail: redmond@lasalle.edu  


Spring 2003

Assignment 1 - Getting Started - setting up in Forte, type, compile, run. Turn in.
Here is the Keyboard class code to use: Keyboard
The safest way to get this is with Internet Explorer - right click on the link and choose Save Target As.

Assignment 2 - Getting Started - writing a very basic java program. You will need the Keyboard class above again.

Assignment 3 - Some Calculations. You will need the Keyboard class above again.

Assignment 4 - Using a Class. You will need the Keyboard class above again. Here is the ChessPiece class code to use: ChessPiece
The safest way to get this is with Internet Explorer - right click on the link and choose Save Target As. Here is a .txt version which is available for viewing in the Browser (the java version will only download). Documentation of the ChessPiece class is available here.

Assignment 5 - Branching - with using a class also. Here is the Die class code to use: Die
The safest way to get this is with Internet Explorer - right click on the link and choose Save Target As. Here is a .txt version which is available for viewing in the Browser (the java version will only download). Documentation of the Die class is available here.

Assignment 6 - If's including nested. You will need the Keyboard class above again.

Assignment 7 - While loops. You will need the Keyboard and ChessPiece classes above again.

Assignment 8 - nested loops, validation. You will need the Keyboard class above again, plus the Skater class.
Here is the Skater class code to use: Skater
The safest way to get this is with Internet Explorer - right click on the link and choose Save Target As. Here is a .txt version which is available for viewing in the Browser (the java version will only download). Documentation of the Skater class is available here.

Assignment 9 - for loops and arrays. You will need the Keyboard class above again.

Assignment 10 - debugger. You will need to download
forDebugAssign.zip and unzip it (double click on the file you downloaded)

Assignment 11 - writing simple methods, a little exposure to GUI, plus earlier topics. You will need the RedmondMsgIn157, RedmondMsgOut, and PretzelStore classes.
Here is the PretzelStore class code to use: PretzelStore
The safest way to get this is with Internet Explorer - right click on the link and choose Save Target As. Here is a .txt version which is available for viewing in the Browser (the java version will only download). Documentation of the PretzelStore class is available here.

Here is the RedmondMsgIn157 class code to use: RedmondMsgIn157
The safest way to get this is with Internet Explorer - right click on the link and choose Save Target As. Here is a .txt version which is available for viewing in the Browser (the java version will only download). Documentation of the RedmondMsgIn157 class is available here.

Here is the RedmondMsgOut class code to use: RedmondMsgOut
The safest way to get this is with Internet Explorer - right click on the link and choose Save Target As. Here is a .txt version which is available for viewing in the Browser (the java version will only download). Documentation is not available - use RedmondMsgOut.display(string to be displayed just as in println)

Here is a demo file that illustrates use of all RedmondMsgIn157 and RedmondMsgOut methods: DemoIOClasses
The safest way to get this is with Internet Explorer - right click on the link and choose Save Target As. Here is a .txt version which is available for viewing in the Browser (the java version will only download). Documentation is not available.

Assignment 12 - writing simple class, and using it. You will need the RedmondMsgIn157, and RedmondMsgOut classes.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. Spring 2002

Assignment 2 - Some simple variables and simple input / output using the text book class.

Assignment 3 - Calculations.

Assignment 4 - Ifs.

Assignment 5 - While loops.

Assignment 6 - Validation and Nested While loops.

Assignment 7 - Testing Programs
Here is code to use during introduction during lab.
And Here is the code to use for the assignment.
The safest way to get these is with Internet Explorer - right click on the link and choose Save Target As.

Assignment 8 - Using Classes
Here is the class code to use: Revised Account Class
The safest way to get this is with Internet Explorer - right click on the link and choose Save Target As.

Assignment 9 - Writing and Using Classes

Assignment 10 - Using the debugger
Here is the class code to use: Revised Buggy ScoreBoard Class
Here is the client (main) code to use: main that uses scoreboard class to run a game - but which has bugs!
The safest way to get this is with Internet Explorer - right click on the link and choose Save Target As.

Assignment 11 - Static Methods, Constructors, Overloading
Here is the class code to use: Cookie Store Class
mostly provided.
The safest way to get this is with Internet Explorer - right click on the link and choose Save Target As.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. . Spring 2001

Assignment 1 - Getting Started - create project, compile, run. E-mail attachment.

Code to use for Assignment 1.
(code for practice use in lab)

Look under Resources for document on using Microsoft Visual Studio environment.

Assignment 2 - A Simple Program with Input, Output, Calculations.

Assignment 3 - A Program using IFs + with Input, Output, Calculations.

Assignment 4 - A Program using loops + with Input, Output, Calculations and IFs.

Assignment 5 - Testing - creating test cases.

Code to use for Assignment 5.

Assignment 6 - A Program using switch, and for, with continuing appearences of Input, Output, Calculations and IFs - make sure you validate inputs.

Assignment 7 - A Program using a pre-written (non-system) function.

Header file to include for Assignment 7.
Code to use for Assignment 7. Don't #include - but "add to project"

Assignment 8 - Writing and using function(s).

Assignment 9 - Using Microsoft Visual Studio's Debugger.
Code for in lab exercise.
You need divides.h and divides.c too. There is also code that you need for the assignment.
As promised, here is my Assignment 9 Answers.
original unbuggy code.

Assignment 10 - Arrays and Passing Arrays to Functions.

Assignment 11 - Arrays and Searching and Sorting and Efficiency.

Header file to include for Assignment 11.
Code to use for Assignment 11. Don't #include - but "add to project"

Assignment 12 - Parallel Arrays .