1、CS101: Intro to ComputingSummer 2016Week 1Administrivia Homework 1 is posted (due Friday)Administrivia iclicker Wednesday and Friday iclicker tests After that, iclicker attendance Need to register device ON COURSE COMPASS PAGEWHY ARE WE HERE?Ive seen things you people wouldnt believeEveryone should
2、program! This is my mission!Why learn to program?a. Pervasiveb. Lucrativec. Transferrabled. Creativee. Self-determinationEveryone can program Our goal is a safe, friendly, inclusive atmosphere for everyone to learn. You should feel welcome, regardless of gender, gender identity, ethnicity, nationali
3、ty, religion, disability, sexual orientation, class, political views, or educational background. We are peers and allies. Lets all treat one another with respect and kindness.Programming is a skill! Learn by doing! Learn by interacting! You need to constantly practice. Get help when you need it! WAR
4、NING: If you are not committed to this class, youre not going to make it!HOW WILL THIS CLASS WORK?Grading 20% homework 25% labs 10% lecture attendance (iclicker) 20% midterms (2) 25% final examOfficial grade book will be on CompassRequired Supplies No textbook! iclicker CodeLab accountCourse website
5、 https:/relate.cs.illinois.edu/course/SU2016CS101/ Homework assignments Course calendar Course policies Can also find it via CoE course directory https:/courses.engr.illinois.eduLabs Start tomorrow Intended to get hands on experience First learn basics of Unix command line Then learn some programmin
6、g basicsPolicies No late homework submissions All machine generated grades are final Late registrants should keep up with work No extensions or exceptions for late registration Never copy codeGetting help Piazza Be civil to peers and staff All posts containing solutions should be made private A priv
7、ilege, not a right Office hours (on RELATE) Have specific questions if you want assistanceCourse Overview 4-5 weeks: programming (Python) 2-3 weeks: engineering programming 1 week: MatlabWHAT IS PROGRAMMING?Program A set of instructions a computer executes to achieve a goal Can be very long (million
8、s of instructions) Also called “code” or “source code” Our programs will be called “scripts”Data Information stored in a computer is called data. All data is represented in binary. A series of 0s and 1s Each 0 or 1 is called a bit. Bits are stored in groups of 8 called bytes.Instructions Programs ar
9、e data. Instructions are encoded in binary. Each instruction is typically 4 or 8 bytes.Programming Language An artificial language used to communicate instructions to a computer Rigorous and unambiguous Grammar is mathematically formal Has syntax and semantics like a natural languageProgramming Lang
10、uages Low-level: add $t0, $t1, $t2 Define individual, machine readable instructions High-level: x=y+z Human readable instructions translated into machine readable instructionsHigh-level languages Compiled languages Compiler translates entire program into machine language Interpreted (scripting) Inte
11、rpreter translates program into machine language line by line Translation happens “on the fly”Python High-level language Interpreted language Strongly, dynamically typed language WARNING: Split between versions 2 and 3. We will use version 3!Why Python? Freely available Cross platform Widely adopted
12、 Well documented Designed for teaching BeautifulA set of instructions a computer executes to achieve a goal is calleda) a process.b) a program.c) a procedure.d) a pronoun.A grouping of 8 bits is calleda) a nibble.b) a chomp.c) a byte.d) a gobble.Python isa) a high-level language.b) a low-level language.Python isa) a compiled language.b) an interpreted language.