Java Reference
In-Depth Information
7 We Love Pets
We Love Pets is a pet clinic with several locations. The office manager has asked
you to create an applet that could run from a browser at all the offices. The
applet should be designed with individual check boxes for users to select various
services such as office visits, vaccinations, hospitalization, heartworm prevention,
boarding, dentistry, x-rays, laboratory work, and prescriptions. As each service is
selected, the charge for the service should display. After all selections have been
made, the charges should be added together to arrive at a total amount due
that displays when the user clicks the Calculate button. The office manager also
has requested that when the user clicks the Calculate button, the program will
clear all the check boxes for the next user.
8 Reasonable Computers Corporation
Reasonable Computers Corporation would like an applet to calculate the cost of
adding peripherals to a basic computer system. Use at least six single check boxes
for various types of peripheral devices, including printers, monitors, modems,
and other devices with which you are familiar. Assume a basic computer system
price of $575 and then add appropriate prices based on user checks. Add a but-
ton that tells the program to perform the calculation and display the final price.
Try various width and height values in your HTML code to help align compo-
nents.
9 Wright's Garage
Wright's Garage wants an interactive program that requires the mechanic to
enter the tire pressure from four tires on any given car that comes into the
garage. The program should first display three options to select a driving type:
normal, hauling, and rugged terrain. After the mechanic chooses a driving type,
the program should prompt the user to enter the tire pressure for each of the
four tires. Finally, the program should tell the mechanic what adjustments to
make. Assume the following:
For normal driving, all four tires should be inflated between 33 and 43
pounds per square inch (psi).
For hauling, rear tire pressure should be approximately 10% greater.
For rugged terrain, rear tire pressure should be approximately 15% greater.
10 Overdue Books
Your city library has hired you on a consulting basis to provide them with an
application to calculate overdue charges. The overdue charges apply to hardcover
or paperback books, records, tapes, CDs, and videos. The librarians want an easy
way to calculate the overdue charges, keeping in mind that a borrower could be
returning multiple overdue items. Some method of looping to enter the next
item is necessary. The total number of overdue items and the total amount due
should display.
Search WWH ::




Custom Search