Project #3 Passport (Beginners)

Objective

To practice JavaScript I/O, expressions, and conditionals.

Specifications

Write a JavaScript program for each of the problems below.  You should also use good variable names and good indentation.

  1. Write a program that asks the user for a password value (e.g., treasure) and then opens a window with the web page http://www.freejavascriptgames.info/ if the user provided the correct password; Otherwise your program will display the message "Invalid password".  You can open a new window using window.open(PUT WEB SITE HERE).  Name your program password.html

  2. Write a program that reads the radius of a circle and computes its area. Name your program circle.html

  3. Write a program that determines whether a person can see a movie at a movie theater.   Your program will read the age of the person, and the rating associated with the movie (“PG” or “R”).  The admittance rules are: 

Your program must print a message "You can see the movie" if the person is allowed to see the movie and

"You cannot see the movie", otherwise.

          Name your program movie.html

Grading

Requirements   

Submission

To submit your project e-mail the html files as attachments in a single e-mail message to costerho@umd.edu    Use as subject "Passport Beginner Project #3" and make sure you write your name on the message.