COM SCI 31- Midterm Exam Guide - Comprehensive Notes for the exam ( 49 pages long!)

208 views49 pages
13 Oct 2017
School

Document Summary

Lecture 1 4/3: memory (store integers/release integers, central processing unit (cpu, memories store integers, but what about fractions? input/output devices. Us common coding rule (h -> 72, e -> 101, ! > 33, space -> 32, 6 -> 54) Turned into number: record numbers at small segments of times: store picture. For every grid, record numbers according to brightness with 1 & 0 (bw) or encode colors. Choose the right resolution: store videos. Show the sequence of pictures fast enough (24frame/s: presenting instructions to computer. E. g. a memory called accumulator holds 5-digit integer: 93804 instruction counter: 0 number 21004 sent to cpu from memory (21: operation code, 004: address) 21 sent to circuit & activated -> copy number at the indicated memory address into the accumulator so replaces the original accumulator number with number in memory address indicated from instruction. Arithmetic logic unit(alu): add numbers, repeating pattern. Lecture 2 4/5: when first writing programs, use english instead of numbers.