comp 110: introduction to programming tyler johnson january 12, 2009 mwf 11:00am-12:15pm sitterson...

24
COMP 110: Introduction to Programming Tyler Johnson January 12, 2009 MWF 11:00AM-12:15PM Sitterson 014

Upload: abigail-vega

Post on 26-Mar-2015

219 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: COMP 110: Introduction to Programming Tyler Johnson January 12, 2009 MWF 11:00AM-12:15PM Sitterson 014

COMP 110:Introduction to Programming

Tyler JohnsonJanuary 12, 2009

MWF 11:00AM-12:15PMSitterson 014

Page 2: COMP 110: Introduction to Programming Tyler Johnson January 12, 2009 MWF 11:00AM-12:15PM Sitterson 014

COMP 110: Spring 20092

About COMP 110

Learn the basics of computer programming in Java

Algorithms and their designBasic programming constructs Applicable to any programming language (Java, C++, etc.)

Requirements / PrerequisitesBasic computer skills (web browsing, installing software)No programming knowledge assumedGood background in algebra

Page 3: COMP 110: Introduction to Programming Tyler Johnson January 12, 2009 MWF 11:00AM-12:15PM Sitterson 014

COMP 110: Spring 20093

About Me

Eight years of programming experiencePhD student in Computer Science

Undergraduate study at NC State

Research interests: multi-projector displays

Page 4: COMP 110: Introduction to Programming Tyler Johnson January 12, 2009 MWF 11:00AM-12:15PM Sitterson 014

COMP 110: Spring 20094

Why learn to program?

Increase your computer literacyYou get to create!Automate routine tasksUseful in various applications

Games and entertainmentMedicineBioinformaticsAir traffic controlTraining

Page 5: COMP 110: Introduction to Programming Tyler Johnson January 12, 2009 MWF 11:00AM-12:15PM Sitterson 014

COMP 110: Spring 20095

Course Web Page

http://www.cs.unc.edu/~tmjohns/teaching/COMP110/

Course documentsAssignmentsLabs

Page 6: COMP 110: Introduction to Programming Tyler Johnson January 12, 2009 MWF 11:00AM-12:15PM Sitterson 014

COMP 110: Spring 20096

Weekly Schedule

LectureMonday/Wednesday11:00AM-12:15PMSitterson 014

RecitationsFriday11:00AM-12:15PMSitterson 014 (bring your laptop)

Office hoursTBDSitterson 372

Page 7: COMP 110: Introduction to Programming Tyler Johnson January 12, 2009 MWF 11:00AM-12:15PM Sitterson 014

COMP 110: Spring 20097

RequiredJava: An Introduction to Problem Solving & Programming (5th Edition)(Walter Savitch & Frank M. Carrano)

Textbook

Page 8: COMP 110: Introduction to Programming Tyler Johnson January 12, 2009 MWF 11:00AM-12:15PM Sitterson 014

COMP 110: Spring 20098

Lecture Format

Review previous materialQuestions

Present new material

In-class exerciseswork in groups

Lecture notes will be posted online before class

Updated after class

Page 9: COMP 110: Introduction to Programming Tyler Johnson January 12, 2009 MWF 11:00AM-12:15PM Sitterson 014

COMP 110: Spring 20099

Recitations

Mini-lab on FridaysExtra programming practice

Homework helpAnswer questions from lectureBring your laptop (fully charged) every Friday

Make sure you can connect to campus wireless• http://help.unc.edu/?id=4976

Page 10: COMP 110: Introduction to Programming Tyler Johnson January 12, 2009 MWF 11:00AM-12:15PM Sitterson 014

COMP 110: Spring 200910

Computer Labs

7 LabsMaintained by UNC ITSYou may do homework there

http://help.unc.edu/?id=1908

Page 11: COMP 110: Introduction to Programming Tyler Johnson January 12, 2009 MWF 11:00AM-12:15PM Sitterson 014

COMP 110: Spring 200911

Software

jGRASPOn public lab machines• All Programs / UNC Courseware / COMP 110

You can install on your machine• We will do this during this Friday’s recitation

Please download the Java SDK and the appropriate version of jGRASP to your laptop before Friday’s recitation! (See course schedule on web site for details)

Page 12: COMP 110: Introduction to Programming Tyler Johnson January 12, 2009 MWF 11:00AM-12:15PM Sitterson 014

COMP 110: Spring 200912

Grades

Assignments - 60%Midterm - 15%Final - 20%Participation - 5%

Page 13: COMP 110: Introduction to Programming Tyler Johnson January 12, 2009 MWF 11:00AM-12:15PM Sitterson 014

COMP 110: Spring 200913

Assignments

Labs assigned during Friday recitations

Due by midnight following Thursday

Programming AssignmentsStart Early!Some will build on previous assignments

Reading AssignmentsSelf-Test Questions from textbook

Practice for exams

Page 14: COMP 110: Introduction to Programming Tyler Johnson January 12, 2009 MWF 11:00AM-12:15PM Sitterson 014

COMP 110: Spring 200914

Collaboration

Don’t cheat!You may never share code, unless otherwise specifiedYou may not show your program to another student so that he or she can copy it or see how it worksYou may discuss general approaches with one another, but you may never share code

Page 15: COMP 110: Introduction to Programming Tyler Johnson January 12, 2009 MWF 11:00AM-12:15PM Sitterson 014

COMP 110: Spring 200915

Submitting Assignments

Submitted through BlackboardNaming scheme

Labs• lastname_lab#.jar

Programs• lastname_pro#.jar

HWs• lastname_hw#.txt (or .doc)

Page 16: COMP 110: Introduction to Programming Tyler Johnson January 12, 2009 MWF 11:00AM-12:15PM Sitterson 014

COMP 110: Spring 200916

Late Policy

Assignments may be turned in up to two days late at a penalty of 25% of total credit for each late day

Page 17: COMP 110: Introduction to Programming Tyler Johnson January 12, 2009 MWF 11:00AM-12:15PM Sitterson 014

COMP 110: Spring 200917

Working in the Lab

Before you open jGRASP and start coding:

read the assignmentthink about what the assignment is asking forreview lectures and examples on the topicwrite (on paper) your plan for completing the assignment (i.e., your algorithm)

Page 18: COMP 110: Introduction to Programming Tyler Johnson January 12, 2009 MWF 11:00AM-12:15PM Sitterson 014

COMP 110: Spring 200918

Back up Your Work!

Back up your work!

You will lose something at some point

You might have to learn the hard way

Use your AFS spaceUse of AFS space is not required, but is recommended

Page 19: COMP 110: Introduction to Programming Tyler Johnson January 12, 2009 MWF 11:00AM-12:15PM Sitterson 014

COMP 110: Spring 200919

Campus File SystemAndrew File System (AFS)

Disk space associated with your OnyenAutomatically backed up by UNC

AFS in the labAutomatically appears as drive H: when you log in

On your personal machineYou can install the AFS ClientWon’t see drive H: unless you’re connected to the network (i.e., can access the Internet)

More informationhttp://help.unc.edu/?id=215

Page 20: COMP 110: Introduction to Programming Tyler Johnson January 12, 2009 MWF 11:00AM-12:15PM Sitterson 014

COMP 110: Spring 200920

Help!

For help with general computer problems, including getting AFS enabled on your laptop or at homeAlso, for free software

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

Page 21: COMP 110: Introduction to Programming Tyler Johnson January 12, 2009 MWF 11:00AM-12:15PM Sitterson 014

COMP 110: Spring 200921

Exams

Mid-TermTo take a make-up mid-term, you must notify me in advance or have a doctor's excuse

FinalTo take the exam at a different time, you must get permission from your Dean and bring me the blue slip you get from the Dean

Page 22: COMP 110: Introduction to Programming Tyler Johnson January 12, 2009 MWF 11:00AM-12:15PM Sitterson 014

COMP 110: Spring 200922

Sending Email to me

Important! Put COMP110 in subject line

For example:COMP110, I’m lostCOMP110, This course is too easy

Page 23: COMP 110: Introduction to Programming Tyler Johnson January 12, 2009 MWF 11:00AM-12:15PM Sitterson 014

COMP 110: Spring 200923

Homework 0

Posted on the course websiteBasic info about you/honor pledge• Shouldn’t take more than about 10 minutes

Print, complete, and return to me in class on Wed (Jan 14th)

Start reading the textbook, Sections (1.1, 1.2)

Page 24: COMP 110: Introduction to Programming Tyler Johnson January 12, 2009 MWF 11:00AM-12:15PM Sitterson 014

COMP 110: Spring 200924

Next Lecture

Computer basicsHardware & MemoryYour first JAVA program!