Download Power Point presentation for week 1 recitation

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
Files to turn in for Homework # 1
1) TimerApplet.java
2) TimerApplet.html
3) TimerSyntaxErr.java
4) TimerSemanticErr.java
5) TimerSemanticErr.html
6) HomeWork1.txt
CS 161 & Code Warrior
How to Write & Turn In
Programming Projects
Overview
• Starting Code Warrior
• Creating a New Code Warrior Project
– Editing Your Program
– Running Your Program
• Turning in Your Program files
The Start Menu
The Code Warrior Program
• Code Warrior Controls
– Creating new projects
– Opening Existing Project
• Typical Multiple Document interface
– File, Edit, Search, Window & Help
• Project & Debug
– Programming, Compiling, and Debugging
Creating a New
Project
•File Menu
•New Project
The New Project Dialog
Setting The Project Location
Setting The Project Location (2)
The New Project Dialog (2)
Selecting The Project Type
The Code Warrior Project Window
To change file name
1) Open the edit mode by double-clicking on the file icon from project
window.
2) Go to FILE – SAVE AS and enter the name of the file.
3) In the edit mode, change the class name within the file so that it
matches with the file name.
4) If the project is an applet, make the changes in the html file too
so that the correct class file gets invoked.
5) If the project is an application, go to Edit – ‘Java Application
Settings’ – ‘Java Target’. (See next slide)
Application settings
The Edit Window (Java Source)
File Name
Libraries
Methods
Bookmark
Syntax
coloring
Edit
Window
The Edit Window (HTML Source)
Compiling your Project
• Make Button
– Project Window
• Make option
– Project Menu
• F7
• Compile versus Make
Running your project
• Execute Button
– Project Window
• Run
– Project Menu
• F5
• Program Terminates
– Be sure to dismiss the output
window before modifying and
compiling your program again
Testing Your Program
• Does it Compile?
– Does that make it correct?
• Does it Execute?
– Does that make it correct?
• What makes it correct?
Turning It In
• Do you have an ENGR account?!?
– Get one !
• Labs
– Hoveland 108, Dearborn 118,
• Apperson, Batchellor, Rogers
• ENGR Account maintence home page
– https://engr.orst.edu
– Same page for turning in work
Turning it In
COE Home Page
Computing Support Page
ENGR Account Home Page
Logging In
Welcome Page
Submit an assignment Page
Submittal Page
File Dialog Page
File Dialog Page
A successful turn in
An unsuccessful submittal
• File size of any file is zero bytes
– Need to re-submit everything!
• Authentication failed
– Need to log back in
• Other error
– Log back in and try it again
– Copy the error message and email me or the
support
Related documents