COMP 14 - University of North Carolina at Chapel Hill

advertisement
COMP 14
Introduction to Programming
Adrian Ilie
Summer Session II, 2005
MTWRF 9:45-11:15 am
Sitterson Hall 011
Adrian Ilie
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL
About COMP 14
• What made you register for Comp 14?
• Learn how to develop algorithms
• Learn the basic components of
computer programming
♦ can be applied to any programming language
(Java, C++, etc.)
2
Adrian Ilie
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL
About COMP 14
• Is COMP 14 right for you?
• Requirements / prerequisites
♦ no programming knowledge assumed
3
Adrian Ilie
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL
About Me
• UNC graduate student
♦ 5th year Ph.D. student
♦ M.S. Computer Science from UNC
♦ Undergrad: Academy of Economic Studies,
Bucharest, Romania
• Research interests:
♦ Computer Graphics, Computer Vision, camera
allocation
•http://www.cs.unc.edu/~adyilie/
4
Adrian Ilie
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL
Course Web Page
• http://www.cs.unc.edu/~adyilie
/comp14
•
•
•
•
Schedule
Lectures
Documents
Assignments
♦ Please visit the course page regularly!!
5
Adrian Ilie
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL
Schedule
• Lectures
♦ MTWRF, 9:45-11:15 am, SN 011
• Office Hours
♦ MTWR, 2-3 pm, SN 237
6
Adrian Ilie
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL
Textbook
Required
Java Programming: From Problem
Analysis to Program Design
D. Malik, P. Nair
ISBN: 0-619-06497-8
Optional
Java Programming: Lab Manual
Judy Scholl
ISBN: 0-619-15982-0
7
Adrian Ilie
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL
Grades
•
•
•
•
•
8
Assignments (7)
Quizzes (3)
Midterm
Final/Project
Class participation
Adrian Ilie
45%
10%
15%
25%
5%
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL
Assignments
• Assignments are posted on the course page
(check often), and due at 11:59pm on the
due date
♦ turn in by email (adyilie@cs.unc.edu) or in class
• Homework assignments from textbook
♦ practice for exams
• Programming assignments
♦ budget 10-12 hours per program
• design, code, debugging
♦ start early!
9
Adrian Ilie
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL
Exams
• Midterm
♦ to take a make-up midterm, 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
10
Adrian Ilie
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL
Collaborating
♦ You can
• talk to each other about the lecture topics
• talk about assignment requirements
♦ You should
• do your own assignments -- design and code
♦ You should not
• talk to each other about assignment solutions
• share code -- it is easy to detect
Pledge form
http://www.unc.edu/depts/honor/
http://www.cs.unc.edu/Admin/Courses/HonorCode.html
11
Adrian Ilie
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL
Software
• jGRASP Java Development
Environment
♦ on public lab machines
• Start / All Programs / UNC Courseware / COMP 14 /
jGRASP
♦ you can install on your machine
• see course home page
• We’ll do a tour later...
12
Adrian Ilie
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL
Computer Labs
• UNC ITS labs:
♦
♦
♦
♦
♦
♦
♦
♦
Davis Library
Health Sciences Library
Hinton James Residence Hall
Law School Library
R. B. House Undergraduate Library
School of Public Health
Student Union
Venable Hall
Schedules: http://help.unc.edu/?id=1653
Locations: http://www.unc.edu/atn/labs/
13
Adrian Ilie
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL
COMP 14 Map
14
Adrian Ilie
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL
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 (yes, on paper) your plan for completing the
assignment (i.e., your algorithm)
• Talk to me if you’re having trouble at this point
15
Adrian Ilie
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL
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
♦ see AFS guidelines on Help section of web page.
16
Adrian Ilie
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL
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
17
Adrian Ilie
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL
Help!
• For help on general computer
problems, including getting AFS
enabled on your laptop or at
home
• Also, for free software
http://help.unc.edu
962-HELP
18
Adrian Ilie
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL
jGRASP Tour
19
Adrian Ilie
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL
Homework 1
• Some personal info
• Getting started with jGRASP
• Due tomorrow at midnight
20
Adrian Ilie
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL
Next Class
• What is Computer Science?
• Introduction to Programming
• Reading Assignment: Chapter 1
• Homework 1 is due tomorrow
21
Adrian Ilie
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL
Download