Presentation on theme: "An Introduction to Computer Programming Anna Bretscher"— Presentation transcript:
1 An Introduction to Computer Programming Anna Bretscher Welcome to CSCA20An Introduction to Computer ProgrammingAnna Bretscher
2 Why Study Computer Science? Computers provide tools to simplify processesComputers allow for analysis that is otherwise impossibleComputer science can be applied to many problems in the sciences, business, arts, humanities…Computers don’t always do what we think they are doing, better to understand when this happens!
3 Course Goals To learn most Python instructions. To be able to write programs that solve scientific (or other) problems.To understand what computer scientists do.To acquire an appreciation of how computer science applies to other areas of research.
4 Intended for students with no programming experience. CSCA20 - ContentIntended for students with no programming experience.Introduction toalgorithmsprogramming using PythonData analysis and plottingDatabase designPic from messymind.net
5 CSCA20 - Course Work Textbook – ebook or hardcopy Labs (10%) “Practical Programming 2nd Edition” by Campbell, Gries, Lockwood, Montojoand WilsonLabs (10%)2 hour labs every week, starting in week 2.Assignments (40%)4 assignments - 10% each
6 CSCA20 - Tests Quizzes (15%) Final (35%) Quizzes in weeks 4, 7 and 11 during lab time.Think of quizzes as practice for the final.Final (35%)You need to score at least 40% to pass theCourse.
7 Labs 2 hour labs every week starting in week 2. You earn 1% per lab attended up to 10%.This means you may miss one lab.These are the “tutorials” on ROSILabs are your new best friend. This is where you will learn the most!
8 Assignments Posted on the website. Submitted electronically. First assignment very short and easy – an easy way to earn 10%.2nd, 3rd and 4th assignments progressively more challenging.
9 Where do I get HELP!!LabsAsk your TA questions. Your labs are also like office hours!!Office HoursM 11: :45, W 11:30 – 1:00, F 12:10 - 1:00Come visit me, I want to get to know you.Online TutorialMeInclude a relevant subject (e.g., CSCA20 - A1 question 2).Sign your name.
10 Week 1 - To Do List See the “Resource” page on the website Read the course information sheet and check out the website.Order/download the text and read chapters 1 and 2Install Python and Wing 101 (if working at home)See the “Resource” page on the website
11 Computer Science Is about problem solving and writing algorithms. ALGORITHM (WEBSTER’S).A step-by-step procedure for solving a problem or accomplishing some end especially by a computer
12 Lets Practice Algorithms Give the smiley face instructions to get to the star. Use Forward, Right, Left.F x 2, RF x 2, LF x 7, RF, LF, RF x 3, RF
13 Let Practice Algorithms – Take 2 F x 9, RF x 7, RF x 5, RF x 3, RF
14 Let Practice Algorithms – Take 2 F x 9, RF x 7, RF x 5, RF x 3, RFF x 9, Rsteps 9(F x steps, R) x 2steps 7steps 5steps 3F
15 Algorithms – Take 2 Now you are thinking like a computer scientist! F x 9, Rsteps 9(F x steps, R) x 2steps 7steps 5steps 3FF x 9, Rsteps 9(F x steps, R) x 2steps steps - 2FF x 9, Rsteps 9while steps > 2 repeat:(F x steps, R) x 2steps steps - 2FNow you are thinking like a computer scientist!
16 Python Python is the language we will use to write our algorithms. We use Wing 101: a free environment and editor for coding in Python.