CSC105 1 Wu Ch1
CSC105 1 Wu Ch1
Chapter 1
Introduction to Computers and Programming
Dr. Longfei Wu
Department of Mathematics and Computer Science
Fayetteville State University
Modified from the PPT of “Tony Gaddis, Starting Out With Python, 4th edition, Pearson”
3:28 PM
Course Info
❖ Textbook
✦ Starting Out with Python, 4th Edition by Tony Gaddis, Wiley, 2017.
ISBN-10: 0134444329 and ISBN-13: 978-0134444321.
❖ Supplementary textbook
✦ A free online Python tutorial: https://www.learnpython.org/.
✦ MyProgrammingLab associated with the textbook will NOT be used.
❖ General information:
✦ Class meetings: MWF 11:00 am - 11:50 am
✦ Classroom: Sci & Tech Bldg 238
✦ Office hour: MWF 2:20pm – 5:00pm
✦ Office location: Sci & Tech Bldg 215
✦ Contact: lwu@uncfsu.edu
3:28 PM
Grading Policy
❖ Grading scheme 1 (the default grading scheme)
✦ Class attendance: 5% (no penalty for excused absence)
✦ Chapter Homework: 25% (multiple choice, T/F questions, one for each chapter)
✦ Take-home Exercises: 25% (mostly Programming)
✦ Chapter Tests: 20% (5 Tests, one for each chapter)
✦ Final Exam: 25%
❖ Grading scheme 2 (upon request, must request before the final exam)
✦ Class attendance: 5% (no penalty for excused absence)
✦ Chapter Tests: 25% (5 Tests, one for each chapter)
Hardness: Chapter Tests > Take-home Exercises > Final Exam > Chapter Homework
After weighted, each Chapter Homework is worth more than a Chapter Test.
For any given decimal number (0-255), it must be the sum of either all
of the position values or a subset of them.
3:28 PM
1.3 How Computers Store Data
Decimal to Binary conversion
❖ Step 2: compare with the position values to decide the values (0/1) at
each of the 8 bits (starting from bit 7, down to bit 0).
✦ For example, convert 213 to binary number.
✦ Other differences:
▪ a compiler translate the whole program together, while an interpreter
✦ Keywords: orange.
✦ Comments: in red.
✦ String literals: in green.
✦ Functions and classes: blue.
✦ Built-in functions: purple.