CMPT 120 Chapter Notes - Chapter 3: Computer Science

16 views2 pages
meghan78 and 39786 others unlocked
CMPT 120 Full Course Notes
29
CMPT 120 Full Course Notes
Verified Note
29 documents

Document Summary

In figure 2. 5, the binary string 0100100001101001 represents hi in ascii. But, if you look at this chunk of binary as representing an integer, it"s the same as 18537. There actually isn"t any difference as far as the computer itself is con- cerned. Its only job is to store the bits its given and do whatever calculations it"s asked to do. The programming language must keep track of what kind of information the different parts of the memory are holding. This is why the concept of types is so important in python. If python didn"t keep track of the type of each variable, there would be no way to tell. We will talk more about data structures in unit 5. ) We have also said that coming up with an algorithm is generally much harder than implementing the algorithm with a programming language. Cre- ating algorithms is something you"ll practice over the next few years if you continue in computing science.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents