# wetenschappelijk grote/kleine getallen
n=$counter
XSIZE=600
helptext=$empty
exotext=$empty
textanswer$n=$empty
formula$n=$empty
mathview=0
inputs=1
image=0
math=0
cols=35
rows=1
questiontype=7
arglist=$empty
varlist=$empty
javascript=js/exo6.js
checkfile=exos/checkfile3.proc
!if $level=0
    R=$counter
!else
    R=$level
!endif
sometext=!record 32 of lang/remarks.$taal

!if $R=1
    keuze=!randitem 1,2,3,4
    !if $keuze=1
	A=!randint 1,9
	f1=1
	f2=0
	!goto KLAAR
    !endif
    !if $keuze=2
	a1=!randint 0,9
	a2=!randint 1,9
	A=$[$a1.$a2]
	f1=1
	f2=0
	!goto KLAAR
    !endif
    !if $keuze=3
	a1=!randint 0,9
	a2=!randint 0,9
	a3=!randint 1,9
	A=$[$a1.$a2$a3]
	f1=1
	f2=0
	!goto KLAAR
    !endif
    !if $keuze=4
	a1=!randint 0,9
	a2=!randint 0,9
	a3=!randint 0,9
	a4=!randint 1,9
	A=$[$a1.$a2$a3$a4]
	f1=1
	f2=0
	!goto KLAAR
    !endif
!endif

!if $R=2
    a1=!randint 0,9
    a2=!randint 0,9
    a3=!randint 0,9
    a4=!randint 1,9
    keuze=!randitem 1,2,3
    !if $keuze=1
	A=$[$a1.$a2$a3$a4]
	f1=1
	f2=0
	!goto KLAAR
    !endif
    !if $keuze=2
	A=$[$a1$a2.$a3$a4]
	f1=10
	f2=1
	!goto KLAAR
    !endif
    !if $keuze=3
	A=$[$a1$a2$a3.$a4]
	f1=100
	f2=2
	!goto KLAAR
    !endif
!endif
!if $R>2
    a1=!randint 0,9
    a2=!randint 0,9
    a3=!randint 0,9
    a4=!randint 0,9
    a5=!randint 1,9
    keuze=!randitem 1,2,3,4
    !if $keuze=1
	A=$[$a1.$a2$a3$a4$a5]
	f1=1
	f2=0
	!goto KLAAR
    !endif
    !if $keuze=2
	A=$[$a1$a2.$a3$a4$a5]
	f1=10
	f2=1
	!goto KLAAR
    !endif
    !if $keuze=3
	A=$[$a1$a2$a3.$a4$a5]
	f1=100
	f2=2
	!goto KLAAR
    !endif
    !if $keuze=4
	A=$[$a1$a2$a3$a4.$a5]
	f1=1000
	f2=3
	!goto KLAAR
    !endif
!endif
:KLAAR
anders=!randitem 0,1
!if $anders=0
keuze=!randint 1,6
opslag=10<sup>18</sup>,10^18,exa,EB,18,"internetfarm" harddisk(RAID)\
10<sup>15</sup>,10^15,peta,PB,15,server harddisk [RAID]\
10<sup>12</sup>,10^12,tera,TB,12,backup tape-streamer\
10<sup>9</sup>,10^9,giga,GB,9,harddisk\
10<sup>6</sup>,10^6,mega,mB,6,usbstick\
10<sup>3</sup>,10^3,kilo,kB,3,floppydisk
!else
keuze=!randint 1,6
opslag=10<sup>-1</sup>, 10^-1, decimeter,d,-1,deci\
10<sup>-2</sup>,10^-2,centimeter,c,-2,centi\
10<sup>-3</sup>,10^-3,millimeter,m,-3,milli\
10<sup>-6</sup>,10^-6,micrometer,&mu;,-6,micro\
10<sup>-9</sup>,10^-9,nanometer,n,-9,nano\
10<sup>-12</sup>,10^-12,picometer,p,-12,pico\
10<sup>-15</sup>,10^-15,femtometer,f,-15,femto

#10<sup>-18</sup>,10^-18,atto,a 
!endif

F=!line $keuze of $opslag
F1=!item 1 of $F
F2=!item 2 of $F
F3=!item 3 of $F
F4=!item 4 of $F
F5=!item 5 of $F
F6=!item 6 of $F

!if $anders=0
    answer$n=$[$A/$f1]*10^$[$f2+($F5)]
    B=!htmlmath $(answer$n)
    ss=!record 31 of lang/remarks.$taal
    #@Een $F heeft een capaciteit van $A $F4  ($F3 bytes)<br>Scrijf dit als een "normaal" decimaal getal.
    rr=!record 34 of lang/remarks.$taal
    #@Het SI voorvoegsel $F3 betekend $F1 bytes<br>$A $F4 == $A $F3 bytes en is dus in wetenschappelijke notatie:$B bytes
!else
    A=$[$A/10000]
    answer$n=$[10000*$A/$f1]*10^$[$f2+($F5)-4]
    B=!htmlmath $(answer$n)
    ss=!record 35 of lang/remarks.$taal
    #@Hoeveel <em>meter</em> is <b>$A $F3</b> ? <br>Geef je antwoord in wetenschappelijke notatie.
    rr=!record 36 of lang/remarks.$taal
    #@Het SI voorvoegsel $F6 betekend $F1 <br>$A $F3 == $A * $F1 meter<br> en is dus in wetenschappelijke notatie: <b>$B meter</b>
!endif

question$n=<a onmouseover="return escape('$sometext')"> $ss </a>
textanswer$n=$rr
!exit
