COMP 139 - Lab Y - Example Lab

Learning Outcomes and Introduction

In this lab assignment you will learn about:

Task 1: Example Task

example header graphic
  1. Write an example task step. Always wrap text in <p> if there are other elements nearby.

    Other special markup
    an example figure
    figures in a details will be full width
    • abbr titles will be automatically exapnded, eg. HTML.

      an example figure
      figures with class "right" will float right. the class "pull-up" vertically aligns them with their container if they're floated.
    • Use samp when mentioning items on screen (eg. the File menu) and filenames (eg. example.txt).
    • Use code to markup example computer code or variables mentioned within running prose, eg. the word "code" at the beginning of this point.
    • Add a language class to code elements to enable syntax highlighting, eg. language-markup or language-javascript.
    • Use code wrapped in pre to markup code blocks, eg.

      
      								<pre><code class="language-java">int example = 1;</code></pre>
      							
    • Alternately, load a code sample into the page from an external file (and provide a download link) like this:

      Download sample code

      Very handy for HTML samples, so you don't have to manually escape them!

    • Use dl with class inline to create definition lists with terms and definitions on the same line, eg.
      Term
      Definition.

Submission

Completing all tasks in this lab should result X separate Java files within a single package. Compress the package directory into a ZIP archive and upload it to the D2L Dropbox. Make sure the filename includes your name and lab number, for example LabY-JohnSmith.zip. In addition, print out your code and hand in the physical copy at the beginning of the next lab session.

The marks for this lab are heavily weighted towards good coding practice and style. Pay attention to each of the points in the marking criteria below to ensure you get a good grade!

NOTE: This assignment is to be done individually. You can help one another with problems and questions, but in the end everyone must do their own assignment.

CriteriaMarks
Deliverable 10
Deliverable 10
Total 20