HW_1 - CS 31: INTRODUCTION TO COMPUTER SCIENCE I Computer...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CS 31: INTRODUCTION TO COMPUTER SCIENCE I Computer Science Department University of California, Los Angeles Dr. John A. Rohr January 20, 2010 HOMEWORK 1 Manipulating Text Lines Objective : Practice manipulating text lines. Background : Three different standard codes are commonly used to represent characters in computers: the American Standard Code for Information Interchange (ASCII), the American National Standards Institute code (ANSI) and Unicode. ASCII is an extension of a code used on teletypes. There are 128 characters in the ASCII character set. ANSI is an extension of the ASCII code initially used by the Windows operating system. There are 256 characters in the ANSI character set. The ANSI character set includes the ASCII characters as the first 128 characters of the code and adds 128 more. Unicode is a modern code devised to extend ASCII/ANSI so that strings in languages that use characters other than those in the ANSI character set could be stored in computers. Unicode characters can be represented by 3 bytes, so theoretically there could be 2**24 characters, but the number of characters in Unicode Character Standard version 3.2 is actually only 95,221. Each of the codes uses a unique number to represent each of the characters in the set. For example, ASCII uses the numbers 0 through 127 to represent its 128...
View Full Document

Page1 / 3

HW_1 - CS 31: INTRODUCTION TO COMPUTER SCIENCE I Computer...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online