ALL KINDS OF COMPUTERS An An alarm beeps Two sisters wake up One taps her phone’s screen to turn off the alarm The other uses her phone to check the weather Then both girls get ready for school In the kitchen their dad cooks breakfast and drinks coffee The coffee was ready before he got up The coffeemaker made it while he was asleep A smartphone is actually a tiny computer 5 CHAPTER 1
After breakfast the girls walk to the bus stop Their dad leaves for work The house locks all the doors and windows It uses sensors to watch for movement If someone tries to break in the system will alert the police All these devices depend on code Code is a set of instructions that tell a computer what to do Each device has a computer inside The computer controls the device But the computer must be given instructions Code tells the computer how to complete each step of its task For example code tells the coffeemaker’s computer what time to start making the coffee 6
Code helps a self-driving car reach its destination Devices that use code can be found in many places People use them at work at school and in their homes Appliances often use code So do devices that people can wear such as smartwatches The devices help people do their jobs and find information Code can even help control vehicles 7