Java Reference
In-Depth Information
picture. Discover classes, supply a UML diagram, and implement your
program.
Additional programming exercises are available in WileyPLUS.
PROGRAMMING PROJECTS
΢΢΢ Project 12.1. Produce a requirements document for a program that
allows a company to send out personalized mailings, either by e-mail or
through the postal service. Template files contain the message text,
together with variable fields (such as Dear [Title] [Last Name] ș). A
database (stored as a text file) contains the field values for each recipient.
Use HTML as the output file format. Then design and implement the
program.
΢΢΢ Project 12.2. Write a tic-tac-toe game that allows a human player to play
against the computer. Your program will play many turns against a
human opponent, and it will learn. When it is the computer's turn, the
computer randomly selects an empty field, except that it won't ever
choose a losing combination. For that purpose, your program must keep
an array of losing combinations. Whenever the human wins, the
immediately preceding combination is stored as losing. For example,
suppose that X = computer and O = human. Suppose the current
combination is
583
584
Now it is the human's turn, who will of course choose
Search WWH ::




Custom Search