Assignment 1
Practice JS Concepts with an Interactive Story Generator
Due Saturday April 12 before 11:30pm

Overview

For this assignment you will study and modify the interactive greeting program to create an interactive story generator. It will practice some (possibly new) JavaScript concepts.

Study the Greeting Page

Start with the interactive greeting page provided in class. Before you work on the requirements for this assignment, make sure that you understand how it works. Consider making small modifications and see if they work. Also try out statements in the interactive console.

Requirements

If you haven't yet, complete the syllabus quiz. It's a requirement for this assignment!

Modify the greeting page so that it requests specific text inputs from the user (e.g. a color, an action, a city, etc.). Have your page then generate a simple story (like Mad Libs based on the user input and some random selections generates by your JavaScript. At minimum, the page should meet these requirements:

  • Requests at least 3 different inputs from the user.
  • It reuses at least one of the inputs in the story multiple times.
  • It includes at least 2 different randomly selected elements.
  • It provides some additional formatting for the story (consider giving the user a choice or randomly selecting the formatting).
  • It adopts the conventions and constructs demonstrated in the example greetings. Some variation is allowed but be sure to document and explain what you chose to do.

Create a document that summarizes your work for the assignment. It will typically be a couple of paragraphs.

Submission

On D2L, submit a zip file of a folder with the following contents:

  • A readable document (pdf or txt) that summarizes your accomplishment.
  • html file
  • JS file
  • Any supplementary files for your web app

Grading

This assignment is worth 10 points. A rubric will be provided with the submission.