files to turn in for homework # 1

32
es to turn in for Homework # 1) TimerApplet.java 2) TimerApplet.html 3) TimerSyntaxErr.java 4) TimerSemanticErr.java 5) TimerSemanticErr.html 6) HomeWork1.txt

Upload: britanni-oliver

Post on 30-Dec-2015

35 views

Category:

Documents


1 download

DESCRIPTION

Files to turn in for Homework # 1. TimerApplet.java TimerApplet.html TimerSyntaxErr.java TimerSemanticErr.java TimerSemanticErr.html HomeWork1.txt. CS 161 & Code Warrior. How to Write & Turn In Programming Projects. Overview. Starting Code Warrior Creating a New Code Warrior Project - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Files to turn in for Homework # 1

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

Page 2: Files to turn in for Homework # 1

CS 161 & Code Warrior

How to Write & Turn In Programming Projects

Page 3: Files to turn in for Homework # 1

Overview

• Starting Code Warrior

• Creating a New Code Warrior Project– Editing Your Program– Running Your Program

• Turning in Your Program files

Page 4: Files to turn in for Homework # 1

The Start Menu

Page 5: Files to turn in for Homework # 1

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

Page 6: Files to turn in for Homework # 1

Creating a New Project

•File Menu

•New Project

Page 7: Files to turn in for Homework # 1

The New Project Dialog

Page 8: Files to turn in for Homework # 1

Setting The Project Location

Page 9: Files to turn in for Homework # 1

Setting The Project Location (2)

Page 10: Files to turn in for Homework # 1

The New Project Dialog (2)

Page 11: Files to turn in for Homework # 1

Selecting The Project Type

Page 12: Files to turn in for Homework # 1

The Code Warrior Project Window

Page 13: Files to turn in for Homework # 1

To change file name

1) Open the edit mode by double-clicking on the file icon from projectwindow.

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)

Page 14: Files to turn in for Homework # 1

Application settings

Page 15: Files to turn in for Homework # 1

The Edit Window (Java Source)

Libraries

Methods

Bookmark

Syntax coloring

Edit Window

File Name

Page 16: Files to turn in for Homework # 1

The Edit Window (HTML Source)

Page 17: Files to turn in for Homework # 1

Compiling your Project

• Make Button– Project Window

• Make option– Project Menu

• F7

• Compile versus Make

Page 18: Files to turn in for Homework # 1

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

Page 19: Files to turn in for Homework # 1

Testing Your Program

• Does it Compile?– Does that make it correct?

• Does it Execute?– Does that make it correct?

• What makes it correct?

Page 20: Files to turn in for Homework # 1

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

Page 21: Files to turn in for Homework # 1

Turning it In

Page 22: Files to turn in for Homework # 1

COE Home Page

Page 23: Files to turn in for Homework # 1

Computing Support Page

Page 24: Files to turn in for Homework # 1

ENGR Account Home Page

Page 25: Files to turn in for Homework # 1

Logging In

Page 26: Files to turn in for Homework # 1

Welcome Page

Page 27: Files to turn in for Homework # 1

Submit an assignment Page

Page 28: Files to turn in for Homework # 1

Submittal Page

Page 29: Files to turn in for Homework # 1

File Dialog Page

Page 30: Files to turn in for Homework # 1

File Dialog Page

Page 31: Files to turn in for Homework # 1

A successful turn in

Page 32: Files to turn in for Homework # 1

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