comp 14 introduction to programming mr. joshua stough january 12, 2005 monday/wednesday 11:00-12:15...

28
COMP 14 Introduction to Programming Mr. Joshua Stough January 12, 2005 Monday/Wednesday 11:00-12:15 Peabody Hall 218

Post on 21-Dec-2015

214 views

Category:

Documents


0 download

TRANSCRIPT

COMP 14Introduction to Programming

Mr. Joshua StoughJanuary 12, 2005

Monday/Wednesday 11:00-12:15Peabody Hall 218

About COMP 14

• Learn how to develop algorithms

• Learn the basic components of computer programming– can be applied to any programming

language (Java, C++, etc.)

• Is COMP 14 right for you?• Requirements / prerequisites

– no programming knowledge assumed– Math, algebra

Is COMP 14 Right for You?• Do you have web programming experience with Java,

perl, php?• Experience with “classes” in C++?• Some experience with Matlab, Mathematica?• Do you know what is meant by Object, method,

member variable, recursion, array, sorting algorithms?

• If yes to any, you may be ready for COMP114 instead.

About Me

• UNC grad student, 4th year– undergrad: Carleton College (MN)– hometown: Wichita, Kansas

• Research interests: image analysis, radiation treatment planning, image segmentation

• Other interests– sports I play/watch- Ultimate/all others– Blues, jazz

•http://www.cs.unc.edu/~stough/

About You

• By Class– freshman - 19%– sophomore - 11%– junior - 33%– senior - 36%

• Common MajorsPSY, BIO, ENGL, JOMC

• Introductions- email, phone number, major, class, etc.

Course Web Page

• UNC Blackboard System– http://blackboard.unc.edu

• http://www.cs.unc.edu/~stough/teaching/COMP14-S05/comp14.html

• Staff Information• Course Documents• Assignments• Checking Grades

Weekly Schedule

• Lecture– Monday/Wednesday, 11:00AM-

12:15PM– Friday, 11:00-11:50AM– Peabody Hall 218

• You must attend the above recitation.

Lecture Format

• Review previous material– questions

• Present new material

• In-class exercises– work in groups

• Lecture notes are posted, but may be modified shortly after lecture.

• Notebook computers closed please.

What’s A Recitation?

• Mini-lab led by me– extra programming practice– I can answer questions from lecture

• You will work in groups• Each group should always have a laptop

and textbook

• No new material will be covered

Textbook

RequiredJava Programming: From Problem Analysis to Program Design D. Malik, P. Nair ISBN: 0-619-06497-8

Lightly RecommendedJava Programming: Lab Manual Judy Scholl ISBN: 0-619-15982-0

Software

• jGRASP– on public lab machines

• All Programs / UNC Courseware / COMP 14

– you can install on your machine• see “Course Documents” on web• this Friday's recitation

• We’ll do a tour later...

Computer Labs

• 8 Labs• Maintained by UNC ITS• Locations, schedules, and a map

on course web site• You may do homework there

(jGRASP is installed on all UNC lab machines)

COMP 14 Map

Grades

• assignments 65%– both programs and book

• midterm 15%• final 20-30%

– If the final is an improvement over the midterm, it may count more.

• total 100%

Assignments

• Please submit both paper AND electronic copies by 11:59PM on the due date. – turn in using Blackboard, box for COMP 14-002

on Sitterson 0th floor near elevator

• Homework assignments from textbook– practice for exams

• Programming assignments– budget 10-12 hours per program

• design, code, debugging

– start early!

Submitting Assignments• All assignments will be submitted through

Blackboard• All assignments must include the honor code

pledge– I need signed pledge on paper before Assn 0 due.– Make it the first thing you put onto any assignment.–

• Submission Errors– I will email you and give a deadline for re-submitting– don't change your assignment (not even if you need

to add the honor code pledge)– not checking your email is not an excuse for missing

the deadline

Late Policy

• Late assignments are not accepted

• Exceptions will be made as necessary

"I started late and something came up" is not an acceptable excuse

Working in the Lab

• Before you open jGRASP and start coding (and asking for help):– read the assignment– think about what the assignment is asking

for– review lectures and examples on the topic– write (yes, on paper) your plan for

completing the assignment (i.e., your algorithm)

• talk to/email me if you’re having trouble at this point

Campus File SystemAndrew File System (AFS)• Disk space associated with your Onyen

– automatically backed up by UNC

• AFS in the lab– automatically appears as drive H: when you log in

• On your personal machine– you can install the AFS Client– won’t see drive H: unless you’re connected to the

network (i.e., can access the Internet)

• More information– see External Links on the course Blackboard site

Backup Your Work!

• Backup your work!

• You will lose something at some point– you might have to learn the hard way

• Use your AFS space– use of AFS space is not required, but is

recommended

• Search for “backup” in the Windows help

Help!

http://help.unc.eduhttp://help.unc.edu962-HELP962-HELP

• For help on general computer problems, including getting AFS enabled on your laptop or at home

• Also, for free software

Collaborating• Don’t cheat!

– You can• talk to each other about the lecture topics• talk about assignment requirements• work in groups during recitation on recitation

assignments only– You should

• do your own assignments -- design and code– You should never

• talk to each other about assignment solutions• share code -- it is easy to detect and we

will prosecute• Pledge Form

Sending Email to me

• Put COMP 14 in subject line

• For example:– COMP 14, I’m lost– COMP 14, This course is too easy

Homework 0

• Introduction to Blackboard– 10 points– instructions online under

“Assignments”

• Due Monday (Jan 17) at 11:59pm• Write a text document and turn it

in using Blackboard

jGRASP Tour

This Week's Recitation

• Bring your laptop!

• We will install jGRASP • We will write our first Java program

• Read Chapter 1 to get in the mood and look at the Quick Review sections for Chapters 1 and 2.

Summary

• HW0 ASAP• Download Java SDK from

– http://www.cs.unc.edu/~stough/teaching/COMP14-S05/jgrasp.html

• Read Chapters 1 and 2• Be sure your laptop is powered up

for Friday

Wednesday

• What is Computer Science?• Introduction to Programming

• Reading Assignment: Chapters 1 and 2

• Turn in pledge form– bring to recitation Friday OR– turn in at front desk of Sitterson Hall by

Monday at 5pm

• Homework 0 is due at 11:59 pm