service { const html start =
Welcome to COMP520 Story Time!This will make a customized story about you. You will help build the story by
deciding
where the story will go and by providing most of the nouns, adjectives
and verbs.
Your words will be easily seen throughout the story as they will be
writtin in italics.
Please start by entering all of the following information:
First Name:
Gender:
Male
Female
Class:
Prof. Name:
Please Note: As we do not know most of this story's content, we cannot guarantee
that this
story is politically correct. We apalogize in advance if this story
contains anything offensive.
;
const html error =
Please check your information and try again. ; const html words =
Please give us some words to "plug" into our story.Give us 3 nouns:
And 3 adjectives:
Finally, we need 3 verbs:
; const html storyPart1 =
This is a story about a McGill student named <[fname1]> and <[his_her1]> trials and tribulations in <[class]>.
At first, the class seemed like it wouldn't be very much work. In fact, <[fname3]>
had heard from <[his_her2]> friends that this would be the easier
class at McGill.
It would be even easier than <[noun1]>, if you can believe that!
Imagine <[fname4]>'s suprise when the very first days of class, there was a
<[noun2]> on the floor right next to <[him_her]>.
To make things worse,
<[he_she2]> immediately began to <[verb1]> as best <[he_she3]> knew how.
The whole class
turned to look at the <[adj2]> new student in their class.
How embarrasing.
<[fname6]> turned so red, <[he_she4]> looked like a <[adj3]> <[noun3]>.
What should <[fname5]> do now? Should <[he_she5]>:
run out of the classroom and transfer to a school in BC, or
start to laugh and announce that the entire class is on Candid Camera.
;
const html storyPart2a =
After <[fname2]> chooses to <[verb1]> at <[his_her1]> new school for a
few years, <[he_she1]> realizes that BC is really very <[adj1]>.
Every
<[noun1]> is too <[adj2]>, which really annoys <[him_her1]>.
<[fname3]> had planned to <[verb2]> while in BC,
but since <[he_she4]> is not
allowed to use <[his_her4]> <[noun3]> to <[verb3]>, <[he_she5]> decides
that this is not the city for <[him_her3]>.
So <[he_she2]> decides it would be best for <[him_her2]> and <[his_her2]> <[noun2]>
to return to the east coast,
where at least everything is <[adj3]>.
Upon <[his_her3]> return, <[he_she3]> finds that:
aliens resembling <[jen_brad]> have landed in the West Island and
are taking over the city, or
The school's water supply has been contaminated with a bizarre mix of e.coli
bacteria and botox, and only the <[adj5]>, yet very <[adj4]> <[noun4]>
can save the day.
;
const html storyPart2b =
In an attempt to help, <[fname5]> decides tell the class that:
aliens resembling <[jen_brad]> have landed in the West Island and
are taking over the city, or
The school's water supply has been contaminated with a bizarre mix of e.coli
bacteria and botox, and only the <[adj5]>, yet very <[adj4]> <[noun4]>
can save the day.
;
const html storyPart3a =
Happy End.
;
const html storyPart3b =
The End.
;
string fname, class, profname, his_her, he_she, mr_ms, him_her, gender, jen_brad, jshe_bhe;
session Start() {
string noun1, noun2, noun3, adj1, adj2, adj3, verb1, verb2, verb3, choice;
show start receive[fname = fname, class = class, profname = profname, gender = gender];
if (gender == "female") {
his_her = "her";
he_she = "she";
him_her = "her";
jen_brad = "Brad Pitt";
jshe_bhe = "he";
}
if (gender == "male") {
his_her = "his";
he_she = "he";
him_her = "him";
jen_brad = "Jennifer Aniston";
jshe_bhe = "she";
}
while (fname == "" || class == "" || profname == "" || gender == "") {
show error;
show start receive[fname = fname, class = class, profname = profname,
gender = gender];
}
show words receive[noun1 = noun1, noun2 = noun2, noun3 = noun3, adj1 = adj1, adj2 = adj2,
adj3 = adj3, verb1 = verb1, verb2 = verb2, verb3 = verb3];
show plug storyPart1[fname1 = fname, fname2 = fname, fname3 = fname, fname4 = fname, fname5 = fname,
his_her1 = his_her, his_her2 = his_her, class = class, adj1 = adj1,
he_she1 = he_she, he_she2 = he_she, he_she3 = he_she, he_she4 = he_she,
noun1 = noun1, noun2 = noun2, him_her = him_her, verb1 = verb1, adj2 = adj2,
adj3 = adj3, noun3 = noun3, fname6 = fname, he_she5 = he_she]
receive[choice = choice];
while (choice == "")
{
show error;
show plug storyPart1[fname1 = fname, fname2 = fname, fname3 = fname, fname4 = fname,
fname5 = fname, his_her1 = his_her, his_her2 = his_her, class = class,
adj1 = adj1, he_she1 = he_she, he_she2 = he_she, he_she3 = he_she,
he_she4 = he_she, noun1 = noun1, noun2 = noun2, him_her = him_her,
verb1 = verb1, adj2 = adj2, adj3 = adj3, noun3 = noun3, fname6 = fname,
he_she5 = he_she]
receive[choice = choice];
}
show words receive[noun1 = noun1, noun2 = noun2, noun3 = noun3, adj1 = adj1, adj2 = adj2,
adj3 = adj3, verb1 = verb1, verb2 = verb2, verb3 = verb3];
if (choice == "a")
{
show plug storyPart2a[fname1 = fname, fname2 = fname, verb1 = verb1, verb2 = verb2,
his_her1 = his_her, his_her2 = his_her, his_her3 = his_her,
he_she1 = he_she, he_she2 = he_she, he_she3 = he_she,
adj1 = adj1, adj2 = adj2, adj3 = adj3, him_her1 = him_her,
him_her2 = him_her, noun1 = noun1, noun2 = noun2,
jen_brad = jen_brad, fname3 = fname, verb3 = verb3,
his_her4 = his_her,he_she4 = he_she, he_she5 = he_she,
him_her3 = him_her, noun3 = noun3, noun4= noun2, adj4 = adj2, adj5 = adj1]
receive[choice = choice];
while (choice == "")
{
show error;
show plug storyPart2a[fname1 = fname, fname2 = fname, verb1 = verb1, verb2 = verb2,
his_her1 = his_her, his_her2 = his_her, his_her3 = his_her,
he_she1 = he_she, he_she2 = he_she, he_she3 = he_she,
adj1 = adj1, adj2 = adj2, adj3 = adj3, him_her1 = him_her,
him_her2 = him_her, noun1 = noun1, noun2 = noun2,
jen_brad = jen_brad, fname3 = fname, verb3 = verb3, his_her4 = his_her,
he_she4 = he_she, he_she5 = he_she, him_her3 = him_her, noun3 = noun3,
noun4= noun2, adj4 = adj2, adj5 = adj1]
receive[choice = choice];
}
}
else
{
if (choice == "b")
{
show plug storyPart2b[fname1 = fname, fname2 = fname, fname4 = fname, fname5 = fname,
noun1 = noun1, noun2 = noun2, noun3 = noun3, fname3 = fname,
profname1 = profname, profname2 = profname, verb1 = verb1, verb2 = verb2,
verb3 = verb3, adj1 = adj1, adj2 = adj2, adj3 = adj3, jen_brad = jen_brad,
noun4= noun2, adj4 = adj2, adj5 = adj1]
receive[choice = choice];
while (choice == "")
{
show error;
show plug storyPart2b[fname1 = fname, fname2 = fname, fname4 = fname,
fname5 = fname,
noun1 = noun1, noun2 = noun2, noun3 = noun3, fname3 = fname,
profname1 = profname, profname2 = profname, verb1 = verb1, verb2 = verb2,
verb3 = verb3, adj1 = adj1, adj2 = adj2, adj3 = adj3, jen_brad = jen_brad,
noun4= noun2, adj4 = adj2, adj5 = adj1]
receive[choice = choice];
}
}
}
show words receive[noun1 = noun1, noun2 = noun2, noun3 = noun3, adj1 = adj1, adj2 = adj2,
adj3 = adj3, verb1 = verb1, verb2 = verb2, verb3 = verb3];
if (choice == "a")
{
show plug storyPart3a[fname1 = fname, fname2 = fname, profname1= profname, profname2=profname,
noun1 = noun1, noun2 = noun2, noun3 = noun3, jshe_bhe1=jshe_bhe,
verb1 = verb1,
verb2 = verb2, verb3 = verb3, adj1 = adj1, adj2 = adj2, adj3 = adj3,
jen_brad1 = jen_brad, jen_brad2 = jen_brad, jen_brad3= jen_brad,
jen_brad4 = jen_brad, jshe_bhe2= jshe_bhe, class1 = class];
}
else
{
if (choice == "b")
{
show plug storyPart3b[fname1 = fname, fname2 = fname,
noun1 = noun1, noun2 = noun2, noun3 = noun3,
verb1 = verb1, verb2 = verb2,
verb3 = verb3, adj1 = adj1, adj2 = adj2, adj3 = adj3];
}
}
}
}