Edited at 2005/07/08 09:03:23 PST
Homework
-
Finish lab exercises for chapter 9 if not done so already.
-
Read chapter 10.
-
Do prelabs for chapter 10.
-
Project: Bring a list of bibliographic references related to your topic (books, journals, internet sources, newspapers, etc)
Prelab Answers
Chapter 9 Review Questions
1. false
2. false
3. true
4. a
6. a
8. a
9. c
Chapter 9 Exercises
9.3
<html>
<head>
<title>Problem 9.3</title>
<script type="text/javascript">
function cheers() {
alert("Way to go!")
alert("Fantastic")
}
function encouragement() {
alert("Don't give up. You can do it!")
}
function displayAll() {
encouragement()
cheers()
}
</script>
</head>
<body>
<script tpe="text/javascript">
displayAll()
</script>
</body>
</html>
9.7
<html>
<head>
<title>Problem 9.7</title>
<script type="text/javascript">
function threeCheers(cheer1, cheer2, cheer3) {
alert(cheer1 + ", " + cheer2 + ", " + cheer3)
//If you leave out the ", " in the alert, then the alert will display "HipHipHooray"
}
</script>
</head>
<body>
<script type="text/javascript">
threeCheers("Hip", "Hip", "Hooray")
</script>
</body>
</html>
9.9
<html>
<head>
<title>Problem 9.9</title>
<script type="text/javascript">
function displayFullName(first, middle, last) {
alert("Your full name is: " + first + " " + middle + " " + last)
//If you leave out the ", " then the alert will display "HipHipHooray"
}
</script>
</head>
<body>
<script type="text/javascript">
var firstName, middleName, lastName
firstName = prompt("Please enter your first name: ", " ")
middleName = prompt("Please enter your middle name: ", " ")
lastName = prompt("Please enter your last name: ", " ")
displayFullName(firstName, middleName, lastName)
</script>
</body>
</html>