Skip to Main Content
The Art of LEGO MINDSTORMS NXT-G Programming
book

The Art of LEGO MINDSTORMS NXT-G Programming

by Terry Griffin
August 2010
Intermediate to advanced content levelIntermediate to advanced
288 pages
13h 21m
English
No Starch Press
Content preview from The Art of LEGO MINDSTORMS NXT-G Programming

understanding data types

Before you finish the SoundMachine program, you need to learn about one more aspect of data wires. So far, all the data you have worked with (the Ultrasonic and Rotation Sensor readings and the Power, Volume, and Tone Frequency settings) has been numbers. But numbers aren’t the only type of information. Think about the answers to the following three questions:

  1. What is your name?

  2. How old are you?

  3. Are you the oldest child in your family?

Each question asks for a different kind of information. Your name is a word, your age is a number, and the answer to the third question is either “yes” or “no.” In computer programming, the term data types describes different kinds of information. Your answers to the previous three questions ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The Art of LEGO MINDSTORMS EV3 Programming (Full Color)

The Art of LEGO MINDSTORMS EV3 Programming (Full Color)

Terry Griffin

Publisher Resources

ISBN: 9781593272180Errata