Skip to main content Accessibility help
Internet Explorer 11 is being discontinued by Microsoft in August 2021. If you have difficulties viewing the site on Internet Explorer 11 we recommend using a different browser such as Microsoft Edge, Google Chrome, Apple Safari or Mozilla Firefox.

Chapter 2: Basic Data Types

Chapter 2: Basic Data Types

pp. 5-78

Authors

, Carleton College, Minnesota
Resources available Unlock the full potential of this textbook with additional resources. There are Instructor restricted resources available for this textbook. Explore resources
  • Add bookmark
  • Cite
  • Share

Summary

Imagine converting a color photograph to grayscale (as in Figure 2.1).Implementing this conversion requires interacting with a slew offoundational data types (the basic “kinds of things”) thatshow up throughout CS. A pixel is a sequence of three colorvalues, red, green, and blue. (And an image is a two-dimensional sequence ofpixels.)

About the book

Access options

Review the options below to login to check your access.

Purchase options

eTextbook
US$79.00
Hardback
US$79.00

Have an access code?

To redeem an access code, please log in with your personal login.

If you believe you should have access to this content, please contact your institutional librarian or consult our FAQ page for further information about accessing our content.

Also available to purchase from these educational ebook suppliers