use strict; use CGI qw( :standard ); # Note that this starts looking in your top-level W directory require "survey_struct.pl"; require "question_struct.pl"; require "response_struct.pl"; require "helpers.pl"; # MAIN print( header() ); # Create a dummy poll and quiz for testing. my $dummyPoll = &createDummyPoll(); my $dummyQuiz = &createDummyQuiz(); # ******************** # Your startup task #1 # ******************** # Write code here to loop through every question in $dummyQuiz and compute the total number of possible points. # Print out the result (you should get 8) # ******************** # Your startup task #2 # ******************** # Write code to take the $dummyPoll above and modify the prompt of every question to be "What's your name?"" # (ignore the fact that this doesn't make sense for the multiple choice questions) # Do this by writing code right here (don't change helpers.pl!) # Look at the results of the call to printSurvey below to verify that this worked. # Print out the poll and the quiz &printSurvey($dummyPoll); &printSurvey($dummyQuiz); # Create and print some dummy responses my @dummyResponses = &createDummyResponses(); &printResponses(@dummyResponses); # ******************** # Your startup task #3 # ******************** # Write code to take the $dummyResponses above and loop through each response to print out # just the alpha of each student. (you should see two different alphas) # You may find it useful to look at how printResponses() works in helpers.pl # (note this is separate from the singular printResponse() function) print "\n
DONE."; print end_html();