(*********************************************************************** Mathematica-Compatible Notebook This notebook can be used on any computer system with Mathematica 4.0, MathReader 4.0, or any compatible application. The data for the notebook starts with the line containing stars above. To get the notebook into a Mathematica-compatible application, do one of the following: * Save the data starting with the line of stars above into a file with a name ending in .nb, then open the file inside the application; * Copy the data starting with the line of stars above to the clipboard, then use the Paste menu command inside the application. Data for notebooks contains only printable 7-bit ASCII and can be sent directly in email or through ftp in text mode. Newlines can be CR, LF or CRLF (Unix, Macintosh or MS-DOS style). NOTE: If you modify the data for this notebook not in a Mathematica- compatible application, you must delete the line below containing the word CacheID, otherwise Mathematica-compatible applications may try to use invalid cache data. For more information on notebooks and Mathematica-compatible applications, contact Wolfram Research: web: http://www.wolfram.com email: info@wolfram.com phone: +1-217-398-0700 (U.S.) Notebook reader applications are available free of charge from Wolfram Research. ***********************************************************************) (*CacheID: 232*) (*NotebookFileLineBreakTest NotebookFileLineBreakTest*) (*NotebookOptionsPosition[ 5101, 210]*) (*NotebookOutlinePosition[ 6193, 244]*) (* CellTagsIndexPosition[ 6149, 240]*) (*WindowFrame->Normal*) Notebook[{ Cell[CellGroupData[{ Cell["Bank num", "Title", TextAlignment->Center], Cell["by AUTHOR", "Subsubtitle", TextAlignment->Center], Cell["\<\ I took most of this from the package Template provided by Roman \ Maeder.\ \>", "SmallText"], Cell["Describe the mathematical content", "Text"], Cell[CellGroupData[{ Cell["Setup and usage messages", "Section", InitializationCell->True], Cell["\<\ I turned off the spell checkers to avoid the error messsages that \ happen as a result of similar variable names. This does not need to be done.\ \ \>", "Text"], Cell[BoxData[ \(\(Off[General::spell];\)\)], "Input", InitializationCell->True], Cell[BoxData[ \(\(Off[General::spell1];\)\)], "Input", InitializationCell->True], Cell[CellGroupData[{ Cell["Set up the package context, including public imports", "Subsection", InitializationCell->True], Cell["The Setup package is needed by all the banks.", "Text"], Cell["\<\ BeginPackage[\"TMKR`Banknum`\", \t\"TMKR`Setup`\"];\ \>", "Input", InitializationCell->True] }, Closed]], Cell[CellGroupData[{ Cell["\<\ Usage messages for the exported functions and the context \ itself\ \>", "Subsection", InitializationCell->True], Cell["\<\ Banknum::usage = \"Banknum.m, description of the content sampled in \ the bank\";\ \>", "Input", InitializationCell->True], Cell["\<\ banknum::usage = \"banknum[]will choose a question at random from \ banknum, banknum[question#] will run question # in banknum, \ banknum[{questionlist}] will choose a number at random from question list and \ run that question from banknum. There are ?? questions.\";\ \>", "Input", InitializationCell->True] }, Closed]] }, Closed]], Cell[CellGroupData[{ Cell["Implementation", "Section", InitializationCell->True], Cell[CellGroupData[{ Cell["Begin the private context", "Subsection"], Cell["Begin[\"`Private`\"];", "Input", InitializationCell->True] }, Closed]], Cell[CellGroupData[{ Cell["Question generators", "Subsection", InitializationCell->True], Cell[CellGroupData[{ Cell[TextData[{ StyleBox["bank", "Input"], "num", StyleBox["[]", "Input"] }], "Subsubsection", InitializationCell->True], Cell["\<\ Here, have the computer choose a random number from the range of \ question numbers available. The 5 here assumes 5 questions\ \>", "Text"], Cell["banknum[] := banknum[Random[Integer, {1,5}]];", "Input", InitializationCell->True], Cell[BoxData[ \(\(SetAttributes[banknum, \ Listable];\)\)], "Input", InitializationCell->True] }, Closed]], Cell[CellGroupData[{ Cell["banknum[1]", "Subsubsection"], Cell["\<\ Insert question here, be sure to change the cell to an \ initialization cell...\ \>", "Text"] }, Closed]], Cell[CellGroupData[{ Cell["banknum[2]", "Subsubsection"], Cell["\<\ Insert question here, be sure to change the cell to an \ initialization cell...\ \>", "Text"], Cell["etc.", "Text"] }, Closed]] }, Closed]], Cell[CellGroupData[{ Cell["End the private context", "Subsection", InitializationCell->True], Cell["End[ ];", "Input", InitializationCell->True] }, Closed]] }, Closed]], Cell[CellGroupData[{ Cell["Finish things off", "Section", InitializationCell->True], Cell[CellGroupData[{ Cell["End the package context", "Subsection", InitializationCell->True], Cell["EndPackage[ ];", "Input", InitializationCell->True] }, Closed]] }, Closed]] }, Closed]] }, FrontEndVersion->"4.0 for Macintosh", ScreenRectangle->{{0, 1024}, {0, 748}}, AutoGeneratedPackage->Automatic, ScreenStyleEnvironment->"Presentation", CellGrouping->Automatic, WindowSize->{992, 644}, WindowMargins->{{Automatic, 5}, {Automatic, 2}}, PrivateNotebookOptions->{"ColorPalette"->{RGBColor, 128}}, ShowCellLabel->True, RenderingOptions->{"ObjectDithering"->True, "RasterDithering"->False}, MacintoshSystemPageSetup->"\<\ 02P0001804P000000^L2D_ogooL33`9K8085:0?l0000002d0;@000001d45c@2l 0385cBBh02H00@4100000BL?00400@000000000000000000000000000040I0<0 0000000000009BT84@002000000eBf4P\>" ] (*********************************************************************** Cached data follows. If you edit this Notebook file directly, not using Mathematica, you must remove the line containing CacheID at the top of the file. The cache data will then be recreated when you save this file from within Mathematica. ***********************************************************************) (*CellTagsOutline CellTagsIndex->{} *) (*CellTagsIndex CellTagsIndex->{} *) (*NotebookFileOutline Notebook[{ Cell[CellGroupData[{ Cell[1739, 51, 50, 1, 104, "Title"], Cell[1792, 54, 57, 1, 68, "Subsubtitle"], Cell[1852, 57, 102, 3, 46, "SmallText"], Cell[1957, 62, 49, 0, 42, "Text"], Cell[CellGroupData[{ Cell[2031, 66, 71, 1, 72, "Section", InitializationCell->True], Cell[2105, 69, 171, 4, 42, "Text"], Cell[2279, 75, 85, 2, 36, "Input", InitializationCell->True], Cell[2367, 79, 86, 2, 36, "Input", InitializationCell->True], Cell[CellGroupData[{ Cell[2478, 85, 102, 1, 65, "Subsection", InitializationCell->True], Cell[2583, 88, 61, 0, 42, "Text"], Cell[2647, 90, 104, 4, 50, "Input", InitializationCell->True] }, Closed]], Cell[CellGroupData[{ Cell[2788, 99, 124, 4, 65, "Subsection", InitializationCell->True], Cell[2915, 105, 134, 4, 34, "Input", InitializationCell->True], Cell[3052, 111, 321, 6, 82, "Input", InitializationCell->True] }, Closed]] }, Closed]], Cell[CellGroupData[{ Cell[3422, 123, 61, 1, 72, "Section", InitializationCell->True], Cell[CellGroupData[{ Cell[3508, 128, 47, 0, 65, "Subsection"], Cell[3558, 130, 66, 1, 34, "Input", InitializationCell->True] }, Closed]], Cell[CellGroupData[{ Cell[3661, 136, 69, 1, 65, "Subsection", InitializationCell->True], Cell[CellGroupData[{ Cell[3755, 141, 128, 5, 58, "Subsubsection", InitializationCell->True], Cell[3886, 148, 150, 3, 42, "Text"], Cell[4039, 153, 90, 1, 34, "Input", InitializationCell->True], Cell[4132, 156, 100, 2, 36, "Input", InitializationCell->True] }, Closed]], Cell[CellGroupData[{ Cell[4269, 163, 35, 0, 58, "Subsubsection"], Cell[4307, 165, 103, 3, 42, "Text"] }, Closed]], Cell[CellGroupData[{ Cell[4447, 173, 35, 0, 58, "Subsubsection"], Cell[4485, 175, 103, 3, 42, "Text"], Cell[4591, 180, 20, 0, 42, "Text"] }, Closed]] }, Closed]], Cell[CellGroupData[{ Cell[4660, 186, 73, 1, 65, "Subsection", InitializationCell->True], Cell[4736, 189, 52, 1, 34, "Input", InitializationCell->True] }, Closed]] }, Closed]], Cell[CellGroupData[{ Cell[4837, 196, 64, 1, 72, "Section", InitializationCell->True], Cell[CellGroupData[{ Cell[4926, 201, 73, 1, 65, "Subsection", InitializationCell->True], Cell[5002, 204, 59, 1, 34, "Input", InitializationCell->True] }, Closed]] }, Closed]] }, Closed]] } ] *) (*********************************************************************** End of Mathematica Notebook file. ***********************************************************************)