COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday...
-
date post
22-Dec-2015 -
Category
Documents
-
view
217 -
download
2
Transcript of COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday...
![Page 1: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/1.jpg)
COMP 14 – 02: Introduction to Programming
Andrew Leaver-FayAugust 31, 2005August 31, 2005
Monday/Wednesday 3-4:15 pmMonday/Wednesday 3-4:15 pmPeabody 217Peabody 217
Friday 3-3:50pmFriday 3-3:50pmPeabody 217Peabody 217
![Page 2: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/2.jpg)
About Me
• UNC graduate student– 5th year Ph.D. student– Undergrad: University of Virginia
• Research interests:– Computational Structural Biology
• Protein design• Protein structure prediction
•http://www.cs.unc.edu/~plato/
![Page 3: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/3.jpg)
About me
• I like to cook
![Page 4: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/4.jpg)
![Page 5: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/5.jpg)
![Page 6: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/6.jpg)
![Page 7: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/7.jpg)
![Page 8: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/8.jpg)
![Page 9: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/9.jpg)
![Page 10: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/10.jpg)
![Page 11: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/11.jpg)
![Page 12: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/12.jpg)
![Page 13: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/13.jpg)
![Page 14: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/14.jpg)
![Page 15: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/15.jpg)
![Page 16: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/16.jpg)
![Page 17: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/17.jpg)
Cooking
pots, stove, ingrediants Chef Recipe
![Page 18: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/18.jpg)
Computing
ResourcesProcessing thing in the
middleProgram
![Page 19: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/19.jpg)
Computing
Hard Drive, Memory,
Graphics Card
Processing thing in the
middleProgram
![Page 20: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/20.jpg)
Computing
Hard Drive, Memory,
Graphics Card
Central Processing
ThingProgram
![Page 21: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/21.jpg)
Computing
Hard Drive, Memory,
Graphics Card
Central Processing
UnitProgram
![Page 22: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/22.jpg)
Cooking
pots, stove, ingrediants Chef Recipe
![Page 23: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/23.jpg)
Cooking
pots, stove, ingrediants Chef Recipe
Recipe Author
![Page 24: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/24.jpg)
Computing
Hard Drive, Memory,
Graphics Card
Central Processing
UnitProgram
Software Engineer
![Page 25: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/25.jpg)
Syllabus
• 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
![Page 26: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/26.jpg)
Course Web Page
• UNC Blackboard System– http://blackboard.unc.edu
• http://www.cs.unc.edu/~plato/COMP14
• Staff Information• Course Documents• Assignments• Checking Grades
![Page 27: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/27.jpg)
Weekly Schedule
• Lecture– Monday/Wednesday 3-4:15 pm– Peabody 217
• Recitation– Friday 3-3:50pm– Peabody 217
![Page 28: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/28.jpg)
Lecture Format
• Review previous material
• Present new material
• In-class exercises– work in groups
• Lecture notes will be posted online after class
![Page 29: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/29.jpg)
What’s A Recitation?
• Mini-lab– Extra programming practice– Occasionally in-class assignments will be graded– Answer questions from lecture
• You will work in groups• Each group should always have a laptop and textbook
• No new material will be covered
![Page 30: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/30.jpg)
Textbook
RequiredJava Programming: From Problem Analysis to Program Design D. Malik, P. Nair ISBN: 0-619-06497-8
![Page 31: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/31.jpg)
Software
• jGRASP– on public lab machines
• All Programs / UNC Courseware / COMP 14– you will install on your machine
• see link from Syllabus on web• this Friday's recitation
![Page 32: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/32.jpg)
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)
![Page 33: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/33.jpg)
COMP 14 Map
![Page 34: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/34.jpg)
Grades
• Programming Assignments 45 %• Homeworks/Quizzes 15 %• Midterm Exam 15 %• Final Exam 20 %• Class Participation 5 %
![Page 35: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/35.jpg)
Assignments
• Assignments are due at 11:59pm on the due date– turn in using Blackboard
• Homework assignments from textbook– practice for exams
• Programming assignments– budget 10-12 hours per program
• design, code, debugging– start early!
![Page 36: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/36.jpg)
Submitting Assignments
• All assignments will be submitted through Blackboard
• All assignments must include the honor code pledge
• Submission Errors– I will email you and give a deadline for re-submitting– Don't change your assignment
• I will look at the file's timestamp to determine if you originally met the deadline
– Not checking your email is not an excuse for missing the deadline
![Page 37: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/37.jpg)
Late Policy• Assignments
– Due at 11:59 on their posted due date.– You have five “late days” to spend over the semester– After you’ve used your late days, no late assignment
will be accepted– After 11:59pm counts as a day late!!
• Exceptions will be made as necessary– Talk to me sooner than later– "I started late and something came up" is not an
acceptable excuse
![Page 38: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/38.jpg)
Exams
• Mid-Term. Monday October 17th in class– Warning: week before fall break
• Final. Friday December 16th at 4pm.– 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
![Page 39: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/39.jpg)
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
![Page 40: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/40.jpg)
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 External Links on the course Blackboard site
![Page 41: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/41.jpg)
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
![Page 42: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/42.jpg)
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
![Page 43: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/43.jpg)
Honor Policy
• Don’t cheat!– Every line of code you turn in must be your own.– You can
• talk to each other about the lecture topics• talk about assignment requirements• Hand wave assignment solutions (out loud, or on a
whiteboard)– You should
• do your own assignments -- design and code– You should never
• share code -- it is easy to detect and we will prosecute
• Pledge Form
![Page 44: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/44.jpg)
Send me e-mail
• Put “COMP 14” in subject line
• For example:– COMP 14, I’m lost– COMP 14, This course is too easy
![Page 45: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/45.jpg)
Homework 0
• Hello World– instructions given Friday
• Due Monday (Sept 5th) at 11:59pm• Write java code and turn it in using Blackboard
![Page 46: COMP 14 – 02: Introduction to Programming Andrew Leaver-Fay August 31, 2005 Monday/Wednesday 3-4:15 pm Peabody 217 Friday 3-3:50pm Peabody 217.](https://reader037.fdocuments.us/reader037/viewer/2022110207/56649d795503460f94a5d00c/html5/thumbnails/46.jpg)
This Week's Recitation• Bring your laptop!
• We will install jGRASP and the SDK
• We will discuss “Hello World”
• We will probably finish it during recitation