Skip to main content

Units and currencies

Find an example of how to create a question with units below. See which units and metric prefixes are available.

Example 1: Units

Let us create a basic question with units:

units_statement.png

We need to enable the units and prefixes we want to use in Input options > Input syntax. You can check only those units and prefixes you are interested in or use the All tab.

units_studio.png

Then, we need to generate the random variable, which will be requested to be converted, and the corresponding correct. We'll add a as a basic random variable accordingly, and the correct answer inside the evaluate command.

units_correctanswer.png

Tip

You can see more details regarding how to create random basic variables here.

Finally, you can also select the Match unit of measure validation option to force the student's answer to be expressed in meters.

units_validation.png

Units

Basic units of the SI

Magnitude

Name

Symbol

Length

meter

m

Mass

kilogram

kg

Time

second

s

Electric current

amper

A

Thermodynamic temperature

kelvin

K

Quantity of substance

mol

mol

Luminous intensity

candela

cd

Units derived from SI

Magnitude

Name

Symbol

Plane angle

radian

rad

Solid angle

steradian

sr

Frequency

hertz

Hz

Force

newton

N

Pressure, strain

pascal

Pa

Pressure, strain

atmosphere

atm

Energy, work, quantity of heat

joule

J

Energy

electronvolt

eV

Power, radiant flux

watt

W

Electric potential difference, electromotive force

volt

V

Capacitance

farad

F

Electrical resistance

ohm

Ω\Omega

Electrical charge

coulomb

C

Electrical conductivity

siemens

S

Magnetic flux

weber

Wb

Magnetic flux density

tesla

T

Inductance

henry

H

Luminous flux

lumen

lm

Illuminance

lux

lx

Radioactivity

becquerel

Bq

Absorbed dose

gray

Gy

Equivalent dose

sievert

Sv

Catalytic activity

katal

Kat

Molar concentration

molar

M

Unit of mass

dalton

u

Units from other systems

Magnitude

Name

Symbol

Time

hour

h

Time

minute

min

Volume

liter

l

Pressure, strain

bar

b

Force

kilopond

kp

Length

yard

yd

Length

foot

ft

Length

inch

in

Length

mile

mi

Length

nautical mile

nmi

Volume

gallon

gal

Mass

ounce

oz

Mass

pound

lb

Volume

fluid ounce

floz

Volume

pint

pt

Metric prefixes

See below a list of the currently accepted metric prefixes:

Metric prefixes

Text

Symbol

Factor

Power

exa

E

10000000000000000001000000000000000000

101810^{18}

peta

P

10000000000000001000000000000000

101510^{15}

tera

T

10000000000001000000000000

101210^{12}

giga

G

10000000001000000000

10910^9

mega

M

10000001000000

10610^6

kilo

k

10001000

10310^3

hecto

h

100100

10210^2

deca

da

1010

10110^1

deci

d

0.10.1

10-110^{-1}

centi

c

0.010.01

10-210^{-2}

mili

m

0.0010.001

10-310^{-3}

micro

μ\mu

0.0000010.000001

10-610^{-6}

nano

n

0.0000000010.000000001

10-910^{-9}

pico

p

0.0000000000010.000000000001

10-1210^{-12}

femto

f

0.0000000000000010.000000000000001

10-1510^{-15}

atto

a

0.0000000000000000010.000000000000000001

10-1810^{-18}

Example 2: Currencies

Let us create a basic question with currencies:

currencies_statement.png

As you have seen in the example involving units, you need to enable the currencies in Input options > Input syntax. Notice all currencies can be selected with only one box.

currencies_validation.png

The algorithm is straightforward. Notice that if you want to make an algorithm for a question with currencies, you must use the corresponding CalcMe symbol under the Units of measure tab.

currencies_algorithm.png

To conclude, currencies are similar to physical units, and we have to take into account:

  • You can do basic arithmetic with currencies, unless convert() between them.

  • Students can write the currency symbol at left ($12) or right (34€). Both styles will be graded as correct.

  • Students must type the currency symbol using their keyboard. The toolbar for the answer doesn't have any currency symbols. So please ensure that students have the symbol on their keyboard! Alternatively, provide it in the question wording for them to copy & paste.

Currencies

See below a list of the currently accepted currencies:

Currencies

Symbol

Name

BTC

Bitcoin

$

Dollar

Euro

Fr

Franc

kr

Koruna/Krona/Krone

£

Pound

Ruble

Rupee

Won

¥

Yen/Yuan