CS 170 Java Programming 1. Welcome to CS 170. All about CS 170 The CS 170 Online Materials Java Mechanics: Your First Program



Similar documents
Welcome to Cinema 105 online!

Florida National University Online Courses Platform

MyMathLab / MyStatLab Advanced Interactive Training Guide

ANGEL 7.4 MASTER Course Import Guide for MBA Online Instructors

Best Practices with MyMathLab/ Faculty Instruction Manual

Online College Algebra (MATH 1302-D10) Fall 2011

FACULTY GETTING STARTED WITH i>clicker2

Android: Setup Hello, World: Android Edition. due by noon ET on Wed 2/22. Ingredients.

KIN 104 FITNESS AND WELLNESS ONLINE LECTURE Summer 2016

Course: ISYS 4373 Application Development with Java Prerequisite: ISYS 3293

Introduction to Psychology Psych 100 Online Syllabus Fall 2014

COURSE SYLLABUS INTRODUCTION TO INTERNATIONAL BUSINESS, MGT ONLINE FALL 2013

CS A250 (CRN ) C++ Programming Language 2. Syllabus Fall 2015

PC Applications IT102 estart Spring 2014

Angel Learning Management System Introductory Tutorial for Students

Course Description. Prerequisites. CS-119/119L, Section 0137/0138 Course Syllabus Program Design & Development - Fall 2015

SAS Installation via the Client-Server Image (CAHNRS Site License)

GET INTO OFFICE 365: OneDrive for Business Guide

Notepad++ The COMPSCI 101 Text Editor for Windows. What is a text editor? Install Python 3

CN-ONLINE LEARNING MANAGEMENT SYSTEM STUDENT MANUAL

Business Administration 318: Value through Capital Online Course Syllabus

CIS Mac OS - Syllabus

NURS 1050 Medical Terminology. Course Description

Merak Outlook Connector User Guide

COURSE SYLLABUS DESIGNING WEB PAGES COP3835-RVC-1121 GENERAL INFORMATION IMPORTANT INFORMATION PROFESSOR INFORMATION

Introduction to Psychology 100 On-Campus Fall 2014 Syllabus

On premise upgrade guide (to 3.3) XperiDo for Microsoft Dynamics CRM

User s Guide: Archiving Work from an LMS PROJECT SHARE

CS Client Side Web Development, Hybrid (crn # 10332) Fall 2015 Northeastern Illinois University > College of Arts & Sciences > Syllabus

Mastering the JangoMail EditLive HTML Editor

Exporting Your Blackboard Courses

Dreamweaver CS6 Basics

My Secure Backup: How to reduce your backup size

Physics 21-Bio: University Physics I with Biological Applications Syllabus for Spring 2012

Student User Guide for BioPortal Biochemistry, Seventh Edition

Access to Moodle. The first session of this document will show you how to access your Lasell Moodle course, how to login, and how to logout.

TITLE: Elementary Algebra and Geometry OFFICE LOCATION: M-106 COURSE REFERENCE NUMBER: see Website PHONE NUMBER: (619)

COMP-202B: Foundations of Programming

etroy Course Syllabus BUS 3382 XTIA Business Communication Term 1, 2015 August 10 October 11, 2015

Student s Guide to Blackboard

Student Quick Start Guide

BRAZOSPORT COLLEGE LAKE JACKSON, TEXAS SYLLABUS ITSE 1432 INTRODUCTION TO VISUAL BASIC.NET PROGRAMMING

Using. Microsoft Virtual PC. Page 1

Google Docs A Tutorial

Online Sections of CIS101, CIS141 & CIS240 About This Course and Getting Started Online Instructor Brad Ford

A Crash Course in OS X D. Riley and M. Allen

Math 1314 Online Syllabus. College Algebra

I ve logged in! Now where do I start?

Law College Computer and Technology Information

AMBERTON UNIVERSITY e-course SYLLABUS

Outlook basics. Identify user interface elements that you can use to accomplish basic tasks.

MATH 1351 (3:3:0) Fundamentals of Mathematics II (Online Course) MATHEMATICS DEPARTMENT. Division of Arts & Sciences

COMP 1405 Intro. to Computer Science I. Course Outline (F2015)

Math 1314 Online Syllabus. College Algebra

etroy Abnormal Psychology 3304 TERM 1, 2015

BLACKBOARD BASICS for ONLINE CLASSES & Classes with Online Components

CS3332 Software Engineering I. Term III/2016

css href title software blog domain HTML div style address img h2 tag maintainingwebpages browser technology login network multimedia font-family

MathXL Getting Started Guide for Instructors

Your First App Store Submission

1001ICT Introduction To Programming Lecture Notes

Earth Science 102 Introduction to Physical Geology Fall 2015 Online

1.00 Lecture 1. Course information Course staff (TA, instructor names on syllabus/faq): 2 instructors, 4 TAs, 2 Lab TAs, graders

How to Attach the Syllabus and Course Schedule to a Content Item

CIS305 - Course Syllabus

IBM Bluemix Tutorial Connecting Eclipse to Bluemix v2.0

Using Google Docs in the classroom: Simple as ABC

Welcome to Online Speech 104

Del Mar College - Mathematics Department SYLLABUS for the Online College Algebra Math 1314 Summer 2014

Technology Department Computer and Network Support Capstone CMP 259-D01 Syllabus: Spring 2015

Online Course Syllabus. POL 1113: American National Government. Fall 2015

D2L STUDENT MANUAL. Prepared by KAMEL SMIDA. Head of E-Learning Unit at the. Applied Medical Sciences College. Majmaah University 5/10/2014

Spanish 002, Elementary Spanish II Online Class. Section #8193, Fall Norma Jacinto, Spanish Instructor

Statistical Methods Online Course Syllabus

WA2262 Applied Data Science and Big Data Analytics Boot Camp for Business Analysts. Classroom Setup Guide. Web Age Solutions Inc.

Advanced Digital Imaging

ANGEL 8.0 Instructor Quick Start Tutorial

Learning Management System User Guide. version

Welcome to Online Introductory Biology 101

CSSEA Helpdesk User Guide

Blackboard Learning System: Student Instructional Guide

DISTANCE EDUCATION. Blackboard Learn - Getting Started Guide for Students. VISIT US ONLINE AT

SilkTest Workbench. Getting Started with.net Scripts

MyMathLab / MyStatLab Beginning Interactive Training Guide

Acct 148: Computer Accounting Syllabus

ACT State Testing Online Services Tutorial

CS1400 Introduction to Computer Science

SIMIAN systems. Sitellite Desktop User Manual. Sitellite Professional Edition

Online Course Syllabus CS320: C Programming

RARITAN VALLEY COMMUNITY COLLEGE ACADEMIC COURSE OUTLINE. CISY 105 Foundations of Computer Science

Programming with the Dev C++ IDE

Building and Using Web Services With JDeveloper 11g

City Tech Instructional Technology & Media Services. Blackboard Tutorial for Students

Apollo ACC PCI Registry Export Basics

The Blackboard Content System: A Quick Start Guide

Online Web Learning University of Massachusetts at Amherst

Google App Engine f r o r J av a a v a (G ( AE A / E J / )

Transcription:

CS 170 Java Programming 1 Welcome to CS 170 All about CS 170 The CS 170 Online Materials Java Mechanics: Your First Program

What s the Plan? Topic I: What s CS 170 All About? Contact information Topics, Goals and Objectives Exams and Assignments Textbook and software Rules for the course Topic 2: the online classroom, lessons and assignments Topic 3: Java Mechanics Learn to use the DrJava Development Environment Enter, modify and run three kinds of Java programs

Contact Information The syllabus is always available from my Web site: http://faculty.orangecoastcollege.edu/sgilbert Here s how you can contact me: Clark Computing Center, Office F Office hours: M: 1:15-2:15, T: 3:15-5:15, W: 10-11 Email: StephenGilbert@gmail.com, sgilbert@occ.cccd.edu Phone: (714) 432-0202 ext 21173

What s CS 170 About? First programming class for Computer Science majors Intended as a transfer class to 4-year college SMART-ICS agreement with UCI, CSU Fullerton Meets computing requirement at some universities Principles of programming, using Java as the language Learn to write your own computer programs This semester we'll also be processing media A lot of work, but a lot of fun if you get into it

Are You Ready? While there are no subject prerequisites for this course, I assume that you are computer literate Install and run programs Move around your computer s file system (copy, delete) Use a zip/unzip program to work with archives Create and save plain text files Use the Web and email (upload, download, etc.) No math pre-req, but should be ready for college algebra

Course Goals If you successfully complete this class you'll: Understand and explain principles of OO Programming Prepare you for other modern languages Use different kinds of program development tools Write applications and applets using the fundamental packages in the Java platform Won't study all the classes; try to master a few Learn how to use the Java documentation so it can teach you about the rest of the classes in the library

How Can You Succeed in CS 170? Don't need to be a "brain" but must put in quality time Like a marathon or getting in shape Anyone can do it, but you have to keep at it 2.5 hours on-campus and about 12 hours outside Includes 2.5 hours online lessons, 8 hours practice Cramming won't help you at all; highly sequential material Practice, practice, practice Not high-school; I won't nag you

How Will You Be Graded in CS 170? 2 Exams: 1 midterm (15%.), 1 final (25%) Multiple-choice: 1-2 hrs closed book, online 10 Reading Quizzes: (7.5%) online, open book 10 Programming Quizzes: (35%) in-class, closed book Hands-on proficiency demonstrations, some re-do Weekly "labs" or "In-Class" exercises (7%) Weekly Homework: practice for exams (15%) 1045 points, grade on 1000 (45 extra for emergencies) 87.5%, 75%, 62.5%, 50% - no other curving

Textbook Introduction to Java Programming Custom textbook for CS 170 Tony Gaddis-ISBN: 9780558618063 Available in the OCC bookstore ($75) Includes 7 chapters from the 4th edition Starting Out With Java: From Control Structures through Objects ISBN: 978-0136080206. May purchase complete text from Amazon, etc.

Software and Supplies Software is all free and cross-platform At home, you can use Windows, Unix/Linux, Mac OS X Use Java version 6 (may use 5 on older Macs (10.4)) An OCC-customized version of DrJava IDE Can put everything on a USB thumb drive Then you can work on almost any computer Transfer files using Blackboard or get a Dropbox account

Rules for the Course May take Pass/Fail; request deadline on your schedule No late work accepted Assignments normally due by noon on Monday 45 points possible extra credit to cover "emergencies" Don't wait until the last minute Retry/makeup only for programming proficiency quizzes May re-try up to 4 of the 10 PPQ exams Pay attention to OCC drop deadlines: no Incompletes Do your own work, and act like adults

Topic 2 The CS 170 Online Classroom Getting Into the Classroom Getting Around the Classroom Submitting Assignments and Taking Quizzes Reading the Online Lessons

Passwords and Logging In You'll have two passwords for this class A OCC Computing-Center password for the LAN See the help-desk in the Computing Center for info A MyOCC password to get into your email, etc. Use your MyOCC password to get into the classroom

Direct Log-on Can log onto Blackboard directly (no MyOCC) Still use your MyOCC password and ID https://cccd.blackboard.com Probably want to bookmark this Half of your "class-time" will consist of online "lectures" Much of the on-campus work will be hands-on

Blackboard Tutorials You'll need to read the online tutorials to learn how to use the online environment (Blackboard Vista)

CS 170 Classroom Here's what the CS 170 "online" classroom" looks like:

Quizzes You'll take the reading quizzes online, outside of class That means, of course, that they are "open book"

Assignments Use the Assignment Drop-box to turn in IC assignments May retrieve assignments up to deadline

Your "IC" or "Lab" Document Will submit an "in-class" lab document each week. Use Word or OpenOffice to create a new document Save the file as IC01.doc (Office 97-2003 compatible) Place on your network U: drive or on a thumb drive Put your name and today's date at the top of the sheet Title it "CS 170 In-class Exercise 1" Save and close, upload to Blackboard and submit. Exercise 1.1: show me your assignment submitted Retrieve and discard uploaded file when done.

Weekly Lessons Each week, I'll have a "start-page" to the lessons:

Homework Assignments Exercise page at bottom of weekly start page Directions, points, submission instructions Start working on Homework 01 now

Topic 3 Hands-On: Java Mechanics How are Java programs created? What steps do you follow? What tools do you use?

Step 1: Write the Code Use a text editor to write your programming instructions in the Java language Notepad, SciTE, vi, TextWrangler or an IDE We'll use DrJava Called source code Save in a file with the extension.java

Step 2: Compile the Code Use a Java compiler to translate your source code into executable machine code javac in the JDK Called bytecode Stored in a file with the extension.class If syntax errors occur, return to text editor

Step 3: Run your Program Use a Java Virtual Machine (JVM) to load the bytecode, translate into native machine code and start it running Applications: java.exe or javaw.exe Applets: HTML Web browser, appletviewer If runtime errors occur, return to text editor

Your First Java Program We'll first write an application using the DrJava IDE Exercise: copy the cs170home-f10 folder from Q: and place (drop) it on your U:\ (network) or USB Thumb drive Q:\faculty5\sgilbert\cs170\cs170home-F10

Starting DrJava Exercise: start the DrJava IDE by opening the tools folder and double-clicking OCDJ-Fall10.jar

Logging In Type your last name and student ID to start DrJava. Student ID must start with C Skip any spaces in your last name If you aren't registered or are not connected to the Internet, then select Guest Access Logging-in is needed to record the score for your homework assignments

The DrJava IDE

Preview: Java Syntax Every Java program is a class definition Class definition is a blueprint to construct objects The basic class structure looks like this: some stuff public class SomeClassName { some more stuff } Must be stored in SomeClassName.java Only one public class per file

Step 1: Edit the Source Code Find source code for program at: Q:\faculty5\sgilbert\cs170\edit-program01.gif Right-click, "Preview" Type in code, replacing noted portions Save the file when done Exercise 1.2 Screenshot of source

Step 2: Compiling Your Program Several ways to compile your code when saved Right-click to compile a single file Use Compile button to compile all files in Files Pane

When Bad Things Happen Common Syntax or Compiler Errors Exercise 1.3 Screenshot of clean compile Syntax must be 100% correct for a program to run Capitalization: (System not system, String not string) Spelling the name of your source file incorrectly Forgetting or mismatching the number of braces Mistaking parentheses for braces Misspelling the name of a variable Edit and then recompile until there are no errors

Step 3: Running Your Program You can use the menu command Tools->Run Document, press the F2 key, or click the Run button on the toolbar

Viewing the Output Exercise 1.4 Screenshot of output Program is run in DrJava's Interactions Pane Can view just output in Console Pane

Testing Your Code Program may not do what you want (logic error) Test by comparing actual and expected output I'll supply tests for first few weeks. Later you'll learn how to write your own test programs. Click the Check button in the menu bar

Testing Your Code Check program looks for existing test sets. Select Week 1 and then MyFirstConsoleProgram, click OK

Test Results Exercise 1.5 Screenshot of all tests passing Results appear in Interactions and Console panes

Check your Style Portion of your grade based on program style Can check that by running the Checkstyle program

Fix Style Errors Checkstyle shows errors in external process pane: Correct all style errors by checking line number Exercise 1.6 Screenshot of clean style check

GUI App and Java Applet To complete your IC "lab" document: Compile and run a Java GUI application Compile and run a Java applet Shoot screen-shots Submit to Blackboard Instructions are in online lesson on Blackboard May complete this outside of class

Finishing Up Reading for next week: Mediacomp: read Chapter 1 and start Chapter 2 Gaddis: start Chapter 1 Homework, Quiz and Assignments Deadline is Tuesday at noon because of Labor Day Introduce yourself on discussion board Three homework problems Upload to Assignment Dropbox. Make sure to press Submit