Week 4: Arithmetic operators

Small Basic code typing course. 14 wpm, 91% accuracy.

Calculations sit at the heart of most programs. A total, a counter or an average is written with signs such as plus, minus, times and divide. This week you learn six symbols and practice typing each one on the right key. There is one detail to know: the percent sign % is not used as an operator in Small Basic. To find a remainder, you use the Math.Remainder function instead. You will type % this week as a typing drill.

What you will learn

This week has six symbols. On the US English layout:

  • +: = key + Shift, opposite pinky. Right pinky.
  • -: - key, right pinky.
  • *: 8 key + Shift, opposite pinky. Right middle finger.
  • /: / key, right pinky.
  • =: = key, right pinky.
  • %: 5 key + Shift, opposite pinky. Left index finger.

Example:

total = 7 + 5 * 2
remainder = Math.Remainder(17, 5)

The first line stores 17 in total. The second line divides 17 by 5 and stores the remainder, which is 2.

Technique tips

  • Choose each key calmly. Hitting the right key first and gaining speed later works best.
  • Press Shift for + and % with the opposite pinky.
  • The * and - symbols share the same reach area for the right pinky. Stretch out and come back without sliding your whole hand.
  • Spaces make code easier to read, for example total = 7 + 5. Treat each space as a key you must press on purpose.
  • After you write a calculation, print the result and check it. Catching a mistake early saves a lot of time.

Lessons

  1. Lesson 1, 10 to 15 minutes: Learn the six symbols. Watch the keyboard demo and type each symbol three times.
  2. Lesson 2, 10 to 15 minutes: Write short lines that use addition, multiplication and Math.Remainder.
  3. Lesson 3, 10 to 15 minutes: Review what you practiced, then take the 2-minute test.

This week’s goal

The targets are 14 wpm and 91% accuracy. Finishing the lessons earns one star. Reaching 91% accuracy earns the second star. The third star also needs 14 wpm. A wrong symbol changes the whole result, so accuracy comes first.

Symbols this week

The colored keys are the ones you learn this week. The color shows which finger presses the key.

` ~ 1 ! 2 @ 3 # 4 $ 5 % 6 ^ 7 & 8 * 9 ( 0 ) - _ = + Backspace Tab Q W E R T Y U I O P [ { ] } \ | Caps A S D F G H J K L ; : ' " Enter Shift Z X C V B N M , < . > / ? Shift Ctrl Win Alt Alt Gr Win Menu Ctrl

This week’s lessons

Do the lessons in order. Each one ends with a test, and your best result is saved.

  1. Lesson 1: Learn

    New symbols: + - * / = %

    12 minutes

    Start
  2. Lesson 2: Practice

    Practice

    12 minutes

    Start
  3. Lesson 3: Review and test

    Review and test

    12 minutes

    Start

All weeks