| 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.
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
Write a program that reads the radius of a circle and computes its area. Name your program circle.html
Any person 18-year-old or older can see any movie.
Any person under 18 can only see a “PG” movie.
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.