Activity_01 - COMP 1210 Activity 1: Introduction Page 1 of...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
COMP 1210 Activity 1: Introduction Page 1 of 7 COMP 1210 | Spring 2012 1 Reading : Chapter 1.4 - 1.6 pages 26-49 Terminology: Object-oriented programming Java API (standard class library) Documentation Inline documentation (comments) Class Method Identifiers Reserved words White space Machine language Assembly language High-level languages Fourth-generation languages Editor Compiler Interpreter Source code Java bytecode IDE Debugger SDK / JDK Syntax Semantics Compile-time error Run-time error Logic error A coding standard consists of guidelines that are used by developers when writing source code to ensure that it follows a consistent format. Rules will be added to the COMP 1210 coding standard each week as more complex programs are developed. COMP 1210 Coding Standard: o The COMP 1210 coding standard is supported by Checkstyle, which is a tool that works with jGRASP to automatically detect style errors in a program. We will talk about Checkstyle in more details later. o Lines of code must be less than 80 characters (including indentation). You can continue string literals on a new line using string concatenation. For example : System.out.println( "This is a long output string." ); Can be rewritten as: System.out.println( "This is a long " + "output string." ); Note that the concatenation does not change the output of the program. All classes and methods require descriptive Javadoc comments. See pages 1-4 of the documentation guidelines for more information.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
COMP 1210 Activity 1: Introduction Page 2 of 7 COMP 1210 | Spring 2012 2 Due : Part A: (50%) Wednesday, January 11, 2012 by the end of lab Part B: (50%) Wednesday, January 18, 2012 by 11:59 PM Goals: By the end of this activity you should be able to do the following: Understand what happens when a program is compiled and run Add Javadoc comments to your program Generate documentation for your program Correct your source code structure using Checkstyle Submit your completed program to Web-CAT Directions: Part A: The two programs that you will need on your computer to compile and run a Java program are java.exe and javac.exe. In this activity Part A you will first create a program without the use of an IDE that will print out a welcome message to standard output. You will then create a similar program in jGRASP. 1. Using javac.exe and java.exe with no IDE (30%) Go to your H drive by selecting Start -> My Computer and then selecting the H: drive (H:). Create a new folder called COMP1210. This is where you will store all of your work for COMP 1210 for the rest of the semester. In the COMP1210 folder, create a folder called Lab1. NOTE
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/02/2012 for the course COMP 1210 taught by Professor Cross during the Winter '07 term at Auburn University.

Page1 / 7

Activity_01 - COMP 1210 Activity 1: Introduction Page 1 of...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online