Java Reference
In-Depth Information
exerCises
You can find suggested solutions to these questions in Appendix A.
1. Using the code from the temperature converter example you 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.
2. Create a user interface that allows users 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, and hard drive size, and the option
to add additional components like a DVD‐ROM drive, a sound card, and so on. As the users
change their selections, the price of the system should update automatically and notify them
of the cost of the system as they specified it, either by using an alert box or by updating the
contents of a text box.
 
Search WWH ::




Custom Search