|
Spring Semester 2005 |
Also, please make sure you
the Computer Science Department's Statement on Academic Integrity before turning in your assignment.
Choose one of the tasks outlined below:
Provide
yet another stage in your Semester Project development.
Take the TWP
Registration System and extend it (finish it, make it your own).
Provide one
extra implementation of the Midterm Exam.
Determine
what the following two programs are doing and fix them (make them do that).
Second part first:
First part last:<? session_start(); ?> <____><____><_____>________ ____ ____ Two (using sessions)</_____></____><____> <? __ (________) _ if ($age == $ageCopy) { $age += 1; __ ((_________) _ _ __ ___________) { ________ _ ___________ __________ __ __ _ ____ __ ((___________ _ _) _ _ __ _____) { ________ _ ____________ __________ __ __ _ ____ _ ________ _ _________________ _ ___________ _ ___________ } else { $message = "You can't reload. "; } _ ____ _ session_register("message"); session_register("age"); session_register("compScore"); session_register("userScore"); session_register("compChoice"); $message = "Welcome."; $compScore = 0; $userScore = 0; $compChoice = rand(0, 2) ; $age = 0; _ __ <____> <? ____ _________ ?> <_> ___ ________ ___ ______: <?=___________?>, ___ __'_ ____ ____. <_> <_____ ______><__><__> ________ <__> ____ <__><__> <?=__________?> <__> <?=__________?> </_____> <_> ____: <______ ____=______> <______ _____=___> _____ <______ _____=___> ____ <______ _____=___> ________ </______> <_> ____ ________ ______ _____ <_____ ____="______" _____="_______"> <_> <input type="hidden" name="ageCopy" value="<?=$age?>"> </____> </____></____>
<html><head><title>Homework ____ Part One (______ ______)</title></head><____> __ __ ($mess___) { if (($____ + _) % 3 == $c____hoice) { $mess___ = "You ____"; $us___core __ 1; } ____ if (($c____hoice + 1) _ 3 == $_____ { $mess___ = "You _____"; $____Score += 1; } else _ $____age = "This is a ____"; } $c hoice = _and(0, 2) ; _ ____ _ $mess___ = "________"; $c_____ore = _; $us___core = 0_ $c____hoice = ____(0, 2) ; } __ <____> <? ___o $message; ?> <p> The computer has chosen: ___$c____hoice?>, now it's your ____. <p> <_____ border><tr><td> Computer <td> User <tr><td> <?=$compScore?> <td> <?=$us___core?> </table> <p> What: <______ name="user"> <option value=___> Paper <option _____="1"> ____ <______ value="_"> Scissors </select> <p> When finished please press <input type="submit" value="_______"> <p> <input type="____en" name="_____core_ ___________________core_>"> <input type="hidden" name="mess___" value="__=$message?>"> <_____ type="hidden" name="us___core" value="___$user__ore?>"> <input type="hidden" name="c____hoice" value="____compChoice?>"> </form> </body></____>