attendance_quiz WILL BE ISSUED (Last time there will be a warning for these)!
Quiz Area
Before We Start:
From the previous Lecture:
The rules of CS1111
- The first rule of CS1111 is RTFI
- The second rule of CS1111 is RTFI
- Start early
- FTFI: Follow The Fantastic Instructions
- Plan before coding
- Debug smart
- Prepare your questions
- Ask for help
Programming in a nutshell
- Programming language → execution
- Code – human readable (Java)
- Executable – machine “readable”
- Compiler – converts from code → executable. It's like Google translate for computers
- What happens when you type in nonsense?
beatbox
(Must speak the language you're translating from) - Syntax errors – not speaking “java” correctly
Compilation
The source file:
- home/pfrank/cs111/module01/
- exampleFile.java
Request that the compiler "compile the" source file into an executable:
javac exampleFile.java
You should have:
- home/pfrank/cs111/module01/
- exampleFile.java
- exampleFile.class
Request that the java runtime "execute the" executable file:
java exampleFile
Where is this request done? Either from the terminal or from an IDE (JGrasp in our case).
Test your system:
Write a Hello World program in JGrasp. First, make sure you place it in a directory that will hold your class work like:
public class HelloWorld { public static void main (String[] argv) { System.out.println("Hello World!"); } }
- /Users/pablo/cs1111/module01/HellowWorld.java ...or
- C:\Documents and Settings\All Users\pablo\cs1111\module01\HellowWorld.java