Learn To Be brings free online tutoring students around the United States. Volunteer and gain community service hours while helping students who need it./p>

Quiz: Variable Expressions

The following program draws two boxes, a big one and a small one. The variables big and small keep track of the sizes of the two boxes:
var big = 100;
var small = 10;
rect(100, 100, big, big);
rect(100, 100, small, small);
We want to make small dependent upon big, so that they keep the same proportion when we change them - small should always be 110\dfrac1{10} the size of big. What expression should small store?
Choose 1 answer:
Choose 1 answer: