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:
What is your name?
How old are you?
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.
Read now
Unlock full access