CISC 101 Lecture Notes - Lecture 9: Boolean Algebra, Elementary Arithmetic, Octal

60 views2 pages

Document Summary

Art of compuing -> algorithms -> informaion theory -> computer hardware. Data representaion -> hexa, octal, decimal and conversions -> boolean logic -> gates -> half bit full bit adders -> user applicaion operaing system hardware -> programming languages. Syntax -> compilers vs interpreters -> python -> basic arithmeic -> Unicode has many variants, uilizing between 8 and 32 bits for each character. Python uses utf-8, an 8-bit encoding compaible with ascii. Over 100k unicode deined characters for many of the languages of the world. The ord funcion gives the utf-8 ascii encoding of a character. The chr funcion gives the character for a given encoding value. Control characters are special characters that are not displayed. We use a combinaion of characters: escape sequence . E. g. , \n is the newline control character, that begins a new screen line, Built-in funcion format controls how strings are displayed, To center a string the ^" character is used:

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents