 |
CS 111 - Introduction to Computer Science
Homework #1 |
Due: Monday 9/7 at the beginning of class
NOTE: For each assignment, you should submit not only the requested program files,
but also a simple text file called README.
README files are often used by
programmers to comment on the contents of a directory or give vital information.
Please make sure this plain text file is named "README", not "README.txt",
"readme", "ReadMe.txt", "Read
me.doc", etc. For each assignment, your README
file will contain:
- The Honor Pledge
- Your name
- Your Gettysburg ID number
- Answers to written questions
-
Read Chapter 1.
-
Do the bash tutorial ("Getting started with bash at Gettysburg"). Do the tutorial in one sitting so that you'll
be able to submit a transcript of your shell commands. NOTE: Following all
instructions will create a README file with evidence of your work, or add such
evidence to one if you've already created it.
-
(Optional:
Watch the Deitel Eclipse introduction video. This
can be viewed on non-Linux campus computers.) In class 9/4:
Do the Eclipse tutorial "Create a Hello World
application". Get to the Welcome screen either at first startup or via
Help→Welcome. Choose "Tutorials". Under
"Java Development", choose "Create a
Hello World application". Follow the tutorial instructions step-by-step in
the "Welcome" tab in the right margin. You'll be submitting the Java file
you create according to these instructions.
The more you know of your work environment, the more efficient you will
be. A little time spent above and beyond these tutorials will likely
pay off significantly in the long run as a CS major/minor.
-
Create a separate Java application called
HelloMe.java
that prints "Hello, <name>!",
inserting your name for <name>. -
In your own words, define the terms:
-
compiler
-
interpreter
-
Java Virtual Machine (JVM)
-
What do the commands "
java" and "javac" have to do with the previous terms?
-
In your own words, describe these errors. When is each type of error
encountered in the programming process (e.g. editing stage, compilation stage,
execution stage, etc.)?
-
syntax error
-
logic error