home *** CD-ROM | disk | FTP | other *** search
Helm Multimedia Book | 1995-07-10 | 35.7 KB | 676 lines |
- MathBook
- Scott Nickerson
- 08-22-93
- on BookOpen
- begin
- global index, quiz
- put "Today's assignment: (1) Practice Math, (2) Take Quiz" into
- textfield "Display"
- put 3 into selector "Skills"
- put ten into index
- put false into quiz
- NewProblem()
- NewProblem
- begin
- global theSign, division
- put false into division
- put 0 into b
- while b = 0 begin
- put 1 + random(3) into i
- put bit i of selector "Skills" into b
- end
- switch i
- case 1
- put "+" into textfield "Sign"
- put "+" into theSign
- put " " into textfield "Sign2"
- break
- case 2
- put "-" into textfield "Sign"
- put "-" into theSign
- put " " into textfield "Sign2"
- break
- case 3
- put "," into textfield "Sign"
- put "x" into theSign
- put " " into textfield "Sign2"
- break
- case 4
- put true into division
- put empty into theSign
- put empty into textfield "Sign"
- put "." into textfield "Sign2"
- break
- put random(9) into Q1
- put random(9) into Q2
- if theSign is "-" and Q1 < Q2 then put Q2 + random(2) into Q1
- if division is true begin
- put empty into textfield "Q1"
- put Q1 * random(5) into Q2
- if Q1 = 0 then put 1 into Q1
- put Q1 into textfield "A1"
- put Q2 into textfield "Q2"
- put emtpy into textfield "A2"
- end
- else begin
- put Q1 into textfield "Q1"
- put empty into textfield "A2"
- put empty into textfield "A1"
- put Q2 into textfield "Q2"
- end
- NumInsert theNum
- begin
- global division
- if division is true begin
- get textfield "A2"
- if the number of characters of it < 2
- if it is empty or it is not zero put theNum after textfield "A2"
- end
- else begin
- get textfield "A1"
- if the number of characters of it < 2
- if it is empty or it is not zero put theNum after textfield "A1"
- end
- NumInsert
- NewProblem
- index
- Today's assignment: (1) Practice Math, (2) Take Quiz
- Display
- Skills
- NewProblem
- : PPPS
- theSign
- / division
- Skills
- Sign2
- Sign2
- Sign2
- Sign2
- / division
- `&5<PS
- `&5<PS
- New...
- Open...
- Make Copy...
- Streamline...
- Preferences...
- Workbench
- Help...
- About...
- Quit...
- Paste
- Clear
- Select All
- Cut Page
- Copy Page
- Colors
- Load...
- Save...
- Restore Colors
- Default Colors
- Brush Colors
- Image Colors
- Last Color Font
- Cycle
- Grid...
- Stop Sound
- Show All
- Unlock All
- Edit Form
- Share
- Next Page
- Previous Page
- First Page
- Last Page
- Backward
- Forward
- Last Book
- Browse...
- Autobrowse...
- Bookshelf
- New Page
- Delete Page
- New Form
- Load Form...
- Save Form...
- Image
- Load...
- Save...
- Capture...
- Clipboard
- Paste
- Spare
- Swap Frames
- Copy to Spare
- Merge in Front
- Merge in Back
- Delete Spare
- Frame
- Previous
- Delete
- Copy to All
- Color
- Remap
- Transparency
- Paper <-> Pen
- Paper -> Pen
- Count
- Vertical
- Horizontal
- Info...
- Brush
- Load...
- Save...
- Restore
- Clipboard
- Paste
- Color
- Remap
- Transparency
- Paper <-> Pen
- Paper -> Pen
- Center
- Corner
- Any Point
- Any Size
- Halve
- Double
- Halve Width
- Halve Height
- Double Width
- Double Height
- To PAL
- To NTSC
- Vertical
- Horizontal
- Shear
- Vertical
- Horizontal
- Rotate
- Any Angle
- Paint
- Matte
- Color
- Replace
- Smear
- Dissolve
- Spare
- Cycle
- Cycle 2
- Gradient
- Gradient 2
- Smudge
- Chaos
- Count
- Custom
- Dither
- Edges
- Object
- Load...
- Save...
- Bring to Front
- Send to Back
- Bring Closer
- Send Farther
- Group
- Ungroup
- Duplicate...
- Align...
- Info...
- Actions...
- Script...
- Load...
- Save...
- Plain
- Underline
- Italic
- Shadow
- Font...
- Spacing...
- Hypertext
- Actions...
- Script...
- Tools
- Coordinates
- Title Bar
- Palette
- Colors
- Patterns
- Paint Tools
- Paint Types
- Histogram
- Magnifier
- Messages
- Draw Tools
- Layers
- Pages
- Author
- Book...
- Form...
- Page...
- Display...
- Narrator...
- Hypertext...
- Resources...
- Effect...
- Effect Area
- fdf`V
- Avant-Bold15
- Math40
- topaz.font
- 24GLOB
- work:books/Chicago23
- ram:Testbook
- Ram Disk:Brown.colors
- /MathBook.bkp
- &Quiz finished! You got 100%. Good job.
- MathBook V1.0
- (29-Dec-93)
- by Eagle Tree Software
- QHelp drill your children in basic arithmetic with this book. Click on 'Take Quiz'
- Qto take a ten problem quiz, or click on 'Practice' to try a single problem. Enter
- Qan answer with the blue keys; then click 'OK' or press the Enter key to check the
- Gresult. Problems are created randomly. The problem types that Helm will
- Iuse are checked in the lower left checkbox selector. Notice that division
- *problems are displayed in fractional form.
- @C Clear
- @($43)OK
- @T Take Quiz
- Skills
- @P Practice
- @Q Quit
- @I Information
- @B Bookshelf
- Smile
- Display
- Sign2
- ~@EExit
- %on SelectUp
- begin
- NumInsert(7)
- NumInsert
- %on SelectUp
- begin
- NumInsert(8)
- NumInsert
- %on SelectUp
- begin
- NumInsert(9)
- NumInsert
- %on SelectUp
- begin
- NumInsert(4)
- NumInsert
- %on SelectUp
- begin
- NumInsert(5)
- NumInsert
- 'on SelectUp
- begin
- NumInsert(6)
- NumInsert
- %on SelectUp
- begin
- NumInsert(1)
- NumInsert
- %on SelectUp
- begin
- NumInsert(2)
- NumInsert
- %on SelectUp
- begin
- NumInsert(3)
- NumInsert
- %on SelectUp
- begin
- NumInsert(0)
- NumInsert
- on SelectUp
- begin
- global division
- if division is true put empty into textfield "A2"
- else put empty into textfield "A1"
- / division
- on SelectUp
- begin
- global index, quiz, correct, theSign, division
- put false into isOK
- if theSign is "+" then
- if (textfield "Q1") + (textfield "Q2") = textfield "A1"
- put true into isOk
- if theSign is "-" then
- if (textfield "Q1") - (textfield "Q2") = textfield "A1"
- put true into isOk
- if theSign is "x" then
- if (textfield "Q1") * (textfield "Q2") = textfield "A1"
- put true into isOk
- if division is true then
- if (textfield "Q2") / (textfield "A1") = textfield "A2"
- put true into isOk
- if isOk is true
- begin
- play notes "c7:ex d e f g a g f e d c"
- click on imagefield "Smile"
- add one to correct
- end
- else begin
- if division put empty into textfield "A2"
- else put empty into textfield "A1"
- play notes "c#2q"
- end
- if the index is ten begin
- if quiz is true begin
- put trunc(100 * (correct / 10.0)) into score
- put "Quiz finished! You got " & score & "%. " into textfield "Display"
- if score < 70 put "See me after class." after textfield "Display"
- else put "Good job." after textfield "Display"
- put false into quiz
- put 165 into n
- for i = 1 to 72 begin
- play notes 60 + random(30)
- delay 1
- set the hsv of 5 to n, 242, 119
- add 5 to n
- if n >= 360 n = 0
- play notes "r"
- set the rgb8 of 5 to 5, 117, 89
- end
- else begin
- add one to the index
- NewProblem()
- end
- index
- correct
- theSign
- / division
- c7:ex d e f g a g f e d c
- Smile
- Quiz finished! You got
- Display
- FSee me after class.
- Display
- Good job.
- Display
- YNewProblem
- on SelectUp
- begin
- global index, quiz, correct
- if selector "Skills" is zero then put one into selector "Skills"
- NewProblem()
- put one into index
- put true into quiz
- put zero into correct
- put "Be quiet!!! Take Quiz." into textfield "Display"
- index
- correct
- Skills
- Skills
- NewProblem
- Be quiet!!! Take Quiz.
- Display
- @AAddition
- @SSubtraction
- @MMultiplication
- @DDivision
- on SelectUp
- begin
- global index, quiz
- if selector "Skills" is zero then put one into selector "Skills"
- NewProblem()
- put ten into index
- put false into quiz
- put "Try one problem at a time." into textfield "Display"
- index
- Skills
- Skills
- NewProblem
- Try one problem at a time.
- Display
- non SelectUp
- begin
- answer "\nDrop out of MathBook?\n" with "@NNo" or "~@YYes"
- if it is "Yes" then quit
- Drop out of MathBook?
- ~@YYes
- on SelectUp
- begin
- set the pointer to 6
- lock display
- set the visibility of layer "Info" to true
- set the lock of layer "P1" to true
- unlock display with wipe down
- set the pointer to 0
- on SelectUp
- begin
- put "Class Dismissed. See you tomorrow." into textfield "Display"
- delay 5
- go to the book "Bookshelf"
- Class Dismissed. See you tomorrow.
- Display
- Bookshelf
- on SelectUp
- begin
- set the pointer to 6
- lock display
- set the visibility of layer "Info" to false
- set the lock of layer "P1" to false
- unlock display with wipe down
- set the pointer to 0
- ANIMFORM
- ILBMBMHD
- @DPAN
- wwfUCRNG
- ILBMANHD
- ILBMANHD
- ILBMANHD
- ILBMANHD
- ILBMANHD
- ggggggg
- <xxxy
- xxxxxxxxxxxx{0
- xxxxxx
- <xxxy
- xxxxxxxx
- xxxxxx
- <xxxx
- xxxxxxxx
- xxxxxx
- <xxxx6
- xxxxxxx
- xxxxxx
- gggggg
- Name
- 4Today's assignment: (1) Practice Math, (2) Take Quiz
- MathBook V1.0
- (29-Dec-93)
- by Eagle Tree Software
- QHelp drill your children in basic arithmetic with this book. Click on 'Take Quiz'
- Qto take a ten problem quiz, or click on 'Practice' to try a single problem. Enter
- Qan answer with the blue keys; then click 'OK' or press the Enter key to check the
- Gresult. Problems are created randomly. The problem types that Helm will
- Iuse are checked in the lower left checkbox selector. Notice that division
- *problems are displayed in fractional form.
- @C Clear
- @($43)OK
- @T Take Quiz
- Skills
- @P Practice
- @Q Quit
- @I Information
- @B Bookshelf
- Smile
- Display
- Sign2
- ~@EExit
- %on SelectUp
- begin
- NumInsert(7)
- NumInsert
- %on SelectUp
- begin
- NumInsert(8)
- NumInsert
- %on SelectUp
- begin
- NumInsert(9)
- NumInsert
- %on SelectUp
- begin
- NumInsert(4)
- NumInsert
- %on SelectUp
- begin
- NumInsert(5)
- NumInsert
- 'on SelectUp
- begin
- NumInsert(6)
- NumInsert
- %on SelectUp
- begin
- NumInsert(1)
- NumInsert
- %on SelectUp
- begin
- NumInsert(2)
- NumInsert
- %on SelectUp
- begin
- NumInsert(3)
- NumInsert
- %on SelectUp
- begin
- NumInsert(0)
- NumInsert
- on SelectUp
- begin
- global division
- if division is true put empty into textfield "A2"
- else put empty into textfield "A1"
- / division
- on SelectUp
- begin
- global index, quiz, correct, theSign, division
- put false into isOK
- if theSign is "+" then
- if (textfield "Q1") + (textfield "Q2") = textfield "A1"
- put true into isOk
- if theSign is "-" then
- if (textfield "Q1") - (textfield "Q2") = textfield "A1"
- put true into isOk
- if theSign is "x" then
- if (textfield "Q1") * (textfield "Q2") = textfield "A1"
- put true into isOk
- if division is true then
- if (textfield "Q2") / (textfield "A1") = textfield "A2"
- put true into isOk
- if isOk is true
- begin
- play notes "c7:ex d e f g a g f e d c"
- click on imagefield "Smile"
- add one to correct
- end
- else begin
- if division put empty into textfield "A2"
- else put empty into textfield "A1"
- play notes "c#2q"
- end
- if the index is ten begin
- if quiz is true begin
- put trunc(100 * (correct / 10.0)) into score
- put "Quiz finished! You got " & score & "%. " into textfield "Display"
- if score < 70 put "See me after class." after textfield "Display"
- else put "Good job." after textfield "Display"
- put false into quiz
- put 165 into n
- for i = 1 to 72 begin
- play notes 60 + random(30)
- delay 1
- set the hsv of 5 to n, 242, 119
- add 5 to n
- if n >= 360 n = 0
- play notes "r"
- set the rgb8 of 5 to 5, 117, 89
- end
- else begin
- add one to the index
- NewProblem()
- end
- index
- correct
- theSign
- / division
- c7:ex d e f g a g f e d c
- Smile
- Quiz finished! You got
- Display
- FSee me after class.
- Display
- Good job.
- Display
- YNewProblem
- on SelectUp
- begin
- global index, quiz, correct
- if selector "Skills" is zero then put one into selector "Skills"
- NewProblem()
- put one into index
- put true into quiz
- put zero into correct
- put "Be quiet!!! Take Quiz." into textfield "Display"
- index
- correct
- Skills
- Skills
- NewProblem
- Be quiet!!! Take Quiz.
- Display
- @AAddition
- @SSubtraction
- @MMultiplication
- @DDivision
- on SelectUp
- begin
- global index, quiz
- if selector "Skills" is zero then put one into selector "Skills"
- NewProblem()
- put ten into index
- put false into quiz
- put "Try one problem at a time." into textfield "Display"
- index
- Skills
- Skills
- NewProblem
- Try one problem at a time.
- Display
- non SelectUp
- begin
- answer "\nDrop out of MathBook?\n" with "@NNo" or "~@YYes"
- if it is "Yes" then quit
- Drop out of MathBook?
- ~@YYes
- on SelectUp
- begin
- set the pointer to 6
- lock display
- set the visibility of layer "Info" to true
- set the lock of layer "P1" to true
- unlock display with wipe down
- set the pointer to 0
- on SelectUp
- begin
- put "Class Dismissed. See you tomorrow." into textfield "Display"
- delay 5
- go to the book "Bookshelf"
- Class Dismissed. See you tomorrow.
- Display
- Bookshelf
- on SelectUp
- begin
- set the pointer to 6
- lock display
- set the visibility of layer "Info" to false
- set the lock of layer "P1" to false
- unlock display with wipe down
- set the pointer to 0
-