|
| I have revised my lesson plan. Only those of you who are already well versed in JavaScript should start here! All others should start at: Free Tutorial - JavaScript Scientific Programming Procedure
for making text programs Run as code. Step 2 - Save file again as a text file. Name file " Page1A.htm " . The file extension ".htm" tells browser that this file is a Web Page. Step 3 - Close Notepad (text editor). Step 4 - Locate file " Page1A.htm ". Right click " Page1A.htm " file. Select open with. Select " Internet Explorer Browser." At this point you should see a running program. The file ext "htm" tells the Browser this file contains a Web Page. The "<HTML>" tag " <Script Lanquage = JavaScript> " tag tells the browser to start interpreting text as a Script program. The result of running program should be .3333333. Notes //indicates an optional comment field. Copy text below from HTML tag to HTML tag. <HTML> Copy text above from HTML tag to HTML tag.
Procedure for editing programs. ( Change Data) Step 1 - Open file "Text1A" with Notepad. Modify data by making R1 = 2 ( varR1=2). Step 2 - Save modified file as text with file name "Text1B". Then Save as text again with file name " Text1B.htm". Step 3 - Close Notepad ( Text Editor ). Step 4 - Locate file " Page1B.htm ". Right click " Page1A.htm " file. Select open with. Select " Internet Explorer Browser." At this point you should see a running program. Step 5 - Run Program and note results. Highlight text in text box and copy ( Control C key). Step 6 - Open Text1B with Notepad and paste results at bottom of page. You now have documented the results, data, and method used to solve a problem. You can file, print or merge this text into another document.
Procedure for editing programs. (Change Formula) Step 1 - Open file "Text1A" with Notepad. Modify data by making adding variable R4 and assigning a value of 10 to it. ( varR4=10). Simply add line of text "varR4 = 10 below line " varR3 = 1" Step 2 - Modify Math General Function to calculate resistance of four resisters in parallel. Modify line of code reading " recipRt = 1/R1 + 1/R2 + 1/R3;" to read " recipRt = 1/R1 + 1/R2 + 1/R3 + 1/R4; " . Step 2 - Save modified file as text with file name "Text2A". Then Save as text again with file name " Text2A.htm". Step 3 - Close Notepad ( Text Editor ). Step 4 - Locate file " Page2A.htm ". Right click " Page1A.htm " file. Select Open With. Select " Internet Explorer Browser." At this point you should see a running program. Step 5 - Run Program (Click Run) and note results. Highlight text in text box and copy ( Control C key). Step 6 - Open Text1A file with Notepad and paste results at bottom of page. You now have documented the results, data, and method used to solve a problem. You can file, print or merge this text into another document. At this point you may realize that you can substitute almost any formula you want into the function mathgeneral. You have also learned how to use notepad and Internet Explorer as a Software Development system. Continue on to lessons in left column.
Please email Bill with any questions or problems at BilPat4342@AOL.com
Next: Go to substitute functions.
|
|
|