17.01.2013 Views

AmstradCPC6128-hypertext-en-Sinewalker

AmstradCPC6128-hypertext-en-Sinewalker

AmstradCPC6128-hypertext-en-Sinewalker

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Mixed Calculations<br />

(+,-,*,/)<br />

Mixed calculations are understood by the computer, but they are calculated within<br />

certain priorities.<br />

First priority is giv<strong>en</strong> to multiplication and division, th<strong>en</strong> addition and subtraction.<br />

These priorities apply only to calculations containing only these four operations.·<br />

If the calculation was:<br />

3+7-2*7/4<br />

You may think this would be calculated as:<br />

3+7-2 *7 14<br />

= 8 *7 14<br />

= 56/4<br />

= 14<br />

In fact it is calculated as:<br />

3+7-2*7/4<br />

=3+7-14/4<br />

=3+7-3.5<br />

=10-3.5<br />

=6.5<br />

Prove this by typing in this calculation as it is writt<strong>en</strong>:<br />

Type:<br />

? 3 + 7 - 2 * 7 1 4 [RETURN]<br />

6.5<br />

You can change the way the computer calculated this by adding brackets. The<br />

computer will deal with the calculation inside brackets prior to the multiplication<br />

etc, outside the brackets. Prove this by typing in the calculation including brackets.<br />

Type:<br />

? (3+7-2) *714 [RETURN]<br />

14<br />

Chapter 1 Page 36 Foundation Course

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!