Worksheet2

Worksheet2 - Also use good variable names. Exercises 1. All...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
CMSC122 Quiz 2 Worksheet Quiz #2 for the course will be on Wednesday, Oct 5 at the beginning of the class. The following list provides more information about the quiz: The quiz will be a written quiz (no computer). Closed book, closed notes quiz. Answers must be neat and legible. You must use a pencil (NOT PEN). Check the information available at http://www.cs.umd.edu/~nelson/classes/examRules.html The following exercises cover the material to be included in this quiz. Solutions to these exercises will not be provided, but you are welcome to discuss your solutions with the TA or instructor during office hours. When ask to write JavaScript code only provide what will appear in the <script> </script> section (no need for <html>, <head>, <body>, nor DOCTYPE). Make sure you use good indentation (alignment) when writing your programs.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Also use good variable names. Exercises 1. All the in-class lab exercises. 2. Write a JavaScript program that decides what parking permit a student must use based on the following criteria: a. Freshman red b. Sophomore blue c. Junior green d. Senior violet If the student does not belong to any of the above categories (e.g., graduate student) the student will receive a yellow parking permit. 3. Write a program that reads three numbers and prints yes if the numbers are in increasing order and no otherwise. For example, 10 17 19 are in increasing order; 10 3 20 are not. 4. Write a JavaScript program that prints odd numbers between 1 and a number provided by the user. 5. Write a JavaScript program that creates an HTML table of odd numbers....
View Full Document

Ask a homework question - tutors are online