Mon Jan 12 - Tyler M. Johnson

advertisement
COMP 110:
Introduction to Programming
Tyler Johnson
January 12, 2009
MWF 11:00AM-12:15PM
Sitterson 014
About COMP 110
Learn the basics of computer programming in Java
Algorithms and their design
Basic programming constructs
Applicable to any programming language (Java, C++,
etc.)
Requirements / Prerequisites
Basic computer skills (web browsing, installing
software)
No programming knowledge assumed
Good background in algebra
2
COMP 110: Spring 2009
About Me
Eight years of programming experience
PhD student in Computer Science
Undergraduate study at NC State
Research interests: multi-projector displays
3
COMP 110: Spring 2009
Why learn to program?
Increase your computer literacy
You get to create!
Automate routine tasks
Useful in various applications
Games and entertainment
Medicine
Bioinformatics
Air traffic control
Training
4
COMP 110: Spring 2009
Course Web Page
http://www.cs.unc.edu/~tmjohns/teaching/COMP110/
Course documents
Assignments
Labs
5
COMP 110: Spring 2009
Weekly Schedule
Lecture
Monday/Wednesday
11:00AM-12:15PM
Sitterson 014
Recitations
Friday
11:00AM-12:15PM
Sitterson 014 (bring your laptop)
Office hours
TBD
Sitterson 372
6
COMP 110: Spring 2009
Textbook
Required
Java: An Introduction to Problem Solving &
Programming (5th Edition)
(Walter Savitch & Frank M. Carrano)
7
COMP 110: Spring 2009
Lecture Format
Review previous material
Questions
Present new material
In-class exercises
work in groups
Lecture notes will be posted online before class
Updated after class
8
COMP 110: Spring 2009
Recitations
Mini-lab on Fridays
Extra programming practice
Homework help
Answer questions from lecture
Bring your laptop (fully charged) every
Friday
Make sure you can connect to campus wireless
• http://help.unc.edu/?id=4976
9
COMP 110: Spring 2009
Computer Labs
7 Labs
Maintained by UNC ITS
You may do homework there
http://help.unc.edu/?id=1908
10
COMP 110: Spring 2009
Software
jGRASP
On 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)
11
COMP 110: Spring 2009
Grades
Assignments
Midterm
Final
Participation
12
-
60%
15%
20%
5%
COMP 110: Spring 2009
Assignments
Labs assigned during Friday recitations
Due by midnight following Thursday
Programming Assignments
Start Early!
Some will build on previous assignments
Reading Assignments
Self-Test Questions from textbook
Practice for exams
13
COMP 110: Spring 2009
Collaboration
Don’t cheat!
You may never share code, unless otherwise
specified
You may not show your program to another
student so that he or she can copy it or see
how it works
You may discuss general approaches with one
another, but you may never share code
14
COMP 110: Spring 2009
Submitting Assignments
Submitted through Blackboard
Naming scheme
Labs
• lastname_lab#.jar
Programs
• lastname_pro#.jar
HWs
• lastname_hw#.txt (or .doc)
15
COMP 110: Spring 2009
Late Policy
Assignments may be turned in up to
two days late at a penalty of 25% of
total credit for each late day
16
COMP 110: Spring 2009
Working in the Lab
Before you open jGRASP and start
coding:
read the assignment
think about what the assignment is asking for
review lectures and examples on the topic
write (on paper) your plan for completing the
assignment (i.e., your algorithm)
17
COMP 110: Spring 2009
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 space
Use of AFS space is not required, but is
recommended
18
COMP 110: Spring 2009
Campus File System
Andrew 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
http://help.unc.edu/?id=215
19
COMP 110: Spring 2009
Help!
For help with general computer
problems, including getting AFS enabled
on your laptop or at home
Also, for free software
http://help.unc.edu
962-HELP
20
COMP 110: Spring 2009
Exams
Mid-Term
To take a make-up mid-term, you must notify me in
advance or have a doctor's excuse
Final
To 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
21
COMP 110: Spring 2009
Sending Email to me
Important! Put COMP110 in subject line
For example:
COMP110, I’m lost
COMP110, This course is too easy
22
COMP 110: Spring 2009
Homework 0
Posted on the course website
Basic 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)
23
COMP 110: Spring 2009
Next Lecture
Computer basics
Hardware & Memory
Your first JAVA program!
24
COMP 110: Spring 2009
Download