CSE10: Introduction to Computing
Assignment #4 (The Universal Computer, chapter 3 and Objects First with Java, chapter 2)

To get started, go to cimel.cse.lehigh.edu/ucsetup.exe in Microsoft Internet Explorer, then select Open to run it; it will install all the Java files for including all the files for Objects First With Java (which you’ll work with for this assignment) and The Universal Computer (which you’ll work on for future assignments).  It will ask if you want to over-write files in H:\ucomp: press yes!

Homework exercises (due Sunday, 9/29, anytime before midnight):
CSc13: The Universal Computer, Programming Languages and Their Translators: 3.1, 3.4, 3.5, 3.6, 3.11 and 3.14.  Objects First With Java, Understanding Class Definitions: 2.1 (nothing to hand in), 2.2, 2.9, 2.12, 2.15, 2.19, 2.20, 2.22.
For exercises 2.12, 2.19 and 2.20, modify H:\ucomp\chapter02\naive-ticket-machine\TicketMachine.java, compile it, and test your results, making sure your modifications work as you would predict. 
Hand in TicketMachine.java with comments explaining your modifications and how you tested them.  For the other exercises, hand in answers to the questions.
CSc14: The Universal Computer, Programming Languages and Their Translators: 3.1, 3.2, 3.4, 3.5, 3.6, 3.11, 3.14 and 3.26. Objects First With Java, Understanding Class Definitions: 2.1 (nothing to hand in), 2.2, 2.9, 2.12, 2.15, 2.19, 2.20, 2.22, 2.28, 2.34 and 2.35. 
For exercises 2.12, 2.19, 2.20 and 2.28, H:\ucomp\chapter02\naive-ticket-machine\TicketMachine.java, compile it, and test your results, making sure your modifications work as you would predict. 
Hand in TicketMachine.java with comments explaining your modifications and how you tested them.  For the other exercises, hand in answers to the questions.

Extra credit: The Universal Computer exercise 3.20 and/or Objects First With Java 2.36 (hand in a revised version of H:\ucomp\chapter02\better-ticket-machine\TicketMachine.java, with comments explaining your work and how you tested it). 

Due: Sunday, 9/29, anytime before midnight.

Hand in: Hand in your programs and answers in one file, using Blackboard.  If you feel it is necessary to hand in more than one file for the assignment, 
zip them all together into a single file.  Files uploaded to the digital drop box should be in the following format:
        LastName_userid_ LabCourseNumber_aAssignmentNumber_.xxx
where xxx is zip, txt, or doc depending on what type of file you submit;  LabCourseNumber refers to CSE13 or CSE14 depending on which lab you are taking; and AassignmentNumber is “a” followed by the assignment number, in this case, 4. Here’s an example:
        Khan_fmk2_14_a4.doc.
This file name convention will make it much easier for the TAs to keep track of your work (and help him to get your work back to you sooner!).
When you're ready to submit your assignment, using a web browser, go to the Drop Box (it's under the Tools button.)
Click on the Browse button, then find your file in their folder (if you put it on a floppy disk, it's in A:).  When you've selected your file (put all your work in one file), you should see a directory path to this file next to the Browse button. If it looks right to you, click on the Send File button (the Add button doesn’t send the file!). The Teaching Assistant, Faisal Khan, will get this file and grade it.

Prof. Blank