Exercises - Page 27
October 12, 2001
Suggested solutions to these questions can be found in Appendix
A.
Question 1
Using the code from the temperature converter example we saw in
Chapter 2, create a user interface for it and connect it to the
existing code so that the user can enter a value in degrees
Fahrenheit and convert it to centigrade.
Question2
Create a user interface that allows the user to pick the computer
system of their dreams, similar in principle to the e-commerce
sites selling computers over the Internet. For example, they
could be given a choice of processor type, speed, memory, hard
drive size, and the option to add additional components like DVD-
ROM drives, sound cards, and so on. As the user changes the
selection the price of the system should update automatically and
notify the user of the cost of the system as they have specified
it either by using an alert box or updating the contents of a
text box.
Summary - Page 26
Beginning JavaScript
|