nivo_title=het 60-tallige getallenstelsel
pijl=<img src=" $module_dir/gifs/rightarrow.gif ">
n=$teller
latex=0
hint=<small>Gebruik voor het noteren de "komma-notatie"<br>\
Dus <b>1437<sub>t</sub> = 23,57<sub>s</sub></b> <br>\
Jij mag hiervoor <b>23,57</b> invullen (dus zonder <sub>s</sub>)</small>


bewerking=bewerking3.proc    

    !if $teller=1
	getal$n=!randint 660,1200
	GOED$n=!exec float_calc ibase=10\
	obase=60\
	$(getal$n) 
	
	GOED$n=!words2items $(GOED$n)
	antwoord$n=<font size="+1"><b>$(getal$n)<sub>t</sub>  $pijl  $(GOED$n)<sub>s</sub></b></font>
	somtekst$n=Gegeven het <b>decimale</b> getal $(getal$n)<br> ofwel <b>$(getal$n)<sub>t</sub></b> <br>Zet dit getal om naar het <b>Zestig</b>tallig-stelsel<br>
     !exit
    !endif
    
    !if $teller=2	
	GOED$n=!randint 660,3600
	getal$n=!exec float_calc ibase=10\
	obase=60\
	$(GOED$n)
	
    	getal$n=!words2items $(getal$n)
	antwoord$n=<font size="+1"><b>$(getal$n)<sub>s</sub>  $pijl  $(GOED$n)<sub>t</sub></b></font>
	somtekst$n=Gegeven het <b>Zestig</b>-tallige getal <b>$(getal$n)</b> <br>ofwel <b>$(getal$n)<sub>s</sub></b> <br>\
	Zet dit getal om naar het <b>tientallige</b>-stelsel.
     !exit
    !endif

    !if $teller=3
	A$n=!randint 660,1200
	B$n=!randint 660,1200
	GOED$n=$[$(A$n)+$(B$n)]
	
	A$n=!exec float_calc ibase=10\
	obase=60\
	$(A$n)
	
	B$n=!exec float_calc ibase=10\
	obase=60\
	$(B$n)
	
	A$n=!words2items $(A$n)
	B$n=!words2items $(B$n)
	
	antwoord$n=<font size="+1"><b>$(A$n)<sub>s</sub>+$(B$n)<sub>s</sub>  $pijl  $(GOED$n)<sub>t</sub></b></font>
	somtekst$n=Bereken deze <b>Zestig</b>-tallige som:<br>\
	<b>$(A$n)<sub>s</sub>+$(B$n)<sub>s</sub></b><br>\
	Geef je antwoord in het <b>tientallige</b>-stelsel
     !exit
    !endif

    !if $teller=4
	aaa=!randint 660,1200
	bbb=!randint 660,1200
	pm=!randitem +,-
	
	!if $aaa>$bbb 
	    A$n=$aaa
	    B$n=$bbb
	!else
	    A$n=$bbb
	    B$n=$aaa
	!endif
	
	GOED$n=$[$(A$n) $pm $(B$n)]
	
	A$n=!exec float_calc scale=5 \
	ibase=10\
	obase=60\
	$(A$n)
	
	B$n=!exec float_calc scale=5 \
	ibase=10\
	obase=60\
	$(B$n) 
	
	GOED$n=!exec float_calc scale=5 \
	ibase=10\
	obase=60\
	$(GOED$n) 

	A$n=!words2items $(A$n)
	B$n=!words2items $(B$n)
	GOED$n=!words2items $(GOED$n)
    	antwoord$n=<font size="+1"><b>$(A$n)<sub>s</sub> $pm $(B$n)<sub>s</sub>  $pijl  $(GOED$n)<sub>s</sub></b></font>
	somtekst$n=Bereken de volgende <b>Zestig</b>-tallige som<br>\
	<b>$(A$n)<sub>s</sub> $pm $(B$n)<sub>s</sub></b><br>\
	Geef je antwoord <b>ook</b> in het <b>zestig<b>-tallige stelsel.
     !exit
    !endif
    
    !if $teller>4
	A$n=!randint 66,660
	B$n=!randint 66,660
	GOED$n=$[$(A$n)*$(B$n)]
	
	A$n=!exec float_calc scale=5 \
	ibase=10\
	obase=60\
	$(A$n)
	
	B$n=!exec float_calc scale=5 \
	ibase=10\
	obase=60\
	$(B$n)
	
	GOED$n=!exec float_calc scale=5 \
	ibase=10\
	obase=60\
	$(GOED$n)
	
	A$n=!words2items $(A$n)
	B$n=!words2items $(B$n)
	GOED$n=!words2items $(GOED$n)
	antwoord$n=<font size="+1"><b>$(A$n)<sub>s</sub> &times; $(B$n)<sub>s</sub>  $pijl  $(GOED$n)<sub>s</sub></b></font>
	somtekst$n=Bereken de volgende Zestallige som<br>\
	<b>$(A$n)<sub>s</sub> &times; $(B$n)<sub>s</sub></b><br>\
	Geef je antwoord <b>ook</b> in het <b>zestig</b>-tallige stelsel.
     !exit
    !endif




