CECS 174                                HOMEWORK ASSIGNMENT #1
                                                                     10 points

Do the following problems in chapter 1:

1. A program is a special kind of recipe - one that can be executed by a computational device. It's written in a programming language.

2. An algorithm is a description of how to solve a problem. An algorithm can be written in English.

3. It stores programs, data, and items that are being calculated or in use by the currently executing programs.

5. Moore's Law said that the number of transistors will double at the same price every 18 months. The same amount of money will buy
twice the computing power every 18 months.

11.   P h u o n g     50 68  75  6F  6E  67

12. Unicode can represent  more characters than ASCII.
      ASCII uses 1 byte and Unicode uses 2 bytes.

13. It takes 921,600 to store the pixels in a 640 x 480 picture.
      It takes 2,359,296 to store the pixels in a 1024 x 768 picture
      A 3 megapixel camera can store 3 million bytes per device.

14. There are two digits in binary system: 0 and 1. There are 10 digits in decimal system: 0 to 9.
       3    0011
       5    0101
       13  1101

15. The hexadecimal system is base 16 and has 16 digits. It uses 0-9 and A for 10, B for 11, C for 12, D for 13, E for 14 and F for 15.
      There are 16 digits in the hexidecimal number system.
      33 is 21 in hexidecimal. 64 is 40 in hexidecimal.

17. 8 digits in one byte.  256 values (0 -255) in one byte. 65536 values in (0-65535) in two bytes.  4,294,967,296 values in four bytes.

Do the following problems in chapter 2:

1.  Answer in the book

3. In a movie theater we find tickets sellers,, tickets, ticket takers, theaters, movies, customers and so on.

6. Your class room might have a teacher, students, desks, chairs, a whiteboard, computers, projectors and so on.

8. It would take 12.83 hours.
    It will take 11 hours at 70 miles per hour.
    It will take 1.83 less hours of time at 70 miles per hour.

9. The pay will be $715.00

10.