SlideShare una empresa de Scribd logo
1 de 22
Computer Science 151
An introduction to the art of computing
Lecture 1 - Introduction
Rudy Martinez
CS151
01/14/2018
CS151 Spring 2019
Course Admin
● Office hours: by appointment
○ I’m on campus everyday most of the day.
○ My office is in Farris Engineering Center room 3550C
● Exams: one in-class midterm exam + 1 final project
○ Midterm, either 3/6 (wed) or 3/20(wed)
○ Final is 5/10 (Friday) at 12:30pm to 2:30pm in this room.
● Homeworks: ~4 over the semester
● Grading split:
○ 60% homeworks, 20% midterm exams , 20% final project
CS151 Spring 2019
Course Admin
● Course announcements will be sent out via the UNM email
system
● Course materials (lecture notes, homework assignments,
etc) and other info will be posted on the class webpage [I
will announce when it is up.]
● Homeworks will be submitted via UNM mail system
CS151 Spring 2019
Course Text
UNM has free access to Safari Books Online, so no need to
purchase this book:
Programming in Python 3: A Complete Introduction to the Python Language
by Mark Summerfield
Publisher: Addison-Wesley Professional
Release Date: December 2008
ISBN: 9780137129294
https://libguides.unm.edu/Safari
There are also plenty of Python resources available on the
web.
CS151 Spring 2019
Policies: Class Attendance
Attendance to class is expected (read mandatory) and note taking encouraged. Important information
(about exams, assignments, projects, policies) may be communicated only during lecture time. We may
also cover additional material (not available in the book or in slides) during the lecture.
If you miss a lecture, you should find what material was covered and if any announcement was made. If
you have absences. It is your responsibility to find out what material you missed. I am happy to answer
specific questions regarding the lecture, but cannot go through all of the missed material on a one-to-one
basis.
That being said; I will not be taking attendance if you are not here I do not know generally.
CS151 Spring 2019
Motivation for class
● The objective of the course is to develop an
understanding of the relationship between computing and
problem solving.
● Computers are powerful tools, and being able to program
them gives you the ability to create powerful tools.
● If you are a CS major or minor you should be in
CS152.
CS151 Spring 2019
Policies: Academic Honesty
Unless otherwise specified, you must write/code your own homework assignments. You cannot use the web to find answers
to any assignment. If you do not have time to complete an assignment, it is better to submit your partial solutions than to get
answers from someone else. Cheating students will be prosecuted according to University guidelines. Students
should get acquainted with their rights and responsibilities as explained in the Student Code of Conduct
http://dos.unm.edu/student-conduct/academic-integrityhonesty.html
Any and all acts of plagiarism will result in an immediate dismissal from the course and an official report to the dean of
students.
Instances of plagiarism include, but are not limited to: downloading code and snippets from the Internet without explicit
permission from the instructor and/or without proper acknowledgment, citation, or license use; using code from a classmate
or any other past or present student; quoting text directly or slightly paraphrasing from a source without proper reference;
any other act of copying material and trying to make it look like it is yours.
Note that dismissal from the class means that the student will be dropped with an F from the course.
The best way of avoiding plagiarism is to start your assignments early. Whenever you feel like you cannot keep up with the
course material, your instructor is happy to find a way to help you. Make an appointment or come to office hours, but DO
NOT plagiarize; it is not worth it!
CS151 Spring 2019
Computing Facilities
● Labs will be in the basement computer lab.
● These computers run Ubuntu Linux 16.04 and have
Python 2.7 and 3.5.2.
○ We will be using 3.5 since 2 is deprecated
● These computers require a Computer Science Login, you
will get these in lab.
● You will have 24x7 access to these computers over the
semester by SSH
CS151 Spring 2019
Computer Science Account
● You will be assigned an account for the lab machines.
○ Please change the password!
CS151 Spring 2019
Labs
● Monday/Wednesday/Friday 10:30am to 11:30am.
● Monday/Wednesday/Friday 11:30am to 12:30pm.
● You may attend any lab.
● No Attendance is mandatory, however, this is dedicated
time for you to do your assignments with the help of the
teaching assistants to answer questions.
● Overrides due to time conflict;
○ I need your Name and UNM ID and I can provide the override. (Do NOT
email your UNM ID to me they get mad at me for this type of thing.)
CS151 Spring 2019
Why Linux?
● Still the premier scientific programming language.
○ Born out of the Unix OS
○ Free
○ Customizable
○ More secure from install than Windows/Mac OS
● As engineers you will most likely run in to linux as much
as windows
● The good news python is the same in any environment*
CS151 Spring 2019
The language of choice!
CS151 Spring 2019
What is Python? (from python.org)
● Python is an interpreted, object-oriented, high-
level programming language.
CS151 Spring 2019
What is Python? (from python.org)
● Python is an interpreted, object-oriented, high-
level programming language.
Interpreted means Python is
not the fastest language (your
programs aren’t compiled down
to native code) but they are
highly portable and easy to run.
CS151 Spring 2019
What is Python? (from python.org)
● Python is an interpreted, object-oriented, high-
level programming language.
But you aren’t forced to use
objects if you don’t want to!
Interpreted means Python is
not the fastest language (your
programs aren’t compiled down
to native code) but they are
highly portable and easy to run.
CS151 Spring 2019
What is Python? (from python.org)
● Python’s high-level built in data structures,
combined with dynamic typing and dynamic
binding, make it very attractive for use as a
scripting language or for rapid development.
CS151 Spring 2019
What is Python? (from python.org)
● Python’s high-level built in data structures,
combined with dynamic typing and dynamic
binding, make it very attractive for use as a
scripting language or for rapid development.
Don’t have to worry about
satisfying a type checker before
you are allowed to run your
program!
CS151 Spring 2019
What is Python? (from python.org)
● Python’s high-level built in data structures,
combined with dynamic typing and dynamic
binding, make it very attractive for use as a
scripting language or for rapid development.
Don’t have to worry about
satisfying a type checker before
you are allowed to run your
program!
It is relatively quick and easy to
put together working programs
for single-use tasks, such as
data analysis.
CS151 Spring 2019
What is Python? (from python.org)
● Python's simple, easy to learn syntax emphasizes
readability and therefore reduces the cost of
program maintenance.
No braces!
CS151 Spring 2019
What is Python? (from python.org)
● Python supports modules and packages, which
encourages program modularity and code reuse.
○ Scipy, scientific computing package optimized for speed and size.
○ Numpy, fast N-dimensional array package.
○ Matplotlib, comprehensive plotting package for python.
○ Pandas, data science package
○ Too many to list ...
CS151 Spring 2019
Example matplotlib plot styles
CS151 Spring 2019
Next time: basics of Python
programming
● Read chapter 1 for Wednesday.
● Attend a lab and get your CS account.

Más contenido relacionado

Similar a Lecture01

1.1. course introduction
1.1. course introduction1.1. course introduction
1.1. course introduction
Nicholas Wong
 
ONLINE ACCESSThank you for purchasing a new copy of In.docx
ONLINE ACCESSThank you for purchasing a new copy of In.docxONLINE ACCESSThank you for purchasing a new copy of In.docx
ONLINE ACCESSThank you for purchasing a new copy of In.docx
cherishwinsland
 
Edu614 Session 1 Summer 2012
Edu614 Session 1 Summer 2012Edu614 Session 1 Summer 2012
Edu614 Session 1 Summer 2012
Kathy Favazza
 

Similar a Lecture01 (20)

0 - Course Overview.pptx
0 - Course Overview.pptx0 - Course Overview.pptx
0 - Course Overview.pptx
 
Class 01 - Intro.pdf
Class 01 - Intro.pdfClass 01 - Intro.pdf
Class 01 - Intro.pdf
 
1.1. course introduction
1.1. course introduction1.1. course introduction
1.1. course introduction
 
ONLINE ACCESSThank you for purchasing a new copy of In.docx
ONLINE ACCESSThank you for purchasing a new copy of In.docxONLINE ACCESSThank you for purchasing a new copy of In.docx
ONLINE ACCESSThank you for purchasing a new copy of In.docx
 
Tech Tools Anyone Can Use
Tech Tools Anyone Can UseTech Tools Anyone Can Use
Tech Tools Anyone Can Use
 
[MET] Software Recruiting 101
[MET] Software Recruiting 101[MET] Software Recruiting 101
[MET] Software Recruiting 101
 
An introduction to python | Python Assignment Help
An introduction to python | Python Assignment HelpAn introduction to python | Python Assignment Help
An introduction to python | Python Assignment Help
 
Teaching by twitter [Presented at Curtin University, Western Australia]
Teaching by twitter [Presented at Curtin University, Western Australia]Teaching by twitter [Presented at Curtin University, Western Australia]
Teaching by twitter [Presented at Curtin University, Western Australia]
 
Teaching by twitter ... a view on mLearning
Teaching by twitter ... a view on mLearningTeaching by twitter ... a view on mLearning
Teaching by twitter ... a view on mLearning
 
Engl317 online syllabus
Engl317 online syllabusEngl317 online syllabus
Engl317 online syllabus
 
Codesters
CodestersCodesters
Codesters
 
Review june2014 june2015
Review june2014 june2015Review june2014 june2015
Review june2014 june2015
 
C aptitude book
C aptitude bookC aptitude book
C aptitude book
 
Ocr GCSE computer science introduction
Ocr GCSE computer science introductionOcr GCSE computer science introduction
Ocr GCSE computer science introduction
 
1 cover page
1 cover page1 cover page
1 cover page
 
Writing clean scientific software Murphy cleancoding
Writing clean scientific software Murphy cleancodingWriting clean scientific software Murphy cleancoding
Writing clean scientific software Murphy cleancoding
 
Online ENGL 202 Syllabus
Online ENGL 202 SyllabusOnline ENGL 202 Syllabus
Online ENGL 202 Syllabus
 
Edu614 Session 1 Summer 2012
Edu614 Session 1 Summer 2012Edu614 Session 1 Summer 2012
Edu614 Session 1 Summer 2012
 
Python lec 1001_for_biologists
Python lec 1001_for_biologistsPython lec 1001_for_biologists
Python lec 1001_for_biologists
 
Learning to code in 2020
Learning to code in 2020Learning to code in 2020
Learning to code in 2020
 

Más de Rudy Martinez

Más de Rudy Martinez (18)

CS 151Exploration of python
CS 151Exploration of pythonCS 151Exploration of python
CS 151Exploration of python
 
CS 151 Graphing lecture
CS 151 Graphing lectureCS 151 Graphing lecture
CS 151 Graphing lecture
 
CS 151 Classes lecture 2
CS 151 Classes lecture 2CS 151 Classes lecture 2
CS 151 Classes lecture 2
 
CS 151 Classes lecture
CS 151 Classes lectureCS 151 Classes lecture
CS 151 Classes lecture
 
CS151 Deep copy
CS151 Deep copyCS151 Deep copy
CS151 Deep copy
 
CS 151 Standard deviation lecture
CS 151 Standard deviation lectureCS 151 Standard deviation lecture
CS 151 Standard deviation lecture
 
CS 151 Midterm review
CS 151 Midterm reviewCS 151 Midterm review
CS 151 Midterm review
 
Cs 151 dictionary writer
Cs 151 dictionary writerCs 151 dictionary writer
Cs 151 dictionary writer
 
CS 151 homework2a
CS 151 homework2aCS 151 homework2a
CS 151 homework2a
 
CS 151 dictionary objects
CS 151 dictionary objectsCS 151 dictionary objects
CS 151 dictionary objects
 
CS 151 CSV output
CS 151 CSV outputCS 151 CSV output
CS 151 CSV output
 
CS 151 Date time lecture
CS 151 Date time lectureCS 151 Date time lecture
CS 151 Date time lecture
 
CS151 FIle Input and Output
CS151 FIle Input and OutputCS151 FIle Input and Output
CS151 FIle Input and Output
 
CS151 Functions lecture
CS151 Functions lectureCS151 Functions lecture
CS151 Functions lecture
 
Lecture4
Lecture4Lecture4
Lecture4
 
Lecture01
Lecture01Lecture01
Lecture01
 
Lecture02
Lecture02Lecture02
Lecture02
 
Lecture03
Lecture03Lecture03
Lecture03
 

Último

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Último (20)

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 

Lecture01

  • 1. Computer Science 151 An introduction to the art of computing Lecture 1 - Introduction Rudy Martinez CS151 01/14/2018
  • 2. CS151 Spring 2019 Course Admin ● Office hours: by appointment ○ I’m on campus everyday most of the day. ○ My office is in Farris Engineering Center room 3550C ● Exams: one in-class midterm exam + 1 final project ○ Midterm, either 3/6 (wed) or 3/20(wed) ○ Final is 5/10 (Friday) at 12:30pm to 2:30pm in this room. ● Homeworks: ~4 over the semester ● Grading split: ○ 60% homeworks, 20% midterm exams , 20% final project
  • 3. CS151 Spring 2019 Course Admin ● Course announcements will be sent out via the UNM email system ● Course materials (lecture notes, homework assignments, etc) and other info will be posted on the class webpage [I will announce when it is up.] ● Homeworks will be submitted via UNM mail system
  • 4. CS151 Spring 2019 Course Text UNM has free access to Safari Books Online, so no need to purchase this book: Programming in Python 3: A Complete Introduction to the Python Language by Mark Summerfield Publisher: Addison-Wesley Professional Release Date: December 2008 ISBN: 9780137129294 https://libguides.unm.edu/Safari There are also plenty of Python resources available on the web.
  • 5. CS151 Spring 2019 Policies: Class Attendance Attendance to class is expected (read mandatory) and note taking encouraged. Important information (about exams, assignments, projects, policies) may be communicated only during lecture time. We may also cover additional material (not available in the book or in slides) during the lecture. If you miss a lecture, you should find what material was covered and if any announcement was made. If you have absences. It is your responsibility to find out what material you missed. I am happy to answer specific questions regarding the lecture, but cannot go through all of the missed material on a one-to-one basis. That being said; I will not be taking attendance if you are not here I do not know generally.
  • 6. CS151 Spring 2019 Motivation for class ● The objective of the course is to develop an understanding of the relationship between computing and problem solving. ● Computers are powerful tools, and being able to program them gives you the ability to create powerful tools. ● If you are a CS major or minor you should be in CS152.
  • 7. CS151 Spring 2019 Policies: Academic Honesty Unless otherwise specified, you must write/code your own homework assignments. You cannot use the web to find answers to any assignment. If you do not have time to complete an assignment, it is better to submit your partial solutions than to get answers from someone else. Cheating students will be prosecuted according to University guidelines. Students should get acquainted with their rights and responsibilities as explained in the Student Code of Conduct http://dos.unm.edu/student-conduct/academic-integrityhonesty.html Any and all acts of plagiarism will result in an immediate dismissal from the course and an official report to the dean of students. Instances of plagiarism include, but are not limited to: downloading code and snippets from the Internet without explicit permission from the instructor and/or without proper acknowledgment, citation, or license use; using code from a classmate or any other past or present student; quoting text directly or slightly paraphrasing from a source without proper reference; any other act of copying material and trying to make it look like it is yours. Note that dismissal from the class means that the student will be dropped with an F from the course. The best way of avoiding plagiarism is to start your assignments early. Whenever you feel like you cannot keep up with the course material, your instructor is happy to find a way to help you. Make an appointment or come to office hours, but DO NOT plagiarize; it is not worth it!
  • 8. CS151 Spring 2019 Computing Facilities ● Labs will be in the basement computer lab. ● These computers run Ubuntu Linux 16.04 and have Python 2.7 and 3.5.2. ○ We will be using 3.5 since 2 is deprecated ● These computers require a Computer Science Login, you will get these in lab. ● You will have 24x7 access to these computers over the semester by SSH
  • 9. CS151 Spring 2019 Computer Science Account ● You will be assigned an account for the lab machines. ○ Please change the password!
  • 10. CS151 Spring 2019 Labs ● Monday/Wednesday/Friday 10:30am to 11:30am. ● Monday/Wednesday/Friday 11:30am to 12:30pm. ● You may attend any lab. ● No Attendance is mandatory, however, this is dedicated time for you to do your assignments with the help of the teaching assistants to answer questions. ● Overrides due to time conflict; ○ I need your Name and UNM ID and I can provide the override. (Do NOT email your UNM ID to me they get mad at me for this type of thing.)
  • 11. CS151 Spring 2019 Why Linux? ● Still the premier scientific programming language. ○ Born out of the Unix OS ○ Free ○ Customizable ○ More secure from install than Windows/Mac OS ● As engineers you will most likely run in to linux as much as windows ● The good news python is the same in any environment*
  • 12. CS151 Spring 2019 The language of choice!
  • 13. CS151 Spring 2019 What is Python? (from python.org) ● Python is an interpreted, object-oriented, high- level programming language.
  • 14. CS151 Spring 2019 What is Python? (from python.org) ● Python is an interpreted, object-oriented, high- level programming language. Interpreted means Python is not the fastest language (your programs aren’t compiled down to native code) but they are highly portable and easy to run.
  • 15. CS151 Spring 2019 What is Python? (from python.org) ● Python is an interpreted, object-oriented, high- level programming language. But you aren’t forced to use objects if you don’t want to! Interpreted means Python is not the fastest language (your programs aren’t compiled down to native code) but they are highly portable and easy to run.
  • 16. CS151 Spring 2019 What is Python? (from python.org) ● Python’s high-level built in data structures, combined with dynamic typing and dynamic binding, make it very attractive for use as a scripting language or for rapid development.
  • 17. CS151 Spring 2019 What is Python? (from python.org) ● Python’s high-level built in data structures, combined with dynamic typing and dynamic binding, make it very attractive for use as a scripting language or for rapid development. Don’t have to worry about satisfying a type checker before you are allowed to run your program!
  • 18. CS151 Spring 2019 What is Python? (from python.org) ● Python’s high-level built in data structures, combined with dynamic typing and dynamic binding, make it very attractive for use as a scripting language or for rapid development. Don’t have to worry about satisfying a type checker before you are allowed to run your program! It is relatively quick and easy to put together working programs for single-use tasks, such as data analysis.
  • 19. CS151 Spring 2019 What is Python? (from python.org) ● Python's simple, easy to learn syntax emphasizes readability and therefore reduces the cost of program maintenance. No braces!
  • 20. CS151 Spring 2019 What is Python? (from python.org) ● Python supports modules and packages, which encourages program modularity and code reuse. ○ Scipy, scientific computing package optimized for speed and size. ○ Numpy, fast N-dimensional array package. ○ Matplotlib, comprehensive plotting package for python. ○ Pandas, data science package ○ Too many to list ...
  • 21. CS151 Spring 2019 Example matplotlib plot styles
  • 22. CS151 Spring 2019 Next time: basics of Python programming ● Read chapter 1 for Wednesday. ● Attend a lab and get your CS account.