You are on page 1of 2

Assignment 1 Winter 2013

Beginning Programming Exercise


Due Date: Date: Type: Weight: (See Slate\ Assignments) January 10, 2012 Individual Assignment 1%

Summary Complete the in-class exercises and practice programming principles using Dr. Java. Submission checklist a. A Word Document that has i. A title page with your name, date and assignment title and is structured clearly to identify the answer of each of the assignment parts. ii. A section for Part I which identifies the folder and files for the four Hello World programs. iii. A section for Part II which identifies the information required or points to the files if you have decided to use mind maps. iv. A section for Part III which identifies the changes and the compilation errors that they produced. The four program folders for the four versions of Hello World defined in the Programming Languages slides If you have used xMind to complete the mind maps provided you will need to submit them.

b. c.

IMPORTANT NOTE: Submission is done in electronic format using your shared folder in DropBox.com. You will also have to mark your submission as completed in SLATE 2 in order to receive your grades. Please read the Dropbox Submission Guidelines in SLATE. DO NOT email your submission. Details Part I. (60%) Complete all 4 versions of Hello World programs and their breakdown into statements, blocks and declarations as requested in the slides. You can use xMind to complete the mind-maps for versions 2 to 4 or you can simply write the answer in the Word document. For each version of Hello World: 1. (30%) Type the source code, save, compile and run the program in Dr. Java 2. (30%) Create a breakdown of the program into statements, blocks and declarations. For each version identify: a. Number of statements and actual statement code 1 PROG 10082 Object-Oriented Programming 1

Assignment 1 Winter 2013


b. Number of blocks and actual block code c. Number of declarations and actual declaration code Part II (40%) Using the first version of Hello World, change something in every line of code, one change at a time, and note any compilation errors showing in Dr. Javas Compiler Output Window. 1. Change every line of code in the source file (there are 8 lines) with the intent of causing syntax errors. Explain / show what you have changed. 2. Compile the source file after making the change (one at a time) 3. Each time, record / show the compilation error (syntax error) displayed in the Compiler Output Window such that it is clear what change caused what error. 4. Attempt as many different errors as possible in addition to the 8 required. Lets see who discovers the maximum number of errors that can be made in Hello World with 8 lines of code You are free to document the changes and the errors they produced using screenshots as long as the screenshots are inserted in the Word document. Notes: 2. All assignment shall be submitted by the deadline. Late submissions will be penalized with 10% per day for up to 3 calendar days after which the assignment cannot be submitted anymore. An email must be sent should you choose to submit a late assignment. If no such emails are received the solution will be posted. Assignments are not accepted after the solutions have been posted.

3. This assignment shall be completed individually. Remember that completing the assignment by yourself will ensure your success on the midterm and final exam. See the Academic Honesty at Sheridan. 4. Submission is done in electronic format using your shared folder in DropBox.com and mark your submission as completed in SLATE 2. You will have to have accepted a DropBox share request to create a virtual drop-box folder for your assignment submissions. DO NOT email your submission. Please read the Dropbox Submission Guidelines in SLATE.

PROG 10082 Object-Oriented Programming 1

You might also like