19.12.2012 Views

Computer Programming Concepts and Visual Basic David I. Schneider

Computer Programming Concepts and Visual Basic David I. Schneider

Computer Programming Concepts and Visual Basic David I. Schneider

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

(a) Update the quantity field of the Inventory table.<br />

(b) Display in a list box the items that are out of stock <strong>and</strong> therefore must be<br />

reordered.<br />

(c) Update the amtOfSales field of the Customers table.<br />

(d) Print bills to all customers who ordered during the day. (You can assume that<br />

each customer only calls once during a particular day <strong>and</strong> therefore that all<br />

items ordered by a single customer are grouped together. The bill should<br />

indicate if an item is currently out of stock. You can just display the bills one<br />

at a time in a picture window instead of actually printing them.)<br />

TABLE 11.7<br />

First Three Records of the Customers Table<br />

custID name street city amtPurchases<br />

1 Michael Smith 2 Park St. Dallas, TX 75201 234.50<br />

2 Brittany Jones 5 Second Ave Tampa, FL 33602 121.90<br />

3 Warren Pease 7 Maple St Boston, MA 02101 387.20<br />

TABLE 11.8<br />

First Three Records of the Inventory Table<br />

itemID description price quantity<br />

PL208 <strong>Visual</strong> <strong>Basic</strong> – St<strong>and</strong>ard 89.50 12<br />

SW109 MS Office Upgrade 195.95 2<br />

HW913 PaperPort ix 300.25 8<br />

TABLE 11.9<br />

First Four Records of the Orders Table<br />

custID itemID quantity<br />

3 SW109 1<br />

1 PL208 3<br />

1 HW913 2<br />

2 PL208 1<br />

2. Most college libraries have a computerized online catalog that allows you to look<br />

up books by author or title. Use the database BIBLIO.MDB to design such a catalog.<br />

You should create a new database with the necessary tables <strong>and</strong> fields <strong>and</strong><br />

copy all needed information from BIBLIO.MDB into the new database. (One field<br />

should hold the number of copies that the library owns <strong>and</strong> another field should<br />

hold the number of copies currently on the shelf. Use the Rnd function to fill the<br />

first field with numbers from 1 to 3.) The user should be able to do the following.<br />

(a) View the books by author in either alphabetical or chronological order <strong>and</strong><br />

then obtain relevant information (publisher, ISBN, copyright year, number<br />

of copies available <strong>and</strong> owned) on a specific book.<br />

(b) Determine if a book with a specified title is owned by the library.<br />

(c) Search for all books containing a certain word in its title.<br />

(d) Check out a book that is on the shelf.<br />

(e) Reserve a book that is currently not on the shelf. (A number can be assigned<br />

to each reservation to determine priority.)<br />

The librarian should be able to generate a listing of all books for which there is<br />

a waiting list.<br />

<strong>Programming</strong> Projects 351

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!