
































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

































(so 2 + 5 yields 7).
written as: Put item to out- put.
tent to another human reading the program.
icated function such as a cottee maker or washing machine
In 2012, there were 350 million desktops and lap- tops, compared to 17 bil- lion embedded comput- ers shipped.
"If-else" statements. When used in English, the result is logical, unam- biguous info. Some call this "computational think- ing".
10 can mean the ditter- ence between correct out- put and a program out- putting garbage.
means "the item on the left always equals the item on the right". So for x + y = 5 and x * y = 6, one can determine x = 2 and y = 3 or vice versa.
letter falls in
numApples = 8 assigns numApples with the value of the right-side expres- sion (in this case 8).
Commonly, a variable ap- pears on both the right and left side of the = op- erator. Ex: If numItems is 5, after numItems = nu- mItems + 1 executes, nu- mItems will be 6. The statement reads the val- ue of numItems (5), adds 1, and assigns numItems with the result of 6, which replaces the value previ- ously held in numItems
So numCats and NumCats are ditterent.
make subsequent statements too long and thus hard to read.